|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.customizer.EditorChooser
public class EditorChooser
EditorChooser
is convenience implementation, which trys to find
one active editor form list of available editorList.
Field Summary |
---|
Fields inherited from interface com.cosylab.gui.components.customizer.Editor |
---|
ASPECTS |
Constructor Summary | |
---|---|
EditorChooser()
Default constructor. |
Method Summary | |
---|---|
void |
addEditor(Editor editor)
Adds editor to the list of available editorList. |
void |
applySettings()
Applies current settings to the edited displayer. |
boolean |
canEdit(java.lang.Object displayer,
java.lang.String aspect)
Test if this editor can edit given displayer with given aspect. |
Editor |
getActiveEditor()
Returns active editor. |
javax.swing.JComponent |
getEditorComponent(java.lang.Object displayer,
java.lang.String aspect)
Starts editing session and returns conponent, which will provide GUI for editing some aspect , given with parameter, of
the given displayer. |
Editor[] |
getEditors()
Returns list of all registered editors. |
void |
removeEditor(Editor editor)
Removes provided editor from this list. |
void |
revertSettings()
Reverts editor values to currently used settings. |
void |
stopEditing()
Stop current editing session and release edited displayer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditorChooser()
Method Detail |
---|
public javax.swing.JComponent getEditorComponent(java.lang.Object displayer, java.lang.String aspect) throws java.lang.IllegalArgumentException
Editor
aspect
, given with parameter, of
the given displayer. IF displayer is not design to edit given component
in given aspect, IllegalArgumentException
is thrown.
getEditorComponent
in interface Editor
aspect
- the aspect in which displayer will be edited
java.lang.IllegalArgumentException
public boolean canEdit(java.lang.Object displayer, java.lang.String aspect)
Editor
canEdit
in interface Editor
aspect
- the aspect in which displayer should be edited
public void applySettings()
Editor
applySettings
in interface Editor
public void revertSettings()
Editor
revertSettings
in interface Editor
public void stopEditing()
Editor
stopEditing
in interface Editor
public Editor getActiveEditor()
public Editor[] getEditors()
public void addEditor(Editor editor)
editor
- new available editorpublic void removeEditor(Editor editor)
editor
- to beremoved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |