|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.field.FieldImpl
This is the default implementation of an ivata masks field.
Don't use this class directly, use the Fieldinterface.
Field,
Serialized Form| Field Summary |
| Fields inherited from interface com.ivata.mask.field.Field |
TYPE_AMOUNT, TYPE_DATE, TYPE_NUMBER, TYPE_RADIO, TYPE_SELECT, TYPE_STRING, TYPE_TEXTAREA |
| Constructor Summary | |
FieldImpl(Field parentParam,
Field extendedFieldParam,
MaskFactory maskFactoryParam)
Construct a field with the given parent or inherited field. |
|
| 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 |
getLabelKey()
|
java.lang.String |
getName()
Id of just this field - equivalent to the field name. |
Field |
getParent()
Get the field which contains this one. |
java.lang.String |
getPath()
Return the full path to this field, including the ids 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()
true if this field is hidden. |
boolean |
isMandatory()
Is this field is 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. |
void |
setChoiceProperties(java.util.Properties choicePropertiesParam)
Refer to getChoiceProperties(). |
void |
setChoicePropertyKeys(java.util.List choicePropertyKeysParam)
Refer to getChoicePropertyKeys(). |
void |
setDefaultValue(java.lang.String defaultValueParam)
Refer to getDefaultValue(). |
void |
setDisplayOnly(boolean displayOnlyParam)
Refer to isDisplayOnly(). |
void |
setDOClass(java.lang.Class classParam)
Refer to getDOClass(). |
void |
setHidden(boolean hiddenParam)
Refer to #getHidden. |
void |
setLabelKey(java.lang.String labelKeyParam)
Refer to getLabelKey(). |
void |
setMandatory(boolean mandatoryParam)
Refer to #getMandatory. |
void |
setName(java.lang.String nameParam)
Refer to getName(). |
void |
setOneToOne(boolean oneToOneParam)
Refer to isOneToOne(). |
void |
setParent(Field parentParam)
Refer to getParent(). |
void |
setType(java.lang.String typeParam)
Refer to getType(). |
java.lang.String |
toString()
Overridden to return the field name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FieldImpl(Field parentParam,
Field extendedFieldParam,
MaskFactory maskFactoryParam)
parentParam - The field whose characteristics this one inherits, if they
have not been set directly.extendedFieldParam - field defined by an explicit "extends" attribute in the
configuration.maskFactoryParam - This mask factory is used to retrieve the mask for this field,
if the field represents a value object.| Method Detail |
public final java.util.Properties getChoiceProperties()
Properties instance.
getChoiceProperties in interface FieldProperties instance representing the possible
values.public final java.util.List getChoicePropertyKeys()
List of String instances.
getChoicePropertyKeys in interface FieldList of String instances
representing the key values of all choice options.public final java.lang.String getDefaultValue()
null.
getDefaultValue in interface Fieldnull if none is
defined.public final java.lang.Class getDOClass()
getDOClass in interface Fieldnull.public java.lang.String getLabelKey()
public final java.lang.String getName()
getName in interface Fieldpublic final Field getParent()
Get the field which contains this one.
getParent in interface Fieldnull if this
is a top-level field.public final java.lang.String getPath()
Return the full path to this field, including the ids of parent fields separated by '.' characters.
getPath in interface Fieldpublic final java.lang.String getType()
getType in interface FieldTYPE_ values in
the Fieldinterface.public final Mask getValueObjectMask()
If this field represents a value object, get the mask associated with this value object.
getValueObjectMask in interface Fieldnull if
this field is not a value object.com.ivata.mask.field.Field#getMaskpublic boolean isDisplayOnly()
isDisplayOnly in interface Fieldtrue if the field cannot be manually changed.public boolean isHidden()
true if this field is hidden. Otherwise, false.
isHidden in interface Fieldpublic final boolean isMandatory()
Is this field is required or optional?
isMandatory in interface Fieldtrue if this field is required and must have a
non- null, non-empty value. Otherwise,
false for an optional field.public boolean isOneToOne()
isOneToOne in interface Fieldtrue if this field should be displayed directly
in the mask of the parent field.public void setChoiceProperties(java.util.Properties choicePropertiesParam)
getChoiceProperties().
choicePropertiesParam - Refer to getChoiceProperties().public void setChoicePropertyKeys(java.util.List choicePropertyKeysParam)
getChoicePropertyKeys().
choicePropertyKeysParam - Refer to getChoicePropertyKeys().public void setDefaultValue(java.lang.String defaultValueParam)
getDefaultValue().
defaultValueParam - Refer to getDefaultValue().public void setDisplayOnly(boolean displayOnlyParam)
isDisplayOnly().
displayOnlyParam - Refer to isDisplayOnly().public void setDOClass(java.lang.Class classParam)
getDOClass().
classParam - Refer to getDOClass().public void setHidden(boolean hiddenParam)
#getHidden.
hiddenParam - Refer to #getHidden.public void setLabelKey(java.lang.String labelKeyParam)
getLabelKey().
labelKeyParam - Refer to getLabelKey().public void setMandatory(boolean mandatoryParam)
#getMandatory.
mandatoryParam - Refer to #getMandatory.public void setName(java.lang.String nameParam)
getName().
nameParam - Refer to getName().public void setOneToOne(boolean oneToOneParam)
isOneToOne().
oneToOneParam - Refer to isOneToOne().public void setParent(Field parentParam)
getParent().
parentParam - Refer to getParent().public void setType(java.lang.String typeParam)
getType().
typeParam - Refer to getType().public final java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||