|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Editor
Editor
controls editor panel, which prowides GUI editor for
some aspect of displayer.
Implementator of this interface must provide defult constructor for implementation class.
Field Summary | |
---|---|
static java.lang.String[] |
ASPECTS
List of names of editable aspects with this editor. |
Method Summary | |
---|---|
void |
applySettings()
Applies current settings to the edited displayer. |
boolean |
canEdit(java.lang.Object object,
java.lang.String aspect)
Test if this editor can edit given displayer with given aspect. |
javax.swing.JComponent |
getEditorComponent(java.lang.Object object,
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. |
void |
revertSettings()
Reverts editor values to currently used settings. |
void |
stopEditing()
Stop current editing session and release edited displayer. |
Field Detail |
---|
static final java.lang.String[] ASPECTS
Method Detail |
---|
javax.swing.JComponent getEditorComponent(java.lang.Object object, java.lang.String aspect) throws java.lang.IllegalArgumentException
aspect
, given with parameter, of
the given displayer. IF displayer is not design to edit given component
in given aspect, IllegalArgumentException
is thrown.
aspect
- the aspect in which displayer will be edited
java.lang.IllegalArgumentException
void applySettings()
boolean canEdit(java.lang.Object object, java.lang.String aspect)
aspect
- the aspect in which displayer should be edited
void revertSettings()
void stopEditing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |