public class FieldWrapper extends FieldDef
FieldWrapper extends a FieldDef and adds the ability to read and set the field's
string-representation ( getStringValue()/setStringValue(String)) and also the object-representation
( getObject()/ setObject(Object)). This is achieved by using a BeanWrapper.| Constructor and Description |
|---|
FieldWrapper(FieldDef fieldDef,
org.springframework.beans.BeanWrapper beanWrapper)
|
| Modifier and Type | Method and Description |
|---|---|
void |
backupFields() |
boolean |
equals(Object obj) |
org.springframework.beans.BeanWrapper |
getBeanWrapper()
Returns the
BeanWrapper used by this FieldWrapper to access the property. |
String |
getBinding()
This is the name of the property used with the JavaBeans API.
|
Condition |
getCondition()
Gets the value of the condition property.
|
BigInteger |
getDisplayLength()
The maximum number of characters when displaying the field's value as string.
|
List<FieldDef> |
getFields()
Gets the value of the fields property.
|
String |
getFormat()
The format used for this field, presuming the
FieldDef.type supports formatting. |
String |
getHidden()
If evaluating to
true, the field will not be visible to the user. |
List<Icon> |
getIcons()
Gets the value of the icons property.
|
Label |
getLabel()
Gets the value of the label property.
|
Linkpanel |
getLinkpanel() |
Messages |
getMessages()
Gets the value of the messages property.
|
String |
getName()
The name of the field.
|
Object |
getObject()
Returns the property that this
FieldWrapper handles. |
List<FieldPermissions> |
getPermissions()
Gets the value of the permissions property.
|
String |
getReadonly()
If evaluating to
true, the field's value is readonly. |
Sort |
getSort()
Gets the value of the sort property.
|
String |
getStringValue()
Returns the
String-value of the property that this FieldWrapper handles. |
Class<?> |
getTargetClass()
Returns the target-type for the property that this
FieldWrapper handles. |
FieldType |
getType()
The
FieldType, which decides about how the field is being displayed. |
Validation |
getValidation()
Gets the value of the validation property.
|
int |
hashCode() |
void |
restoreFields() |
void |
setBinding(String value)
Sets the value of the binding property.
|
void |
setCondition(Condition value)
Sets the value of the condition property.
|
void |
setDisplayLength(BigInteger value)
Sets the value of the displayLength property.
|
void |
setFormat(String value)
Sets the value of the format property.
|
void |
setHidden(String value)
Sets the value of the hidden property.
|
void |
setLabel(Label value)
Sets the value of the label property.
|
void |
setLinkpanel(Linkpanel linkpanel) |
void |
setMessages(Messages value)
Sets the value of the messages property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setObject(Object object)
Sets the property that this
FieldWrapper handles. |
void |
setReadonly(String value)
Sets the value of the readonly property.
|
void |
setSort(Sort value)
Sets the value of the sort property.
|
void |
setStringValue(String stringValue)
Sets the
String-value of the property that this FieldWrapper handles. |
void |
setType(FieldType value)
Sets the value of the type property.
|
void |
setValidation(Validation value)
Sets the value of the validation property.
|
String |
toString() |
static String |
toString(FieldDef fieldDef) |
public Object getObject()
FieldWrapper handles.public void setObject(Object object)
FieldWrapper handles.object - the propertypublic String getStringValue()
String-value of the property that this FieldWrapper handles.String-valuepublic void setStringValue(String stringValue)
String-value of the property that this FieldWrapper handles.stringValue - the String-value to setpublic org.springframework.beans.BeanWrapper getBeanWrapper()
BeanWrapper used by this FieldWrapper to access the property.BeanWrapperpublic Class<?> getTargetClass()
FieldWrapper handles.public Sort getSort()
FieldDefpublic void setSort(Sort value)
FieldDefpublic Label getLabel()
FieldDefpublic void setLabel(Label value)
FieldDefpublic List<Icon> getIcons()
FieldDef
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the icons property.
For example, to add a new item, do as follows:
getIcons().add(newItem);
Objects of the following type(s) are allowed in the list
Icon
public Condition getCondition()
FieldDefgetCondition in class FieldDefConditionpublic void setCondition(Condition value)
FieldDefsetCondition in class FieldDefvalue - allowed object is
Conditionpublic List<FieldPermissions> getPermissions()
FieldDef
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the permissions property.
For example, to add a new item, do as follows:
getPermissions().add(newItem);
Objects of the following type(s) are allowed in the list
FieldPermissions
getPermissions in class FieldDefpublic Validation getValidation()
FieldDefgetValidation in class FieldDefValidationpublic void setValidation(Validation value)
FieldDefsetValidation in class FieldDefvalue - allowed object is
Validationpublic Messages getMessages()
FieldDefgetMessages in class FieldDefMessagespublic void setMessages(Messages value)
FieldDefsetMessages in class FieldDefvalue - allowed object is
Messagespublic List<FieldDef> getFields()
FieldDef
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the fields property.
For example, to add a new item, do as follows:
getFields().add(newItem);
Objects of the following type(s) are allowed in the list
FieldDef
public void setName(String value)
FieldDefpublic FieldType getType()
FieldDefFieldType, which decides about how the field is being displayed.public void setType(FieldType value)
FieldDefpublic BigInteger getDisplayLength()
FieldDefgetDisplayLength in class FieldDefBigIntegerpublic void setDisplayLength(BigInteger value)
FieldDefsetDisplayLength in class FieldDefvalue - allowed object is
BigIntegerpublic String getFormat()
FieldDefFieldDef.type supports formatting.public void setFormat(String value)
FieldDefpublic String getReadonly()
FieldDeftrue, the field's value is readonly.getReadonly in class FieldDefStringpublic void setReadonly(String value)
FieldDefsetReadonly in class FieldDefvalue - allowed object is
Stringpublic String getHidden()
FieldDeftrue, the field will not be visible to the user.public void setHidden(String value)
FieldDefpublic String getBinding()
FieldDefMetaData.getBindClass() (if any, separated with a dot) and the field's name.getBinding in class FieldDefStringpublic void setBinding(String value)
FieldDefsetBinding in class FieldDefvalue - allowed object is
Stringpublic Linkpanel getLinkpanel()
public void backupFields()
public void restoreFields()
public void setLinkpanel(Linkpanel linkpanel)
Copyright © 2011–2020 aiticon GmbH. All rights reserved.