public enum SizeAttribute extends java.lang.Enum<SizeAttribute>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
shortName
Attribute short name as recognized by 4GL.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isChar()
Returns
true when the instance represents a character value. |
boolean |
isHeight()
Returns
true when the instance represents any of the
attributes holding a width. |
boolean |
isMax()
Returns
true when the instance represents one of
the MAX* attributes. |
boolean |
isMin()
Returns
true when the instance represents one of
the MIN* attributes. |
boolean |
isSize()
Returns
true when the instance represents HEIGHT-CHARS, WIDTH-CHARS,
HEIGHT-PIXELS, WIDTH-PIXELS, ROW_HEIGHT_CHARS or ROW_HEIGHT_PIXELS. |
boolean |
isVirt()
Returns
true when the instance represents one of
the VIRT* attributes. |
boolean |
isWidth()
Returns
true when the instance represents any of the
attributes holding a width. |
java.lang.String |
shortName()
Returns the attribute's short name.
|
static SizeAttribute |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SizeAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SizeAttribute HEIGHT_CHARS
public static final SizeAttribute WIDTH_CHARS
public static final SizeAttribute MIN_HEIGHT_CHARS
public static final SizeAttribute MIN_WIDTH_CHARS
public static final SizeAttribute MAX_HEIGHT_CHARS
public static final SizeAttribute MAX_WIDTH_CHARS
public static final SizeAttribute ROW_HEIGHT_CHARS
public static final SizeAttribute VIRT_HEIGHT_CHARS
public static final SizeAttribute VIRT_WIDTH_CHARS
public static final SizeAttribute HEIGHT_PIXELS
public static final SizeAttribute WIDTH_PIXELS
public static final SizeAttribute MIN_HEIGHT_PIXELS
public static final SizeAttribute MIN_WIDTH_PIXELS
public static final SizeAttribute MAX_HEIGHT_PIXELS
public static final SizeAttribute MAX_WIDTH_PIXELS
public static final SizeAttribute ROW_HEIGHT_PIXELS
public static final SizeAttribute VIRT_HEIGHT_PIXELS
public static final SizeAttribute VIRT_WIDTH_PIXELS
private final java.lang.String shortName
public static SizeAttribute[] values()
for (SizeAttribute c : SizeAttribute.values()) System.out.println(c);
public static SizeAttribute valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String shortName()
public boolean isChar()
true
when the instance represents a character value.public boolean isSize()
true
when the instance represents HEIGHT-CHARS, WIDTH-CHARS,
HEIGHT-PIXELS, WIDTH-PIXELS, ROW_HEIGHT_CHARS or ROW_HEIGHT_PIXELS.public boolean isMin()
true
when the instance represents one of
the MIN* attributes.public boolean isMax()
true
when the instance represents one of
the MAX* attributes.public boolean isVirt()
true
when the instance represents one of
the VIRT* attributes.public boolean isWidth()
true
when the instance represents any of the
attributes holding a width.public boolean isHeight()
true
when the instance represents any of the
attributes holding a width.