|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines a single field within a mask or group of masks.
| Field Summary | |
static java.lang.String |
TYPE_AMOUNT
Indicates the fields contents should be formatted as an amount. |
static java.lang.String |
TYPE_DATE
Indicates the fields contents should be formatted as a date. |
static java.lang.String |
TYPE_NUMBER
Indicates the fields contents should be formatted as a number. |
static java.lang.String |
TYPE_RADIO
Indicates the field is an option to be displayed as a radio button. |
static java.lang.String |
TYPE_SELECT
Indicates the field is displayed as a choice combo box. |
static java.lang.String |
TYPE_STRING
Indicates the field is displayed as a short text. |
static java.lang.String |
TYPE_TEXTAREA
Indicates the field is displayed as a long text. |
| Method Summary | |
java.util.Properties |
getChoiceProperties()
If this field represents a combo (select) type, returns the choices as a Properties instance. |
java.util.List |
getChoicePropertyKeys()
If this field represents a combo (select) type, returns the choice keys as a List of String instances. |
java.lang.String |
getDefaultValue()
Get the default value for this field. |
java.lang.Class |
getDOClass()
Get the data object class for this field, if appropriate. |
java.lang.String |
getName()
Id of just this field. |
Field |
getParent()
Get the field which contains this one. |
java.lang.String |
getPath()
Return the full path to this field, including the names of parent fields separated by '.' characters. |
java.lang.String |
getType()
Indicates what sort of data this field should hold. |
Mask |
getValueObjectMask()
If this field represents a value object, get the mask associated with this value object. |
boolean |
isDisplayOnly()
Get whether or not this field can be amended. |
boolean |
isHidden()
Is this field hidden or displayed? |
boolean |
isMandatory()
Is this field required or optional? |
boolean |
isOneToOne()
If this field represents another value object, but the relationship with its container is one-to-one, then it can be included in the parent's mask directly. |
| Field Detail |
public static final java.lang.String TYPE_AMOUNT
public static final java.lang.String TYPE_DATE
public static final java.lang.String TYPE_NUMBER
public static final java.lang.String TYPE_RADIO
public static final java.lang.String TYPE_SELECT
public static final java.lang.String TYPE_STRING
public static final java.lang.String TYPE_TEXTAREA
| Method Detail |
public java.util.Properties getChoiceProperties()
Properties instance.
Properties instance representing the possible
values.public java.util.List getChoicePropertyKeys()
List of String instances.
List of String instances
representing the key values of all choice options.public java.lang.String getDefaultValue()
null.
null if none is
defined.public java.lang.Class getDOClass()
null.public java.lang.String getName()
public Field getParent()
Get the field which contains this one.
null if this
is a top-level field.public java.lang.String getPath()
Return the full path to this field, including the names of parent fields separated by '.' characters.
public java.lang.String getType()
TYPE_ values in
this interface.public Mask getValueObjectMask()
If this field represents a value object, get the mask associated with this value object. Note: this is not the mask the field is in!.
null if
this field is not a value object.public boolean isDisplayOnly()
true if the field cannot be manually changed.public boolean isHidden()
Is this field hidden or displayed?
true if this field is hidden.public boolean isMandatory()
Is this field required or optional?
true if this field is required and must have a
non- null, non-empty value. Otherwise,
false for an optional field.public boolean isOneToOne()
true if this field should be displayed directly
in the mask of the parent field.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||