com.japisoft.xmlpad.nodeeditor
Class EditorModel

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

Field Summary
static Editor DEFAULT_EDITOR
           
 
Constructor Summary
EditorModel()
           
 
Method Summary
static boolean accept(SimpleNode node)
           
static void addEditor(Editor editor)
          Add an editor.
static Editor getEditorForNode(SimpleNode node)
           
static void removeEditor(Editor editor)
          Remove an editor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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(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.