Interface TableModel

All Known Subinterfaces:
MutableTableModel
All Known Implementing Classes:
AbstractTableModel, ContextAreaTableModel, DefaultTableModel, SectionTableModel, TaskTableModel

public interface TableModel
A TableModel is a view model to be used with view components which represent a list of items on table form.
  • Method Details

    • getListComponentModel

      ListComponentModel getListComponentModel()
      Returns this table model's list model.
      Returns:
      the list model of this table model
      See Also:
    • getColumnComponentModel

      ColumnModel getColumnComponentModel()
      Returns this table model's column model.
      Returns:
      the column model of this table model
      See Also:
    • getValueAt

      Object getValueAt(int colIndex, int rowIndex)
      Returns the value of the cell at position (colIndex, rowIndex).
      Parameters:
      colIndex - zero based column position index
      rowIndex - zero based row position index
      Returns:
      the cell's value
    • isCellSelected

      boolean isCellSelected(int colIndex, int rowIndex)
      Returns whether the cell at position (colIndex, rowIndex) is selected or not.
      Parameters:
      colIndex - zero based column position index
      rowIndex - zero based row position index
      Returns:
      true if a cell exists at the specified position and is selected, false otherwise
    • isCellEditable

      boolean isCellEditable(int colIndex, int rowIndex)
      Returns whether the cell at position (colIndex, rowIndex) can be edited or not.
      Parameters:
      colIndex - zero based column position index
      rowIndex - zero based row position index
      Returns:
      true if a cell exists at the specified position and is editable, false otherwise
    • isCellSelectable

      boolean isCellSelectable(int colIndex, int rowIndex)
      Returns whether the cell at position (colIndex, rowIndex) can be selected or not.
      Parameters:
      colIndex - zero based column position index
      rowIndex - zero based row position index
      Returns:
      true if a cell exists at the specified position and is selectable, false otherwise
    • getCellEditor

      UIEditor getCellEditor(int columnIndex, int rowIndex)
      Returns the editor associated with the cell at position (colIndex, rowIndex).
      Parameters:
      columnIndex - zero based column position index
      rowIndex - zero based row position index
      Returns:
      the cell's editor
      See Also:
    • getCellRenderer

      CellRenderer getCellRenderer(int columnIndex)
    • getNewInlineItemRenderer

      CellRenderer getNewInlineItemRenderer(int columnIndex)
      Gets the new inline item renderer.
      Parameters:
      columnIndex - the column index
      Returns:
      the new inline item render
    • addTableModelListener

      void addTableModelListener(TableModelListener listener)
      Registers listener with this table model if it is not already registered.
      Parameters:
      listener - the TableModelListener to register
    • removeTableModelListener

      void removeTableModelListener(TableModelListener listener)
      Unregisters listener with this table model if it is registered.
      Parameters:
      listener - the TableModelListener to unregister
    • fireEvent

      void fireEvent(String eventName, Object value)
      This method provides the means necessary to fire generic events which are received by any registered TableModelListener.
      Parameters:
      eventName - name of event
      value - attached value