Package org.jppf.ui.monitoring.node
Class NodeTreeTableModel
java.lang.Object
org.jppf.ui.treetable.AbstractTreeTableModel
org.jppf.ui.treetable.AbstractJPPFTreeTableModel
org.jppf.ui.monitoring.node.NodeTreeTableModel
- 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 node's last event.static final intColumn number for the node's number of provisioned slaves.static final intColumn number for the node's number of tasks executed.static final intColumn number for the node's last event.static final intColumn number for the node's thread pool size.static final intColumn number for the node's url.static final intColumn number for the node's number of provisioned slaves.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
ConstructorsConstructorDescriptionNodeTreeTableModel(TreeNode node) Initialize this model with the specified tree.NodeTreeTableModel(TreeNode node, Locale locale) Initialize this model with the specified tree. -
Method Summary
Modifier and TypeMethodDescriptiongetBaseColumnName(int column) Get the non-localized name of the specified column.intGet the number of columns in the table.getValueAt(Object node, int column) Returns which object is displayed in this column.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:
-
NODE_THREADS
public static final int NODE_THREADSColumn number for the node's thread pool size.- See Also:
-
NODE_STATUS
public static final int NODE_STATUSColumn number for the node's last event.- See Also:
-
EXECUTION_STATUS
public static final int EXECUTION_STATUSColumn number for the node's last event.- See Also:
-
NB_TASKS
public static final int NB_TASKSColumn number for the node's number of tasks executed.- See Also:
-
NB_SLAVES
public static final int NB_SLAVESColumn number for the node's number of provisioned slaves.- See Also:
-
PENDING_ACTION
public static final int PENDING_ACTIONColumn number for the node's number of provisioned slaves.- See Also:
-
-
Constructor Details
-
NodeTreeTableModel
Initialize this model with the specified tree.- Parameters:
node- the root of the tree.
-
NodeTreeTableModel
Initialize this model with the specified tree.- Parameters:
node- the root of the tree.locale- the locale used to translate column headers and cell values.
-
-
Method Details
-
getColumnCount
public int getColumnCount()Get the number of columns in the table.- Returns:
- the number of columns as an int.
- See Also:
-
getValueAt
Returns which object is displayed in this column.- 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:
-
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.
-