|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultTreeModel
uk.ac.reload.dweezil.gui.treetable.ReloadTreeTableModel
uk.ac.reload.editor.metadata.tableview.MetadataTreeTableModel
The Metadata Tree Table Model for the MetadataTreeTable
Field Summary | |
protected Metadata |
_metadata
The Metadata DOM Document |
protected static java.lang.String[] |
cNames
The Column Names |
protected static java.lang.Class[] |
cTypes
The Class types for the Columns - this is important because the tree won't display properly without it. |
Fields inherited from class javax.swing.tree.DefaultTreeModel |
asksAllowsChildren, listenerList, root |
Constructor Summary | |
MetadataTreeTableModel(Metadata metadata)
Constructor |
Method Summary | |
void |
buildChildren(MetadataTreeNode node)
Build up child nodes |
protected boolean |
canAddNode(org.jdom.Element element)
Decide whether to allow to add an Element on the Tree |
protected boolean |
canAddNode(ReloadSchemaElement schemaElement)
Decide whether to allow to add an Element on the Tree |
protected boolean |
canAddNode(java.lang.String elementName,
org.jdom.Namespace ns)
Decide whether to allow to add an Element on the Tree |
protected boolean |
doShowNode(org.jdom.Element element)
Decide whether to display an Element on the Tree |
protected boolean |
doShowNode(ReloadSchemaElement schemaElement)
Decide whether to display an Element on the Tree |
protected boolean |
doShowNode(java.lang.String elementName,
org.jdom.Namespace ns)
Decide whether to display an Element on the Tree |
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Get the child node at index point |
int |
getChildCount(java.lang.Object parent)
Get the Child count in the Model |
java.lang.Class |
getColumnClass(int column)
Return the type of class for each column. |
int |
getColumnCount()
Get the number of columns in our model. |
java.lang.String |
getColumnName(int column)
Get the name for a particular column. |
Metadata |
getMetadata()
Get the Metadata document |
java.lang.Object |
getValueAt(java.lang.Object node,
int column)
Get the value for a given node and column. |
boolean |
isCellEditable(java.lang.Object node,
int column)
Determine whether a particular cell is editable. |
void |
setValueAt(java.lang.Object aValue,
java.lang.Object node,
int column)
Set the value of a node |
Methods inherited from class javax.swing.tree.DefaultTreeModel |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, 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 |
Methods inherited from interface javax.swing.tree.TreeModel |
addTreeModelListener, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged |
Field Detail |
protected static java.lang.Class[] cTypes
protected static java.lang.String[] cNames
protected Metadata _metadata
Constructor Detail |
public MetadataTreeTableModel(Metadata metadata)
metadata
- The Metadata DOM DocumentMethod Detail |
public void buildChildren(MetadataTreeNode node)
node
- The Parent Nodeprotected boolean doShowNode(org.jdom.Element element)
element
- the JDOM element concerned
protected boolean doShowNode(ReloadSchemaElement schemaElement)
schemaElement
- the schema element of the JDOM element concerned
protected boolean doShowNode(java.lang.String elementName, org.jdom.Namespace ns)
elementName
- the name of the JDOM element concerned
ns the schema namespace of the element
protected boolean canAddNode(org.jdom.Element element)
element
- the JDOM element concerned
protected boolean canAddNode(ReloadSchemaElement schemaElement)
schemaElement
- the schema element of the JDOM element concerned
protected boolean canAddNode(java.lang.String elementName, org.jdom.Namespace ns)
elementName
- the name of the JDOM element concerned
ns the schema namespace of the element
public Metadata getMetadata()
public int getChildCount(java.lang.Object parent)
parent
- the parent node
public java.lang.Object getChild(java.lang.Object parent, int index)
parent
- The parent nodeindex
- The index of the child
public void setValueAt(java.lang.Object aValue, java.lang.Object node, int column)
aValue
- The value to setnode
- The node whose value will be setcolumn
- The column of the nodepublic java.lang.Object getValueAt(java.lang.Object node, int column)
node
- The Node to get the value forcolumn
- The column
public boolean isCellEditable(java.lang.Object node, int column)
node
- The node we are asking.column
- The column to query
public java.lang.Class getColumnClass(int column)
column
- The column to query
public int getColumnCount()
public java.lang.String getColumnName(int column)
column
- The column to ask.
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |