Class ValidatedBeanListTableModel<T>

    • Constructor Detail

      • ValidatedBeanListTableModel

        public ValidatedBeanListTableModel​(java.util.List<? extends ColumnAdapter<? super T,​?>> columnAdapters)
      • ValidatedBeanListTableModel

        public ValidatedBeanListTableModel​(java.util.List<? extends ColumnAdapter<? super T,​?>> columnAdapters,
                                           java.lang.Iterable<? extends TableDataProvider<T>> dataProviders)
    • Method Detail

      • validateRow

        protected void validateRow​(int rowIndex)
      • validateCell

        protected void validateCell​(int rowIndex,
                                    int columnIndex)
      • validateAt

        public java.lang.String validateAt​(int rowIndex,
                                           int columnIndex)
        Specified by:
        validateAt in interface ValidatedTableModel
        Returns:
        error messages or null if current value valid.
      • validateAt

        public <V> java.lang.String validateAt​(int rowIndex,
                                               int columnIndex,
                                               V value)
        Specified by:
        validateAt in interface ValidatedTableModel
        Returns:
        error message or null if specified value is valid.
      • isNoErrors

        public boolean isNoErrors()
        Specified by:
        isNoErrors in interface ValidatedTableModel
        Returns:
        true if there are no validation errors.
      • fireTableCellUpdated

        public void fireTableCellUpdated​(int rowIndex,
                                         int columnIndex)
        Overrides:
        fireTableCellUpdated in class javax.swing.table.AbstractTableModel
      • fireTableRowsUpdated

        public void fireTableRowsUpdated​(int firstRow,
                                         int lastRow)
        Overrides:
        fireTableRowsUpdated in class javax.swing.table.AbstractTableModel
      • fireTableRowsDeleted

        public void fireTableRowsDeleted​(int firstRow,
                                         int lastRow)
        Overrides:
        fireTableRowsDeleted in class javax.swing.table.AbstractTableModel