Class JobTreeTableModel

All Implemented Interfaces:
Serializable, TreeModel, TreeTableModel

public class JobTreeTableModel 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:
    • JOB_STATE

      public static final int JOB_STATE
      Column number for the job's execution state.
      See Also:
    • INITIAL_TASK_COUNT

      public static final int INITIAL_TASK_COUNT
      Column number for the job's initial task count (at submission time).
      See Also:
    • TASK_COUNT

      public static final int TASK_COUNT
      Column number for the dispatched job's task count.
      See Also:
    • PRIORITY

      public static final int PRIORITY
      Column number for the job's priority.
      See Also:
    • MAX_NODES

      public static final int MAX_NODES
      Column number for the maximum number of nodes a job can run on.
      See Also:
  • Constructor Details

    • JobTreeTableModel

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

      public JobTreeTableModel(TreeNode node, Locale locale)
      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: TreeTableModel
      Returns the number ofs available columns.
      Returns:
      the number of columns.
    • getValueAt

      public Object getValueAt(Object node, int column)
      Description copied from interface: TreeTableModel
      Returns the value to be displayed for node node, at column number column.
      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

      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.