daoc.editor.model.types
Class NodeInfo

java.lang.Object
  extended bydaoc.editor.model.types.NodeInfo
All Implemented Interfaces:
java.lang.Comparable

public class NodeInfo
extends java.lang.Object
implements java.lang.Comparable

Various info about a control.


Constructor Summary
NodeInfo(java.lang.String label, java.lang.Class controlClass)
           
NodeInfo(java.lang.String label, java.lang.Class controlClass, javax.swing.ImageIcon icon)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 javax.swing.ImageIcon getIcon()
          Icon for this node
 java.lang.Class getNodeClass()
          Returns the class of this node.
 ElementNode newNode(ElementNode parent)
          Create a new node with the given parent
 java.lang.String toString()
          A string to represent this control
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeInfo

public NodeInfo(java.lang.String label,
                java.lang.Class controlClass)

NodeInfo

public NodeInfo(java.lang.String label,
                java.lang.Class controlClass,
                javax.swing.ImageIcon icon)
Method Detail

toString

public java.lang.String toString()
A string to represent this control


getIcon

public javax.swing.ImageIcon getIcon()
Icon for this node


newNode

public ElementNode newNode(ElementNode parent)
Create a new node with the given parent


getNodeClass

public java.lang.Class getNodeClass()
Returns the class of this node.


compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable