com.japisoft.xmlappkit.editor
Class AbstractXMLEditor
java.lang.Object
com.japisoft.xmlappkit.editor.AbstractXMLEditor
- All Implemented Interfaces:
- XMLEditor
- Direct Known Subclasses:
- Group1Editor, SourceXMLEditor
- public abstract class AbstractXMLEditor
- extends java.lang.Object
- implements XMLEditor
Set of facility for creating a new XML editor. Call the
setView method for resetting the view of your
editor. You will have to implant the start and stop method
- Version:
- 1.0
- Author:
- (c) 2004 JAPISoft / http://www.japisoft.com
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractXMLEditor
public AbstractXMLEditor(java.lang.String name)
- Parameters:
name - Required name of this editor
init
public void init()
- Description copied from interface:
XMLEditor
- This is called once for initializing the editor
- Specified by:
init in interface XMLEditor
setEnabled
public void setEnabled(boolean enabled)
- Description copied from interface:
XMLEditor
- Here a way for enabling/disabling this editor, the UI part can ignore this state
- Specified by:
setEnabled in interface XMLEditor
getName
public java.lang.String getName()
- Specified by:
getName in interface XMLEditor
- Returns:
- the name of this editor
getView
public XMLEditorUI getView()
- Description copied from interface:
XMLEditor
- One important feature. This view reference should'nt change during the XMLEditor life time meaning
once you have built your view, always return the same object reference, so you must'nt rebuild this view
each time this is asked
- Specified by:
getView in interface XMLEditor
- Returns:
- the visible part of this editor. This is the view for the final user
getEditingChoice
public XMLEditingChoice getEditingChoice()
- Specified by:
getEditingChoice in interface XMLEditor
- Returns:
- the set of element that this editor wants to support. If a
null value is returned, it means this editor managed any nodes
getActions
public XMLEditorActions getActions()
- Specified by:
getActions in interface XMLEditor
- Returns:
- a set of available actions. This editor can return
null if it doesn't manage actions
getListeners
public XMLEditorListeners getListeners()
- Specified by:
getListeners in interface XMLEditor
- Returns:
- a set of listeners. This editor can return
null if it doesn't manage listeners