|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Editor
An Editor for getting and setting properties based on UI interaction. Note that editors do NOT operate on the original property but on a copy; in particular, any changes made through the editor have to be explicitly retrieved by calling getEditedObject and then set on the original property. For indexed properties, the editor should deal with the whole set at once.
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a listener for property changes. |
Component |
getComponent()
Get any GUI component for editing. |
Object |
getEditedObject()
Retrieves the edited object. |
Property |
getProperty()
Get the property for which we are editing. |
String |
getStringValue()
Gets the value as a String. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a property change listener. |
void |
setEditedObject(Object value)
Set the object to edit. |
void |
setStringValue(String val)
Sets the value as a String. |
Method Detail |
---|
Property getProperty()
Object getEditedObject()
void setEditedObject(Object value)
value
- The object to edit.void setStringValue(String val) throws PropertyException
val
- The value.
PropertyException
- If not supported.String getStringValue() throws PropertyException
PropertyException
- On error.Component getComponent()
void addPropertyChangeListener(PropertyChangeListener l)
PropertyChangeListener
- l The listener.void removePropertyChangeListener(PropertyChangeListener l)
l
- The listener.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |