org.embl.ebi.escience.scufl.view
Class TreeTableModelView

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by org.embl.ebi.escience.scufl.view.TreeModelView
          extended by org.embl.ebi.escience.scufl.view.TreeTableModelView
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel, ScuflModelEventListener, TreeTableModel

public class TreeTableModelView
extends TreeModelView
implements TreeTableModel

An extension of the TreeModelView to implement the TreeTable interfaces.

Author:
Tom Oinn
See Also:
Serialized Form

Constructor Summary
TreeTableModelView()
           
 
Method Summary
 java.lang.Class getColumnClass(int column)
          Returns the type for column number column.
 int getColumnCount()
          Returns the number ofs availible column.
 java.lang.String getColumnName(int column)
          Returns the name for column number column.
 java.lang.Object getValueAt(java.lang.Object nodeObject, int column)
          Returns the value to be displayed for node node, at column number column.
 boolean isCellEditable(java.lang.Object nodeObject, int column)
          Indicates whether the the value for node node, at column number column is editable.
 void receiveModelEvent(ScuflModelEvent event)
          Handle a model change event
 void setValueAt(java.lang.Object value, java.lang.Object nodeObject, int column)
          Sets the value for node node, at column number column.
 
Methods inherited from class org.embl.ebi.escience.scufl.view.TreeModelView
attachToModel, detachFromModel, getModel
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Constructor Detail

TreeTableModelView

public TreeTableModelView()
Method Detail

getColumnCount

public int getColumnCount()
Description copied from interface: TreeTableModel
Returns the number ofs availible column.

Specified by:
getColumnCount in interface TreeTableModel

getColumnName

public java.lang.String getColumnName(int column)
Description copied from interface: TreeTableModel
Returns the name for column number column.

Specified by:
getColumnName in interface TreeTableModel

getColumnClass

public java.lang.Class getColumnClass(int column)
Description copied from interface: TreeTableModel
Returns the type for column number column.

Specified by:
getColumnClass in interface TreeTableModel

getValueAt

public java.lang.Object getValueAt(java.lang.Object nodeObject,
                                   int column)
Description copied from interface: TreeTableModel
Returns the value to be displayed for node node, at column number column.

Specified by:
getValueAt in interface TreeTableModel

isCellEditable

public boolean isCellEditable(java.lang.Object nodeObject,
                              int column)
Description copied from interface: TreeTableModel
Indicates whether the the value for node node, at column number column is editable.

Specified by:
isCellEditable in interface TreeTableModel

setValueAt

public void setValueAt(java.lang.Object value,
                       java.lang.Object nodeObject,
                       int column)
Description copied from interface: TreeTableModel
Sets the value for node node, at column number column.

Specified by:
setValueAt in interface TreeTableModel

receiveModelEvent

public void receiveModelEvent(ScuflModelEvent event)
Description copied from class: TreeModelView
Handle a model change event

Specified by:
receiveModelEvent in interface ScuflModelEventListener
Overrides:
receiveModelEvent in class TreeModelView