|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertyEditor
Property editor interface.
| Field Summary |
|---|
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Method Summary | |
|---|---|
javax.swing.JComponent |
getComponent()
Get the editor for the property. |
java.lang.Object |
getObject()
Gets the the object to edit (object that own the property). |
PropertyEditorOwner |
getOwner()
Gets the the owner of the editor. |
java.lang.String |
getParams()
Gets the editor parameter values. |
PropertyBrowser |
getPropertyBrowser()
Gets the property browser instance if this property is used within the context of an property browser. |
javax.swing.JComponent |
getPropertyComponent()
Get the editor for the property. |
java.lang.String |
getPropertyName()
Gets the property name. |
PropertyValidator |
getValidator()
Gets the the property validator used by this property editor. |
java.lang.Object |
getValue()
Gets the the actual property value. |
void |
initialize(java.lang.String params)
Sets the editor parameters and initializes the editor. |
boolean |
isReadonly()
Gets the read only flag. |
void |
loadProperty()
Loads the property value from the object and displays it in the property component. |
void |
propertyChanged()
When a change in the property value has occurred, then this method is to be called. |
void |
resetComponentDisplay()
Resets the display of the editor. |
void |
resetProperty()
Resets the property to its original value. |
boolean |
saveProperty()
Saves the changes made to the property value if the property was modified. |
void |
setObject(java.lang.Object object)
Sets the object that holds the property specified by setPropertyName(java.lang.String) |
void |
setOwner(PropertyEditorOwner owner)
Sets the the owner of the editor. |
void |
setParams(java.lang.String params)
Sets the editor parameter values. |
void |
setPropertyBrowser(PropertyBrowser propertyBrowser)
Sets the property browser instance if this property is used within the context of an property browser. |
void |
setPropertyName(java.lang.String propertyName)
Sets the name of the property that should be edited by this editor instance. |
void |
setReadonly(boolean readonly)
Sets the read only flag. |
void |
setValidator(PropertyValidator validator)
Sets the the property validator used by this property editor. |
void |
setValue(java.lang.Object value)
Sets the the actual property value. |
| Methods inherited from interface org.openbp.common.generic.Copyable |
|---|
clone, copyFrom |
| Method Detail |
|---|
void initialize(java.lang.String params)
params - Editor parameters from the property descriptor or nullvoid loadProperty()
boolean saveProperty()
PropertyValidator has been set and then
on success save the property value.
void resetProperty()
void propertyChanged()
javax.swing.JComponent getPropertyComponent()
javax.swing.JComponent getComponent()
void resetComponentDisplay()
void setPropertyName(java.lang.String propertyName)
propertyName - The property namejava.lang.String getPropertyName()
void setObject(java.lang.Object object)
setPropertyName(java.lang.String)
object - The object to editjava.lang.Object getObject()
java.lang.Object getValue()
void setValue(java.lang.Object value)
boolean isReadonly()
java.lang.String getParams()
void setParams(java.lang.String params)
void setReadonly(boolean readonly)
PropertyValidator getValidator()
void setValidator(PropertyValidator validator)
PropertyEditorOwner getOwner()
void setOwner(PropertyEditorOwner owner)
PropertyBrowser getPropertyBrowser()
void setPropertyBrowser(PropertyBrowser propertyBrowser)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||