VdexReload 1.1.3 API

uk.ac.reload.editor.contentpackaging.manifestview
Class ManifestTreeModel

java.lang.Object
  extended byjavax.swing.tree.DefaultTreeModel
      extended byuk.ac.reload.dweezil.gui.tree.ReloadTreeModel
          extended byuk.ac.reload.editor.contentpackaging.manifestview.ManifestTreeModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel

public class ManifestTreeModel
extends ReloadTreeModel

A Tree Model for the Manifest Tree

See Also:
Serialized Form

Field Summary
protected  ContentPackage _contentPackage
          The CP Document
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
ManifestTreeModel()
           
 
Method Summary
 void buildChildren(ManifestTreeNode node)
          Build up child nodes
protected  boolean canAddNode(org.jdom.Element element)
           
protected  boolean canAddNode(ReloadSchemaElement schemaElement)
           
protected  boolean canAddNode(java.lang.String elementName, org.jdom.Namespace ns)
           
protected  boolean doShowNode(org.jdom.Element element)
           
protected  boolean doShowNode(ReloadSchemaElement schemaElement)
           
protected  boolean doShowNode(java.lang.String elementName, org.jdom.Namespace ns)
           
 void setContentPackage(ContentPackage cp)
           
 
Methods inherited from class uk.ac.reload.dweezil.gui.tree.ReloadTreeModel
getRootNode
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_contentPackage

protected ContentPackage _contentPackage
The CP Document

Constructor Detail

ManifestTreeModel

public ManifestTreeModel()
Method Detail

setContentPackage

public void setContentPackage(ContentPackage cp)

buildChildren

public void buildChildren(ManifestTreeNode node)
Build up child nodes

Parameters:
node - The Parent Node

doShowNode

protected boolean doShowNode(org.jdom.Element element)
Returns:
Whether to display an Element on the Tree

doShowNode

protected boolean doShowNode(ReloadSchemaElement schemaElement)
Returns:
Whether to display an Element on the Tree

doShowNode

protected boolean doShowNode(java.lang.String elementName,
                             org.jdom.Namespace ns)
Returns:
Whether to display an Element on the Tree

canAddNode

protected boolean canAddNode(org.jdom.Element element)
Returns:
Whether to allow to add an Element on the Tree

canAddNode

protected boolean canAddNode(ReloadSchemaElement schemaElement)
Returns:
Whether to allow to add an Element on the Tree

canAddNode

protected boolean canAddNode(java.lang.String elementName,
                             org.jdom.Namespace ns)
Returns:
Whether to allow to add an Element on the Tree

VdexReload 1.1.3 API