com.japisoft.xmlpad.editor
Class EditorModel

java.lang.Object
  extended bycom.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

Field Summary
static Editor DEFAULT_EDITOR
           
 
Constructor Summary
EditorModel()
           
 
Method Summary
static boolean accept(com.japisoft.fastparser.node.SimpleNode node)
           
static void addEditor(Editor editor)
          Add an editor.
static Editor getEditorForNode(com.japisoft.fastparser.node.SimpleNode node)
           
static void removeEditor(Editor editor)
          Remove an editor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_EDITOR

public static Editor DEFAULT_EDITOR
Constructor Detail

EditorModel

public EditorModel()
Method Detail

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