public class DefaultPropertyEditorBean extends java.lang.Object implements PropertyEditorBean
| Constructor and Description |
|---|
DefaultPropertyEditorBean(PropertyEditorDescriptor meta) |
| Modifier and Type | Method and Description |
|---|---|
PropertyEditorDescriptor |
getDescriptor()
The descriptor which this beans belong to.
|
java.lang.Object |
getValue()
Returns the current value.
|
java.util.List<java.lang.Object> |
getValues() |
void |
initialize(java.lang.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(java.lang.Object value)
Changes the current value.
|
void |
setValues(java.util.List<java.lang.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 java.lang.Object getValue()
PropertyEditorBeangetValue in interface PropertyEditorBeanpublic java.util.List<java.lang.Object> getValues()
public void setValues(java.util.List<java.lang.Object> values)
public void initialize(java.lang.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(java.lang.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 © 2018 SAP SE. All Rights Reserved.