public interface PreferenceEditor
Modifier and Type | Interface and Description |
---|---|
static class |
PreferenceEditor.PROPERTY
UI properties associated to a Preference Section.
|
static class |
PreferenceEditor.TYPE
Default Editor types available in the Framework.
|
Modifier and Type | Method and Description |
---|---|
void |
editorShowed()
Method invoked by the framework when the editor is showed.
|
JComponent |
getEditor()
Returns the GUI component of the editor.
|
String |
getName()
Returns the name of the editor.
|
PreferenceSection |
getPreferenceSection()
Returns the ConfigurationFeature associated to the editor.
|
boolean |
isEdited()
Figures out whether something has been edited.
|
PreferenceEditor |
newInstance(PreferenceSection cf,
HashSet<PreferenceEditor.PROPERTY> props)
Creates a new instance of an editor.
|
void |
saveData()
Saves data.
|
PreferenceEditor newInstance(PreferenceSection cf, HashSet<PreferenceEditor.PROPERTY> props)
cf
- the PreferenceSection for which the editor has to be createdprops
- the set of properties to apply to the editorString getName()
boolean isEdited()
void saveData() throws PreferenceException
PreferenceException
- implementation should throw a PreferenceException if any kind of errors occurs
while saving data.JComponent getEditor()
void editorShowed()
PreferenceSection getPreferenceSection()
Plealog Software - 2003-2017