Package hec.client

Class IdentifierTableModel

All Implemented Interfaces:
Serializable, TableModel, RmaTableModelInterface

public class IdentifierTableModel extends AbstractRmaTableModel implements RmaTableModelInterface
Table model for List (vector) of hec.lang.Identifier objects. Typically used for presenting tables of manager identfiers
See Also:
  • Field Details

    • NAME_ONLY_MODE

      public static final int NAME_ONLY_MODE
      See Also:
    • NAME_DESC_MODE

      public static final int NAME_DESC_MODE
      See Also:
    • _idlist

      protected Vector _idlist
      vector of hec.lang.Identifier objects
    • _mode

      protected int _mode
  • Constructor Details

    • IdentifierTableModel

      public IdentifierTableModel(Vector idlist)
      basic table model that displays a non-editable list of names and descriptions
    • IdentifierTableModel

      public IdentifierTableModel(Vector idlist, int mode)
  • Method Details

    • init

      protected void init()
    • getIdentifierAt

      public Identifier getIdentifierAt(int row)
    • setIdentifierList

      public void setIdentifierList(Vector idlist)
    • getColumnClass

      public Class getColumnClass(int columnIndex)
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractRmaTableModel
    • getRowCount

      public int getRowCount()
      Description copied from class: AbstractRmaTableModel
      Returns the number of row in the table model. The default method always returns 0, so this method must be overridden to return a row count other than 0.
      Specified by:
      getRowCount in interface TableModel
      Overrides:
      getRowCount in class AbstractRmaTableModel
      Returns:
      the row count.
    • getValueAt

      public Object getValueAt(int rowIndex, int columnIndex)
      Description copied from class: AbstractRmaTableModel
      Returns the value at a given row/column location. The default method returns null. Needs to be overrridden
      Specified by:
      getValueAt in interface TableModel
      Overrides:
      getValueAt in class AbstractRmaTableModel
      Parameters:
      rowIndex - the row to look for the value in.
      columnIndex - the column to look for the value in.
      Returns: