VdexReload 1.1.3 API

uk.ac.reload.editor.gui
Class ReloadElementTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byuk.ac.reload.dweezil.gui.tree.ReloadTreeNode
          extended byuk.ac.reload.editor.gui.ReloadElementTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
ManifestTreeNode, MetadataTreeNode, VocabularyTreeNode

public abstract class ReloadElementTreeNode
extends ReloadTreeNode

An implementation of DefaultMutableTreeNode for Trees. It contains: A JDOM Element A SchemaElement A ReloadDocument

See Also:
Serialized Form

Field Summary
protected  ReloadElementBinding _eb
          The ReloadElementBinding
protected  ReloadSchemaDocument _reloadDocument
          The Parent Document
protected  ReloadSchemaElement _reloadSchemaElement
          The associated ReloadSchemaElement
 
Fields inherited from class uk.ac.reload.dweezil.gui.tree.ReloadTreeNode
isExpanded, isHiLited
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ReloadElementTreeNode(org.jdom.Element element)
          Constructor for child Element
ReloadElementTreeNode(ReloadSchemaDocument reloadDocument)
          Constructor for Root Element
 
Method Summary
 ReloadElementBinding createReloadElementBinding()
          Because other classes may not be interested in tree nodes we can return the important bits wrapped up in a ReloadElementBinding
 javax.swing.Icon getClosedIcon()
          Get the closed icon to display
 org.jdom.Element getElement()
          Get the JDOM Element
 javax.swing.Icon getLeafIcon()
          Get the leaf icon to display
 java.lang.String getName()
          Get the name of the element
 javax.swing.Icon getOpenIcon()
          Get the open icon to display
 ReloadSchemaDocument getReloadDocument()
          Get the parent document
 ReloadSchemaElement getSchemaElement()
          Get the ReloadSchemaElement
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_reloadSchemaElement

protected ReloadSchemaElement _reloadSchemaElement
The associated ReloadSchemaElement


_reloadDocument

protected ReloadSchemaDocument _reloadDocument
The Parent Document


_eb

protected ReloadElementBinding _eb
The ReloadElementBinding

Constructor Detail

ReloadElementTreeNode

public ReloadElementTreeNode(ReloadSchemaDocument reloadDocument)
Constructor for Root Element

Parameters:
reloadDocument - The ReloadDocument DOM Document

ReloadElementTreeNode

public ReloadElementTreeNode(org.jdom.Element element)
Constructor for child Element

Parameters:
element - The JDOM Element
Method Detail

createReloadElementBinding

public ReloadElementBinding createReloadElementBinding()
Because other classes may not be interested in tree nodes we can return the important bits wrapped up in a ReloadElementBinding

Returns:
ReloadElementBinding

getElement

public org.jdom.Element getElement()
Get the JDOM Element

Returns:
The JDOM Element

getSchemaElement

public ReloadSchemaElement getSchemaElement()
Get the ReloadSchemaElement

Returns:
The associated ReloadSchemaElement

getReloadDocument

public ReloadSchemaDocument getReloadDocument()
Get the parent document

Returns:
the parent document

getName

public java.lang.String getName()
Get the name of the element

Returns:
the name of the Element

getLeafIcon

public javax.swing.Icon getLeafIcon()
Get the leaf icon to display

Returns:
the Leaf Icon to display

getOpenIcon

public javax.swing.Icon getOpenIcon()
Get the open icon to display

Returns:
the Open Icon to display

getClosedIcon

public javax.swing.Icon getClosedIcon()
Get the closed icon to display

Returns:
the Closed Icon to display

VdexReload 1.1.3 API