public interface HasDataValue
DynamicForm.
Any widget that implements this interface can be added directly to a DynamicForm.
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareValues(java.lang.Object value1,
java.lang.Object value2)
Compares two values for equality.
|
java.lang.Boolean |
getCanEdit() |
java.lang.String |
getFieldName()
Returns this field's name.
|
java.lang.Boolean |
getShowTitle()
|
java.lang.Boolean |
getStopOnError() |
java.lang.String |
getTitle()
Returns this field's title.
|
Validator[] |
getValidators() |
void |
setCanEdit(java.lang.Boolean canEdit)
If non-
null, explicitly sets the editability of this field. |
void |
setDataManager(DataManager dataManager)
Sets the associated
DataManager instance. |
void |
showValue(java.lang.Object value)
Called by the
DataManager to notify this HasDataValue that
the DataManager's value for this HasDataValue was changed
and that this HasDataValue needs to update its display field to the given
value. |
void |
updateCanEdit()
Called by the
DataManager to notify this HasDataValue that
the DataManager's canEdit
attribute changed and that this HasDataValue's editability may have changed
as a result. |
java.lang.Boolean getCanEdit()
void setCanEdit(java.lang.Boolean canEdit)
null, explicitly sets the editability of this field. A value of
Boolean.TRUE means that this field is editable. A value of
Boolean.FALSE means that this field is read-only.
If not explicitly set, then this field should consider itself editable if its
DataManager is editable. See
DataManager.getCanEdit().
canEdit - an explicit override.void setDataManager(DataManager dataManager)
DataManager instance.
This HasDataValue instance uses the DataManager to post
notifications of changes to its value caused by user action.
dataManager - the associated DataManager.DataManager.storeValue(String, Object)java.lang.String getFieldName()
java.lang.Boolean getShowTitle()
java.lang.Boolean getStopOnError()
java.lang.String getTitle()
Validator[] getValidators()
boolean compareValues(java.lang.Object value1,
java.lang.Object value2)
value1 - first value.value2 - second value.true if value1 is equal to value2 in the
context of this HasDataValue; false otherwise.void showValue(java.lang.Object value)
DataManager to notify this HasDataValue that
the DataManager's value for this HasDataValue was changed
and that this HasDataValue needs to update its display field to the given
value.
NOTE: An implementation must not call the associated DataManager's
DataManager.storeValue(String, Object)
method.
value - the new value.void updateCanEdit()
DataManager to notify this HasDataValue that
the DataManager's canEdit
attribute changed and that this HasDataValue's editability may have changed
as a result.