Interface PropertyEditorBean
-
- All Known Implementing Classes:
DefaultPropertyEditorBean
,DefaultZKPropertyEditorBean
public interface PropertyEditorBean
The 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 PropertyEditorDescriptor
getDescriptor()
The descriptor which this beans belong to.java.lang.Object
getValue()
Returns the current value.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.
-
-
-
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.
-
-