Class NodeTreeTableModel

All Implemented Interfaces:
Serializable, TreeModel, TreeTableModel

public class NodeTreeTableModel extends AbstractJPPFTreeTableModel
Tree table model for the tree table.
See Also:
  • Field Details

    • NODE_URL

      public static final int NODE_URL
      Column number for the node's url.
      See Also:
    • NODE_THREADS

      public static final int NODE_THREADS
      Column number for the node's thread pool size.
      See Also:
    • NODE_STATUS

      public static final int NODE_STATUS
      Column number for the node's last event.
      See Also:
    • EXECUTION_STATUS

      public static final int EXECUTION_STATUS
      Column number for the node's last event.
      See Also:
    • NB_TASKS

      public static final int NB_TASKS
      Column number for the node's number of tasks executed.
      See Also:
    • NB_SLAVES

      public static final int NB_SLAVES
      Column number for the node's number of provisioned slaves.
      See Also:
    • PENDING_ACTION

      public static final int PENDING_ACTION
      Column number for the node's number of provisioned slaves.
      See Also:
  • Constructor Details

    • NodeTreeTableModel

      public NodeTreeTableModel(TreeNode node)
      Initialize this model with the specified tree.
      Parameters:
      node - the root of the tree.
    • NodeTreeTableModel

      public NodeTreeTableModel(TreeNode node, Locale locale)
      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

      public Object getValueAt(Object node, int column)
      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

      public String getBaseColumnName(int column)
      Description copied from class: AbstractJPPFTreeTableModel
      Get the non-localized name of the specified column.
      Specified by:
      getBaseColumnName in class AbstractJPPFTreeTableModel
      Parameters:
      column - the index of the column for which to get a name.
      Returns:
      the column name as a string.