Class SelectionSetTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public abstract class SelectionSetTableModel
    extends javax.swing.table.AbstractTableModel
    this class enables the table-model to keep track of all selected rows and provides a method for subclasses to set a value to all selected rows.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TableModelSelectionAdapter getTableModelSelectionAdapter()  
      protected boolean isMultipleRowSetEnabled()  
      void setTableModelSelectionAdapter​(TableModelSelectionAdapter tableModelSelectionAdapter)
      setter used for DI
      protected void setValueSelectedRows​(java.lang.Object value, int col)
      sets the given value in a given column to all selected Rows.
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.table.TableModel

        getColumnCount, getRowCount, getValueAt
    • Constructor Detail

      • SelectionSetTableModel

        public SelectionSetTableModel()
    • Method Detail

      • getTableModelSelectionAdapter

        public final TableModelSelectionAdapter getTableModelSelectionAdapter()
        Returns:
        the tableModelSelectionAdapter
      • setValueSelectedRows

        protected final void setValueSelectedRows​(java.lang.Object value,
                                                  int col)
        sets the given value in a given column to all selected Rows.
        Parameters:
        value - the value to set
        col - the column to set the value to
      • isMultipleRowSetEnabled

        protected final boolean isMultipleRowSetEnabled()
        Returns:
        true if multiple set makes sense, false if not