|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldMetadata
Encapsulates the state of an individual property of a form model.
Field Summary | |
---|---|
static String |
DIRTY_PROPERTY
The name of the bound property dirty . |
static String |
ENABLED_PROPERTY
The name of the bound property enabled . |
static String |
READ_ONLY_PROPERTY
The name of the bound property readOnly . |
Method Summary | |
---|---|
Map |
getAllUserMetadata()
Returns all custom metadata associated with this property in the form of a Map. |
Class |
getPropertyType()
Return the type of this property. |
Object |
getUserMetadata(String key)
Returns custom metadata that may be associated with this property. |
boolean |
isDirty()
Returns whether or not the property is dirty. |
boolean |
isEnabled()
Returns whether or not the property is enabled. |
boolean |
isReadOnly()
Returns whether or not the property is read only. |
void |
setEnabled(boolean enabled)
Sets the enabled value for this property. |
void |
setReadOnly(boolean readOnly)
Sets whether or not this property is read only. |
Methods inherited from interface org.springframework.binding.value.PropertyChangePublisher |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Field Detail |
---|
static final String ENABLED_PROPERTY
enabled
.
static final String READ_ONLY_PROPERTY
readOnly
.
static final String DIRTY_PROPERTY
dirty
.
Method Detail |
---|
Class getPropertyType()
Object getUserMetadata(String key)
Map getAllUserMetadata()
void setReadOnly(boolean readOnly)
It's expected that controls bound to this form property will listen for changes to this value and if possible modify their display/behaviour to reflect the new state. e.g. When this property becomes true a text component would grey its self out and prevent any editing.
This value will be propagated up to any descendants.
readOnly
- should this property be read onlyboolean isReadOnly()
A property is read only if any of the following are true:
void setEnabled(boolean enabled)
It's expected that controls bound to this form property will listen for changes to this value and if possible modify their display/behaviour to reflect the new state.
This value will be propagated up to any descendants.
enabled
- should this property be enabledboolean isEnabled()
A property is enabled if all of the following are true:
boolean isDirty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |