Package org.jppf.ui.monitoring.job
Class JobTreeTableModel
java.lang.Object
org.jppf.ui.treetable.AbstractTreeTableModel
org.jppf.ui.treetable.AbstractJPPFTreeTableModel
org.jppf.ui.monitoring.job.JobTreeTableModel
- All Implemented Interfaces:
Serializable,TreeModel,TreeTableModel
Tree table model for the tree table.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intColumn number for the job's initial task count (at submission time).static final intColumn number for the job's execution state.static final intColumn number for the maximum number of nodes a job can run on.static final intColumn number for the node's url.static final intColumn number for the job's priority.static final intColumn number for the dispatched job's task count.Fields inherited from class org.jppf.ui.treetable.AbstractJPPFTreeTableModel
i18nBase, locale, nfDec, nfInt, nfMBFields inherited from class org.jppf.ui.treetable.AbstractTreeTableModel
listenerList, root -
Constructor Summary
ConstructorsConstructorDescriptionJobTreeTableModel(TreeNode node) Initialize this model with the specified tree root.JobTreeTableModel(TreeNode node, Locale locale) Initialize this model with the specified tree root. -
Method Summary
Modifier and TypeMethodDescriptiongetBaseColumnName(int column) Get the non-localized name of the specified column.intReturns the number ofs available columns.getValueAt(Object node, int column) Returns the value to be displayed for nodenode, at column numbercolumn.Methods inherited from class org.jppf.ui.treetable.AbstractJPPFTreeTableModel
changeNode, createDecimalNumberFormat, createMBFormat, createNumberFormat, getChild, getChildCount, getColumnClass, getColumnName, getColumnTooltip, getI18nBase, insertNodeInto, isCellEditable, localize, removeNodeFromParent, setValueAtMethods inherited from class org.jppf.ui.treetable.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
-
Field Details
-
NODE_URL
public static final int NODE_URLColumn number for the node's url.- See Also:
-
JOB_STATE
public static final int JOB_STATEColumn number for the job's execution state.- See Also:
-
INITIAL_TASK_COUNT
public static final int INITIAL_TASK_COUNTColumn number for the job's initial task count (at submission time).- See Also:
-
TASK_COUNT
public static final int TASK_COUNTColumn number for the dispatched job's task count.- See Also:
-
PRIORITY
public static final int PRIORITYColumn number for the job's priority.- See Also:
-
MAX_NODES
public static final int MAX_NODESColumn number for the maximum number of nodes a job can run on.- See Also:
-
-
Constructor Details
-
JobTreeTableModel
Initialize this model with the specified tree root.- Parameters:
node- - the root of the tree.
-
JobTreeTableModel
Initialize this model with the specified tree root.- Parameters:
node- - the root of the tree.locale- the locale used to translate column headers and cell values.
-
-
Method Details
-
getColumnCount
public int getColumnCount()Description copied from interface:TreeTableModelReturns the number ofs available columns.- Returns:
- the number of columns.
-
getValueAt
Description copied from interface:TreeTableModelReturns the value to be displayed for nodenode, at column numbercolumn.- Parameters:
node- the node for which to get the value.column- the column where the value is.- Returns:
- the value for the specified node and column.
-
getBaseColumnName
Description copied from class:AbstractJPPFTreeTableModelGet the non-localized name of the specified column.- Specified by:
getBaseColumnNamein classAbstractJPPFTreeTableModel- Parameters:
column- the index of the column for which to get a name.- Returns:
- the column name as a string.
-