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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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;
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.