public class DefaultPropertyEditorBean extends Object implements PropertyEditorBean
| Constructor and Description |
|---|
DefaultPropertyEditorBean(PropertyEditorDescriptor meta) |
| Modifier and Type | Method and Description |
|---|---|
PropertyEditorDescriptor |
getDescriptor()
The descriptor which this beans belong to.
|
Object |
getValue()
Returns the current value.
|
List<Object> |
getValues() |
void |
initialize(Object value)
Initializes the editor bean by specifying the start value.
|
boolean |
isEditable()
Tells whether the editor allows changes.
|
boolean |
isInvalid()
Tells whether this editor shows invalid state.
|
boolean |
isModified()
Tells whether this bean contains a modified value compared to the start value.
|
void |
reset()
Resets the editor to the initial value.
|
void |
setEditable(boolean editable)
Switches editing on and off.
|
void |
setInvalid(boolean invalid)
Switches invalid state of this editor bean.
|
void |
setValue(Object value)
Changes the current value.
|
void |
setValues(List<Object> values) |
protected void |
updateEditable(boolean newEditable)
Called each time the editable flag has been changed.
|
protected void |
updateInvalid(boolean newInvalid)
Called each time the invalid flag has been changed.
|
public DefaultPropertyEditorBean(PropertyEditorDescriptor meta)
protected void updateEditable(boolean newEditable)
newEditable - the new editable flag valuepublic final void setEditable(boolean editable)
PropertyEditorBeansetEditable in interface PropertyEditorBeaneditable - true if the component should be allow changespublic boolean isEditable()
PropertyEditorBeanisEditable in interface PropertyEditorBeanpublic final PropertyEditorDescriptor getDescriptor()
PropertyEditorBeangetDescriptor in interface PropertyEditorBeanpublic Object getValue()
PropertyEditorBeangetValue in interface PropertyEditorBeanpublic void initialize(Object value)
PropertyEditorBeaninitialize in interface PropertyEditorBeanvalue - the start valuepublic void reset()
PropertyEditorBeanreset in interface PropertyEditorBeanpublic boolean isModified()
PropertyEditorBeanisModified in interface PropertyEditorBeanPropertyEditorBean.initialize(Object),
PropertyEditorBean.setValue(Object)public void setValue(Object value)
PropertyEditorBeansetValue in interface PropertyEditorBeanpublic boolean isInvalid()
PropertyEditorBeanisInvalid in interface PropertyEditorBeanprotected void updateInvalid(boolean newInvalid)
newInvalid - the new invalid flag valuepublic void setInvalid(boolean invalid)
PropertyEditorBeansetInvalid in interface PropertyEditorBeaninvalid - true if the editor should show invalid stateCopyright © 2017 SAP SE. All Rights Reserved.