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.BeanWrapper
public Class<?> getTargetClass()
FieldWrapper
handles.public Sort getSort()
FieldDef
public void setSort(Sort value)
FieldDef
public Label getLabel()
FieldDef
public void setLabel(Label value)
FieldDef
public 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()
FieldDef
getCondition
in class FieldDef
Condition
public void setCondition(Condition value)
FieldDef
setCondition
in class FieldDef
value
- allowed object is
Condition
public 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 FieldDef
public Validation getValidation()
FieldDef
getValidation
in class FieldDef
Validation
public void setValidation(Validation value)
FieldDef
setValidation
in class FieldDef
value
- allowed object is
Validation
public Messages getMessages()
FieldDef
getMessages
in class FieldDef
Messages
public void setMessages(Messages value)
FieldDef
setMessages
in class FieldDef
value
- allowed object is
Messages
public 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)
FieldDef
public FieldType getType()
FieldDef
FieldType
, which decides about how the field is being displayed.public void setType(FieldType value)
FieldDef
public BigInteger getDisplayLength()
FieldDef
getDisplayLength
in class FieldDef
BigInteger
public void setDisplayLength(BigInteger value)
FieldDef
setDisplayLength
in class FieldDef
value
- allowed object is
BigInteger
public String getFormat()
FieldDef
FieldDef.type
supports formatting.public void setFormat(String value)
FieldDef
public String getReadonly()
FieldDef
true
, the field's value is readonly.getReadonly
in class FieldDef
String
public void setReadonly(String value)
FieldDef
setReadonly
in class FieldDef
value
- allowed object is
String
public String getHidden()
FieldDef
true
, the field will not be visible to the user.public void setHidden(String value)
FieldDef
public String getBinding()
FieldDef
MetaData.getBindClass()
(if any, separated with a dot) and the field's name.getBinding
in class FieldDef
String
public void setBinding(String value)
FieldDef
setBinding
in class FieldDef
value
- allowed object is
String
public Linkpanel getLinkpanel()
public void backupFields()
public void restoreFields()
public void setLinkpanel(Linkpanel linkpanel)
Copyright © 2011–2017 aiticon GmbH. All rights reserved.