com.japisoft.xmlpad.nodeeditor
Class EditorModel
java.lang.Object
com.japisoft.xmlpad.nodeeditor.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 |
clone, equals, finalize, 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(SimpleNode node)
- Returns:
- an editor for this node.
null
is returned if
no editor is available.
accept
public static boolean accept(SimpleNode node)
- Returns:
true
if the node can be edited
Copyright © 2006 JAPISoft. All Rights Reserved.