com.facetmap.simple
Class SimpleTaxHeading

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bycom.facetmap.simple.SimpleTaxHeading
All Implemented Interfaces:
java.lang.Cloneable, Heading, javax.swing.tree.MutableTreeNode, java.io.Serializable, TaxonomicHeading, javax.swing.tree.TreeNode

public class SimpleTaxHeading
extends javax.swing.tree.DefaultMutableTreeNode
implements TaxonomicHeading

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
SimpleTaxHeading(java.lang.String id)
           
SimpleTaxHeading(java.lang.String id, java.lang.String title)
           
 
Method Summary
 java.util.Enumeration getBackwardHeadings()
          An empty Enumeration is returned if there are no headings to return.
 Facet getFacet()
          Structure to which this Heading belongs.
 java.util.Enumeration getForwardHeadings()
          An empty Enumeration is returned if there are no headings to return.
 java.lang.String getId()
          Unique identifier.
 int getIntId()
           
 TaxonomicHeading getParentHeading()
           
 java.util.Enumeration getSubheadings()
          Returns an Enumeration of TaxonomicHeading objects which are the forward Headings of this Heading -- the child nodes.
 java.lang.String getTitle()
          The descriptive name of this Heading, for display to users.
 void setTitle(java.lang.String title)
           
 java.lang.String toString()
          Overrides the automatic null returned by superclass.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.facetmap.TaxonomicHeading
getChildCount
 
Methods inherited from interface com.facetmap.Heading
isRoot
 

Constructor Detail

SimpleTaxHeading

public SimpleTaxHeading(java.lang.String id)

SimpleTaxHeading

public SimpleTaxHeading(java.lang.String id,
                        java.lang.String title)
Method Detail

getTitle

public java.lang.String getTitle()
Description copied from interface: Heading
The descriptive name of this Heading, for display to users.

Specified by:
getTitle in interface Heading

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface Heading

getId

public java.lang.String getId()
Description copied from interface: Heading
Unique identifier.

Specified by:
getId in interface Heading

getSubheadings

public java.util.Enumeration getSubheadings()
Description copied from interface: TaxonomicHeading
Returns an Enumeration of TaxonomicHeading objects which are the forward Headings of this Heading -- the child nodes.

Specified by:
getSubheadings in interface TaxonomicHeading

getParentHeading

public TaxonomicHeading getParentHeading()
Specified by:
getParentHeading in interface TaxonomicHeading

getForwardHeadings

public java.util.Enumeration getForwardHeadings()
Description copied from interface: Heading
An empty Enumeration is returned if there are no headings to return.

Specified by:
getForwardHeadings in interface Heading

getBackwardHeadings

public java.util.Enumeration getBackwardHeadings()
Description copied from interface: Heading
An empty Enumeration is returned if there are no headings to return.

Specified by:
getBackwardHeadings in interface Heading

getIntId

public int getIntId()

getFacet

public Facet getFacet()
Description copied from interface: Heading
Structure to which this Heading belongs. Returns null if the Heading has not been added to a Facet.

Specified by:
getFacet in interface Heading

toString

public java.lang.String toString()
Overrides the automatic null returned by superclass.