Class TableSelectionSummaryTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
com.iamsoft.util.ui.swing.TableSelectionSummaryTableModel
All Implemented Interfaces:
Serializable, TableModel

public class TableSelectionSummaryTableModel extends AbstractTableModel
Summarizes selected rows in specified table. $Modtime: 6/23/07 10:06ap $
See Also:
  • Constructor Details

  • Method Details

    • getColumnCount

      public int getColumnCount()
      Two.
    • getColumnName

      public String getColumnName(int pIdx)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getRowCount

      public int getRowCount()
      Number of columns in underlying table model.
    • getValueAt

      public Object getValueAt(int pRow, int pCol)
      Returns:
      Column name if pCol is zero and set of values otherwise.
    • getRowClass

      public Class<?> getRowClass(int pRow)
    • isColumnEditable

      protected Boolean isColumnEditable(int pIdx)
      Override this method to forego checking every cell when testing for editability.
    • isCellEditable

      public boolean isCellEditable(int pRow, int pCol)
      True if column is editable or if all cells from underlying table are editable.
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
      See Also:
    • setValueAt

      public void setValueAt(Object pVal, int pRow, int pCol)
      Update all selected rows in underlying model.
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel