|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the main interface for managing an XMLEditor inside the XMLAppContainer.
When firstly this editor is used, the init method is called, after for each starting
and ending usage, respectively the methods start and stop will be
called. The start method will give piece of information about the current xml node, thus
the editor will have the ability to update this node.
The editor is started because the user selects it from the main container and wants to edit
an XML branch using it. This XML branch is available from the XMLEditingContext from the
start method.
XMLEditingContext| Method Summary | |
XMLEditorActions |
getActions()
|
XMLEditingChoice |
getEditingChoice()
|
XMLEditorListeners |
getListeners()
|
java.lang.String |
getName()
|
XMLEditorUI |
getView()
One important feature. |
void |
init()
This is called once for initializing the editor |
void |
setEnabled(boolean enabled)
Here a way for enabling/disabling this editor, the UI part can ignore this state |
void |
start(XMLEditingContext context)
This is called each time we begin to use this editor |
void |
stop(XMLEditingContext context)
This called when we stop to use this editor like alterning to another editor. |
| Method Detail |
public void init()
public void start(XMLEditingContext context)
context - Give some information like the current editing node or the root nodepublic void stop(XMLEditingContext context)
commit method for
confirming, thus the XML document will be updated. Note that the commit must only
be called once.
public void setEnabled(boolean enabled)
public java.lang.String getName()
public XMLEditorUI getView()
public XMLEditingChoice getEditingChoice()
null value is returned, it means this editor managed any nodespublic XMLEditorActions getActions()
null if it doesn't manage actionspublic XMLEditorListeners getListeners()
null if it doesn't manage listeners
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||