Interface PropertyEditorBean
-
- All Known Implementing Classes:
DefaultPropertyEditorBean,DefaultZKPropertyEditorBean
public interface PropertyEditorBeanThe backing bean for a specific property editor view component. It allows to read and write the actual value and marking is editable and invalid. Created by itsPropertyEditorDescriptor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertyEditorDescriptorgetDescriptor()The descriptor which this beans belong to.java.lang.ObjectgetValue()Returns the current value.voidinitialize(java.lang.Object value)Initializes the editor bean by specifying the start value.booleanisEditable()Tells whether the editor allows changes.booleanisInvalid()Tells whether this editor shows invalid state.booleanisModified()Tells whether this bean contains a modified value compared to the start value.voidreset()Resets the editor to the initial value.voidsetEditable(boolean editable)Switches editing on and off.voidsetInvalid(boolean invalid)Switches invalid state of this editor bean.voidsetValue(java.lang.Object value)Changes the current value.
-
-
-
Method Detail
-
getDescriptor
PropertyEditorDescriptor getDescriptor()
The descriptor which this beans belong to.
-
initialize
void initialize(java.lang.Object value)
Initializes the editor bean by specifying the start value. This will reset all previous changes. Therefore the editor bean wont be modified any longer!- Parameters:
value- the start value
-
reset
void reset()
Resets the editor to the initial value. Also clears invalid flag. Editable flag remains untouched!
-
setValue
void setValue(java.lang.Object value)
Changes the current value. If the value is different from the start value the bean is marked modified.- Parameters:
value-
-
getValue
java.lang.Object getValue()
Returns the current value.
-
isModified
boolean isModified()
Tells whether this bean contains a modified value compared to the start value.- See Also:
initialize(Object),setValue(Object)
-
setEditable
void setEditable(boolean editable)
Switches editing on and off. This will not change the modification state!- Parameters:
editable- true if the component should be allow changes
-
isEditable
boolean isEditable()
Tells whether the editor allows changes.
-
setInvalid
void setInvalid(boolean invalid)
Switches invalid state of this editor bean.- Parameters:
invalid- true if the editor should show invalid state
-
isInvalid
boolean isInvalid()
Tells whether this editor shows invalid state.
-
-