edu.ucsb.nceas.morpho.editor
Class NodeInfo

java.lang.Object
  |
  +--edu.ucsb.nceas.morpho.editor.NodeInfo
All Implemented Interfaces:
java.io.Serializable

public class NodeInfo
extends java.lang.Object
implements java.io.Serializable

NodeInfo is a class used as a UserObject for a specialized JTree model. It is basically the container for all information about the node in the tree data structure. This includes the node text and icon. When the tree is used to show the hierarchy of an XML document, it also contains all all information in the attributes of the XML node, as well as other information like the cardinality of the node. Content information from a DTD/schema can thus be stored along with actual XML element data

Author:
higgins
See Also:
Serialized Form

Constructor Summary
NodeInfo(java.lang.String name)
          creates a new NodeInfo object with the indicated name.
 
Method Summary
 NodeInfo cloneNodeInfo()
           
 java.lang.String getCardinality()
           
 java.lang.String getEditor()
           
 java.lang.String getHelp()
           
 javax.swing.ImageIcon getIcon()
           
 java.lang.String getIconName()
           
 java.lang.Object getItem()
           
 java.lang.String getName()
           
 java.lang.String getPCValue()
           
 java.lang.String getRootEditor()
           
 boolean isChoice()
           
 boolean isSelected()
           
 void setCardinality(java.lang.String card)
           
 void setChoice(boolean flg)
           
 void setEditor(java.lang.String edt)
           
 void setHelp(java.lang.String hlp)
           
 void setIcon(java.lang.String name)
           
 void setItem(java.lang.Object o)
           
 void setName(java.lang.String name)
           
 void setPCValue(java.lang.String val)
           
 void setRootEditor(java.lang.String redt)
           
 void setSelected(boolean flg)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeInfo

public NodeInfo(java.lang.String name)
creates a new NodeInfo object with the indicated name.
Parameters:
name - name is the text that will appear when a TreeNode which has been assigned a NodeInfo object with 'name' as the UserObject;
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setCardinality

public void setCardinality(java.lang.String card)

isChoice

public boolean isChoice()

setChoice

public void setChoice(boolean flg)

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean flg)

getHelp

public java.lang.String getHelp()

setHelp

public void setHelp(java.lang.String hlp)

getEditor

public java.lang.String getEditor()

setEditor

public void setEditor(java.lang.String edt)

getRootEditor

public java.lang.String getRootEditor()

setRootEditor

public void setRootEditor(java.lang.String redt)

setPCValue

public void setPCValue(java.lang.String val)

getPCValue

public java.lang.String getPCValue()

getCardinality

public java.lang.String getCardinality()

getItem

public java.lang.Object getItem()

setItem

public void setItem(java.lang.Object o)

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setIcon

public void setIcon(java.lang.String name)

getIcon

public javax.swing.ImageIcon getIcon()

getIconName

public java.lang.String getIconName()

cloneNodeInfo

public NodeInfo cloneNodeInfo()


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.