ix.iview
Class DomainFormModel
java.lang.Object
ix.iface.ui.AbstractIFormModel
ix.iface.ui.GenericIFormModel
ix.iview.DomainFormModel
- All Implemented Interfaces:
- DataChangeListener, IFormModel
public class DomainFormModel
- extends GenericIFormModel
An default model to be used to fill an IFormPanel.
Method Summary |
protected java.lang.Class |
deriveClass(java.lang.String field)
|
protected java.util.List |
deriveDisplayFields()
Derives the fields to be used for displaying the object information |
java.lang.Object |
getValue(java.lang.String field)
Get the current object's value for the given field. |
boolean |
setValue(EditableObject object,
java.lang.String field,
java.lang.Object value)
Get the object to change its value. |
void |
setValue(java.lang.String field,
java.lang.Object value)
Sets the current object's given field to the given value. |
Methods inherited from class ix.iface.ui.AbstractIFormModel |
addDataListener, addIfField, addModelListener, clearData, dataChanged, dataChanged, deriveClasses, deriveNames, endUpdate, fireDataChanged, fireModelChanged, fireModelChanged, getDataListeners, getDisplayClasses, getDisplayFields, getDisplayNames, getFieldClass, getFieldName, getFieldWeight, getModelListeners, getNameClasses, getNameFields, getNameNames, getObject, getObjectClass, getValue, ignoreUpdate, isEditable, isFieldShowing, lookupFieldClasses, lookupFieldNames, setDisplayFields, setDisplayFields, setNameFields, setNameFields, setObject, setObjectClass, startUpdate, stringToField |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomainFormModel
public DomainFormModel()
DomainFormModel
public DomainFormModel(EditableObject object)
deriveClass
protected java.lang.Class deriveClass(java.lang.String field)
- Overrides:
deriveClass
in class GenericIFormModel
deriveDisplayFields
protected java.util.List deriveDisplayFields()
- Description copied from class:
AbstractIFormModel
- Derives the fields to be used for displaying the object information
- Overrides:
deriveDisplayFields
in class GenericIFormModel
getValue
public java.lang.Object getValue(java.lang.String field)
- Description copied from class:
AbstractIFormModel
- Get the current object's value for the given field.
- Specified by:
getValue
in interface IFormModel
- Overrides:
getValue
in class AbstractIFormModel
setValue
public void setValue(java.lang.String field,
java.lang.Object value)
- Description copied from interface:
IFormModel
- Sets the current object's given field to the given value.
- Specified by:
setValue
in interface IFormModel
- Overrides:
setValue
in class GenericIFormModel
setValue
public boolean setValue(EditableObject object,
java.lang.String field,
java.lang.Object value)
- Description copied from class:
AbstractIFormModel
- Get the object to change its value.
- Specified by:
setValue
in interface IFormModel
- Overrides:
setValue
in class GenericIFormModel
- Returns:
- true if the value was changed, false if it was not.