org.jppf.ui.monitoring.job
Class JobTreeTableModel

java.lang.Object
  extended by org.jppf.ui.treetable.AbstractTreeTableModel
      extended by org.jppf.ui.treetable.AbstractJPPFTreeTableModel
          extended by org.jppf.ui.monitoring.job.JobTreeTableModel
All Implemented Interfaces:
TreeModel, TreeTableModel

public class JobTreeTableModel
extends AbstractJPPFTreeTableModel
implements TreeTableModel

Tree table model for the tree table.


Field Summary
 
Fields inherited from class org.jppf.ui.treetable.AbstractJPPFTreeTableModel
BASE
 
Fields inherited from class org.jppf.ui.treetable.AbstractTreeTableModel
listenerList, root
 
Constructor Summary
JobTreeTableModel(TreeNode node)
          Initialize this model with the specified tree root.
 
Method Summary
 int getColumnCount()
          Get the number of columns in the table.
 String getColumnName(int column)
          What the TableHeader displays when the Table is in a JScrollPane.
 Object getValueAt(Object node, int column)
          Returns which object is displayed in this column.
 
Methods inherited from class org.jppf.ui.treetable.AbstractJPPFTreeTableModel
changeNode, getChild, getChildCount, getColumnClass, insertNodeInto, isCellEditable, localize, removeNodeFromParent, setValueAt
 
Methods inherited from class org.jppf.ui.treetable.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, 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 org.jppf.ui.treetable.TreeTableModel
getColumnClass, isCellEditable, setValueAt
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Constructor Detail

JobTreeTableModel

public JobTreeTableModel(TreeNode node)
Initialize this model with the specified tree root.

Parameters:
node - - the root of the tree.
Method Detail

getColumnCount

public int getColumnCount()
Get the number of columns in the table.

Specified by:
getColumnCount in interface TreeTableModel
Returns:
the number of columns as an int.
See Also:
TreeTableModel.getColumnCount()

getValueAt

public Object getValueAt(Object node,
                         int column)
Returns which object is displayed in this column.

Specified by:
getValueAt in interface TreeTableModel
Parameters:
node - - the node for which to get a value.
column - - the column from which to set a value.
Returns:
the value from the specified node and column.
See Also:
TreeTableModel.getValueAt(java.lang.Object, int)

getColumnName

public String getColumnName(int column)
What the TableHeader displays when the Table is in a JScrollPane.

Specified by:
getColumnName in interface TreeTableModel
Parameters:
column - the index of the column for which to get a title.
Returns:
the column title as a string.
See Also:
TreeTableModel.getColumnName(int)


Copyright © 2005-2010 JPPF Team.