com.japisoft.xmlpad.editor
Class EditorModel
java.lang.Object
com.japisoft.xmlpad.editor.EditorModel
- public final class EditorModel
- extends java.lang.Object
This EditorModel stores editor for custom node edition.
- Author:
- (c) 2003 JAPISOFT / A.Brillant
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_EDITOR
public static Editor DEFAULT_EDITOR
EditorModel
public EditorModel()
addEditor
public static void addEditor(Editor editor)
- Add an editor. The last added has always a priority to the older
added when finding a good editor
removeEditor
public static void removeEditor(Editor editor)
- Remove an editor
getEditorForNode
public static Editor getEditorForNode(com.japisoft.fastparser.node.SimpleNode node)
- Returns:
- an editor for this node.
null
is returned if
no editor is available.
accept
public static boolean accept(com.japisoft.fastparser.node.SimpleNode node)
- Returns:
true
if the node can be edited