| net.suberic.util.gui.propedit.PropertyEditorUI
All known Subclasses: net.suberic.util.gui.propedit.SwingPropertyEditor,
PropertyEditorUI | public interface PropertyEditorUI (Code) | | An interface which defines a way of editing a property.
|
addPropertyEditorListener | public void addPropertyEditorListener(PropertyEditorListener pel)(Code) | | Adds a PropertyEditorListener to the ListenerList.
|
configureEditor | public void configureEditor(String propertyName, String template, PropertyEditorManager manager, boolean isEnabled)(Code) | | This configures an editor for the given propertyName using the
PropertyManager mgr.
This version usees the template property to definte all things about
the editor for propertyName. This is useful if you want to be able
to edit, for instace, the properties of a particular user:
UserProfile.userOne.showHeaders
UserProfile.userTwo.showHeaders
UserProfile.showHeaders.propertyType=boolean
So you can use this just to call configureEditor(factory,
"UserProfile.userOne.showHeaders", "UserProfile.showHeaders", mgr,
true)
Parameters: propertyName - The property to be edited. Parameters: template - The property that will define the layout of the editor. Parameters: manager - The PropertyEditorManager that will manage thechanges. Parameters: isEnabled - Whether or not this editor is enabled by default. |
configureEditor | public void configureEditor(String propertyName, PropertyEditorManager mgr, boolean isEnabled)(Code) | | This configures an editor for the given propertyName in the
PropertyEditorManager mgr.
Parameters: propertyName - The property to be edited. This will also beused for the editor layout. Parameters: manager - The PropertyEditorManager that will manage thechanges. Parameters: isEnabled - Whether or not this editor is enabled by default. |
configureEditor | public void configureEditor(String propertyName, PropertyEditorManager mgr)(Code) | | This configures an editor for the given propertyName in the
PropertyEditorManager mgr.
Parameters: propertyName - The property to be edited. This will also beused for the editor layout. Parameters: manager - The PropertyEditorManager that will manage thechanges. |
getValue | public java.util.Properties getValue()(Code) | | Returns the current values of the edited properties as a
java.util.Properties object.
|
isEnabled | public boolean isEnabled()(Code) | | Returns whether or not this editor is enabled.
|
removePropertyEditorListener | public void removePropertyEditorListener(PropertyEditorListener pel)(Code) | | Removes a PropertyEditorListener from the ListenerList.
|
resetDefaultValue | public void resetDefaultValue() throws PropertyValueVetoException(Code) | | This resets the editor to the original (or latest set, if setValue()
has been called) value of the edited property.
|
setEnabled | public void setEnabled(boolean newValue)(Code) | | Sets the enabled property of the PropertyEditorUI. Disabled
editors should not be able to do setValue() calls.
|
setValue | public void setValue() throws PropertyValueVetoException(Code) | | This writes the currently configured value in the PropertyEditorUI
to the source VariableBundle.
|
|
|