|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.iface.ui.AbstractIFormModel ix.iface.ui.GenericIFormModel
public class GenericIFormModel
An default model to be used to fill an IFormPanel.
Field Summary |
---|
Fields inherited from class ix.iface.ui.AbstractIFormModel |
---|
baseObject, baseObjectClass, dataListeners, displayFields, fieldClasses, fieldNames, isUpdating, listeners, nameFields, settingData |
Constructor Summary | |
---|---|
GenericIFormModel(java.lang.Class objectClass)
|
|
GenericIFormModel(EditableObject object)
|
Method Summary | |
---|---|
protected java.lang.Class |
deriveClass(java.lang.String field)
|
protected void |
deriveClasses(java.util.List fields)
Derives the classes of the given fields and puts them into HashMap fieldClasses. |
protected java.util.List |
deriveDisplayFields()
Derives the fields to be used for displaying the object information |
protected java.lang.String |
deriveName(java.lang.String field)
|
protected java.util.List |
deriveNameFields()
Derives the fields to be used for displaying the object name(s) |
protected void |
deriveNames(java.util.List fields)
Derives the names of the given fields and puts them into HashMap fieldNames. |
void |
setFields()
Derives the name fields, display fields and the field names and classes. |
boolean |
setValue(EditableObject o,
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. |
java.lang.String |
show()
|
protected boolean |
useField(java.lang.reflect.Field field)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericIFormModel(java.lang.Class objectClass)
public GenericIFormModel(EditableObject object)
Method Detail |
---|
public void setFields()
AbstractIFormModel
setFields
in class AbstractIFormModel
protected void deriveNames(java.util.List fields)
AbstractIFormModel
deriveNames
in class AbstractIFormModel
protected java.lang.String deriveName(java.lang.String field)
protected void deriveClasses(java.util.List fields)
AbstractIFormModel
deriveClasses
in class AbstractIFormModel
protected java.lang.Class deriveClass(java.lang.String field)
protected java.util.List deriveNameFields()
AbstractIFormModel
deriveNameFields
in class AbstractIFormModel
protected java.util.List deriveDisplayFields()
AbstractIFormModel
deriveDisplayFields
in class AbstractIFormModel
protected boolean useField(java.lang.reflect.Field field)
public java.lang.String show()
public void setValue(java.lang.String field, java.lang.Object value)
IFormModel
setValue
in interface IFormModel
setValue
in class AbstractIFormModel
public boolean setValue(EditableObject o, java.lang.String field, java.lang.Object value)
AbstractIFormModel
setValue
in interface IFormModel
setValue
in class AbstractIFormModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |