Class AbstractApplicationTableModel<R extends Serializable>

    • Field Detail

      • noneEditableCols

        protected Set<ColumnIdentifier<?>> noneEditableCols
        Set of non editable columns.
        Since:
        0.2
      • createNewRow

        protected final boolean createNewRow
        Creates a new row when moving to next editable cell / row ?
        Since:
        0.3
      • createEmptyRowIsEmpty

        protected final boolean createEmptyRowIsEmpty
        Creates a first empty row when setting a null or empty list of rows ?
        Since:
        0.3
    • Constructor Detail

      • AbstractApplicationTableModel

        protected AbstractApplicationTableModel​(org.jdesktop.swingx.table.TableColumnModelExt columnModel,
                                                boolean createNewRow,
                                                boolean createEmptyRowIsEmpty)
    • Method Detail

      • createNewRow

        public abstract R createNewRow()
      • getRows

        public final List<R> getRows()
      • setRows

        public final void setRows​(List<R> data)
      • isCreateNewRow

        public boolean isCreateNewRow()
      • isCreateEmptyRowIsEmpty

        public boolean isCreateEmptyRowIsEmpty()
      • addNewRow

        public final void addNewRow()
      • addNewRow

        public final void addNewRow​(R newValue)
      • addNewRow

        public final void addNewRow​(int rowIndex,
                                    R newValue)
      • fireTableRowsInserted

        public final void fireTableRowsInserted​(R newValue)
      • updateRow

        public final int updateRow​(R row)
      • removeRow

        public final R removeRow​(int rowIndex)
      • onRowsChanged

        protected void onRowsChanged​(List<R> newRows)
      • onBeforeRowsChanged

        protected void onBeforeRowsChanged​(List<R> oldRows)
      • onRowAdded

        protected void onRowAdded​(int rowIndex,
                                  R row)
      • onRowUpdated

        protected void onRowUpdated​(int rowIndex,
                                    R row)
      • onRowRemoved

        protected void onRowRemoved​(int rowIndex,
                                    R row)
      • getRowIndex

        public final int getRowIndex​(R row)
      • getEntry

        public final R getEntry​(int rowIndex)
      • setNoneEditableCols

        public final void setNoneEditableCols​(ColumnIdentifier<?>... noneEditableCols)
      • getRowCount

        public final int getRowCount()
      • getColumnCount

        public final int getColumnCount()
      • getValueAt

        public final Object getValueAt​(int rowIndex,
                                       int columnIndex)
      • setValueAt

        protected void setValueAt​(Object aValue,
                                  int rowIndex,
                                  int columnIndex,
                                  ColumnIdentifier<R> propertyName,
                                  R entry)
      • isCellEditable

        protected boolean isCellEditable​(int rowIndex,
                                         int columnIndex,
                                         ColumnIdentifier<R> propertyName)
      • fireTableCellUpdated

        public final void fireTableCellUpdated​(int rowIndex,
                                               ColumnIdentifier<R>... identifiers)
      • fireTableRowUpdatedShell

        public final void fireTableRowUpdatedShell​(Set<R> shell)
      • collectShell

        protected void collectShell​(R row,
                                    Set<R> collectedRows)
      • getColumnIndex

        public int getColumnIndex​(String propertyName)
      • getCell

        public org.apache.commons.lang3.tuple.Pair<Integer,​Integer> getCell​(R row,
                                                                                  String propertyName)
      • moveUp

        public void moveUp​(R row)
      • moveDown

        public void moveDown​(R row)
      • isFirstRow

        public boolean isFirstRow​(R row)
      • isLastRow

        public boolean isLastRow​(R row)