uk.ac.soton.itinnovation.grid.client.registry.ui.xml
Class DOMTreeTableModel

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.registry.ui.enhancedtree.AbstractEnhancedTreeTableModel<DOMElementTreeNode>
      extended by uk.ac.soton.itinnovation.grid.client.registry.ui.xml.DOMTreeTableModel
All Implemented Interfaces:
TreeModel, EnhancedTreeTableModel

public class DOMTreeTableModel
extends AbstractEnhancedTreeTableModel<DOMElementTreeNode>
implements EnhancedTreeTableModel


Field Summary
protected static String[] columnNames
           
protected static Class[] columnTypes
           
 
Fields inherited from class uk.ac.soton.itinnovation.grid.client.registry.ui.enhancedtree.AbstractEnhancedTreeTableModel
listener, root
 
Constructor Summary
DOMTreeTableModel(String[] documents)
           
 
Method Summary
 Object getChild(Object parent, int index)
           
 int getChildCount(Object parent)
           
protected  DOMElementTreeNode[] getChildren(Object node)
           
 Class getColumnClass(int column)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getIndexOfChild(Object parent, Object child)
           
 Object getValueAt(Object node, int column)
          Get the value of the node in the defined column.
 void setValueAt(Object aValue, Object node, int column)
           
 
Methods inherited from class uk.ac.soton.itinnovation.grid.client.registry.ui.enhancedtree.AbstractEnhancedTreeTableModel
addTreeModelListener, getRoot, isCellEditable, isLeaf, removeTreeModelListener, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.client.registry.ui.enhancedtree.EnhancedTreeTableModel
isCellEditable
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Field Detail

columnNames

protected static String[] columnNames

columnTypes

protected static Class[] columnTypes
Constructor Detail

DOMTreeTableModel

public DOMTreeTableModel(String[] documents)
Method Detail

getColumnClass

public Class getColumnClass(int column)
Specified by:
getColumnClass in interface EnhancedTreeTableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface EnhancedTreeTableModel

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface EnhancedTreeTableModel

getValueAt

public Object getValueAt(Object node,
                         int column)
Description copied from interface: EnhancedTreeTableModel
Get the value of the node in the defined column.

Specified by:
getValueAt in interface EnhancedTreeTableModel
Returns:
the user object stored in the node

getChildCount

public int getChildCount(Object parent)
Specified by:
getChildCount in interface TreeModel

getChild

public Object getChild(Object parent,
                       int index)
Specified by:
getChild in interface TreeModel

setValueAt

public void setValueAt(Object aValue,
                       Object node,
                       int column)
Specified by:
setValueAt in interface EnhancedTreeTableModel

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
Specified by:
getIndexOfChild in interface TreeModel

getChildren

protected final DOMElementTreeNode[] getChildren(Object node)


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.