|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ComponentSizeType>
ch.javasoft.swing.ComponentSizeType
public enum ComponentSizeType
Enumeratable access to the different sizes of a JComponent.
| Enum Constant Summary | |
|---|---|
Current
Constant to access the actual size of a component |
|
Maximum
Constant to access the maximum size of a component |
|
Minimum
Constant to access the minimum size of a component |
|
Preferred
Constant to access the preferred size of a component |
|
| Method Summary | |
|---|---|
static ComponentSizeType |
getByPropertyName(String propertyName)
Returns the component size instance by property name, or null if no constant matches the given property name |
abstract String |
getPropertyName()
Returns the property name corresponding to this size type. |
abstract Dimension |
getSize(JComponent component)
Return the size of the given component corresponding to this size type |
abstract void |
setSize(JComponent component,
Dimension newSize)
Set the size of the given component corresponding to this size type |
static ComponentSizeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ComponentSizeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ComponentSizeType Preferred
public static final ComponentSizeType Minimum
public static final ComponentSizeType Maximum
public static final ComponentSizeType Current
| Method Detail |
|---|
public static ComponentSizeType[] values()
for (ComponentSizeType c : ComponentSizeType.values()) System.out.println(c);
public static ComponentSizeType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public abstract void setSize(JComponent component,
Dimension newSize)
public abstract Dimension getSize(JComponent component)
public abstract String getPropertyName()
PropertyChangeEvents
public static ComponentSizeType getByPropertyName(String propertyName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||