public abstract class EntityPropertyEditor extends EntityPropertyViewer implements ValidationCompletedListener
Modifier and Type | Class and Description |
---|---|
static interface |
EntityPropertyEditor.OnValidationEventListener |
Constructor and Description |
---|
EntityPropertyEditor(RadDataForm dataForm,
int layoutId,
int headerLayoutId,
int headerViewId,
int editorLayoutId,
int editorViewId,
int validationLayoutId,
EntityProperty property) |
Modifier and Type | Method and Description |
---|---|
void |
addEditorChangeListener(EntityPropertyEditorChangeListener listener)
Adds an editor change listener.
|
void |
addValidationListener(EntityPropertyEditor.OnValidationEventListener listener)
Sets a validation listener.
|
CommitMode |
getCommitMode()
Gets the commit mode of this editor.
|
int |
getValidationLayoutId() |
ValidationMode |
getValidationMode() |
DataFormValidationViewBehavior |
getValidationViewBehavior() |
boolean |
isValidated() |
void |
load()
Initializes the editor with the associated property.
|
void |
loadPropertyValue() |
void |
removeEditorChangeListener(EntityPropertyEditorChangeListener listener)
Removes an editor change listener.
|
void |
removeValidationListener(EntityPropertyEditor.OnValidationEventListener listener) |
void |
setCommitMode(CommitMode value)
Sets the commit mode of this editor.
|
void |
setValidationLayoutId(int value) |
void |
setValidationMode(ValidationMode value) |
void |
setValidationViewBehavior(DataFormValidationViewBehavior value) |
void |
tryApplyValueToProperty()
Gets the current editor value and tries to set it on the target object property.
|
void |
unload()
Frees the viewer from the associated property.
|
void |
updateLayoutWithElements(View rootLayout,
View headerView,
View editorView,
View imageView,
View validationView,
View validationIcon) |
void |
validate() |
void |
validationCompleted(ValidationInfo info) |
View |
validationIcon() |
ValidationInfo |
validationInfo()
Gets the validation info produced by the last validation attempt.
|
View |
validationView() |
abstract Object |
value()
Gets the value currently produced by the editor.
|
applyParams, getEditorView, getHeaderView, getLabelPosition, getLabelWidth, imageView, isEnabled, notifyEntityPropertyChanged, onDataFormEnabledChanged, property, rootLayout, setEditorLayout, setEnabled, setHeaderLayout, setLabelPosition, setLabelWidth
public EntityPropertyEditor(RadDataForm dataForm, int layoutId, int headerLayoutId, int headerViewId, int editorLayoutId, int editorViewId, int validationLayoutId, EntityProperty property)
public int getValidationLayoutId()
public void setValidationLayoutId(int value)
public boolean isValidated()
public void updateLayoutWithElements(View rootLayout, View headerView, View editorView, View imageView, View validationView, View validationIcon)
updateLayoutWithElements
in class EntityPropertyViewer
public void setValidationViewBehavior(DataFormValidationViewBehavior value)
public View validationView()
public View validationIcon()
public DataFormValidationViewBehavior getValidationViewBehavior()
public void addEditorChangeListener(EntityPropertyEditorChangeListener listener)
public void removeEditorChangeListener(EntityPropertyEditorChangeListener listener)
public void setCommitMode(CommitMode value)
public CommitMode getCommitMode()
public ValidationMode getValidationMode()
public void setValidationMode(ValidationMode value)
public void addValidationListener(EntityPropertyEditor.OnValidationEventListener listener)
public void removeValidationListener(EntityPropertyEditor.OnValidationEventListener listener)
public ValidationInfo validationInfo()
public void load()
EntityPropertyViewer
load
in class EntityPropertyViewer
public void unload()
EntityPropertyViewer
unload
in class EntityPropertyViewer
public void loadPropertyValue()
loadPropertyValue
in class EntityPropertyViewer
public void validationCompleted(ValidationInfo info)
validationCompleted
in interface ValidationCompletedListener
public void validate()
public void tryApplyValueToProperty()
public abstract Object value()