T - the type handled by the modelpublic abstract class AbstractFormTableModel<T> extends AbstractTableModel
FormTableMap.listenerList| Constructor and Description |
|---|
AbstractFormTableModel() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getDisplayedColumnName(int column)
Gets the displayed column name.
|
abstract FormTableEntry<T> |
getEntryAt(int rowIndex)
Gets the form table entry at given row.
|
FormTableMap<T> |
getMap()
Sets the chained mapper.
|
int |
getMappedIndex(int mappedRow)
Gets the mapped row index according to a given model row.
Inversion of getModelIndex(). |
int[] |
getMappedIndex(int[] mappedRows)
Gets the mapped row indexes according to given model rows.
Inversion of getModelIndex(). |
int |
getModelIndex(int row)
Gets the row in the original model according to the
mapping.
The default implementation returns the same row. |
int[] |
getModelIndex(int[] rows)
Gets the rows in the original model according to the
mapping.
The default implementation returns the same rows. |
FormTable<T> |
getTable()
Gets the table.
|
abstract FormTableEntry<T> |
getTemplate()
Gets the table entry template from the model.
|
boolean |
isDataChanged()
Returns whether data has changed.
|
void |
setDataChanged(boolean dataChanged)
Sets a flag that model data has changed.
|
boolean |
setEntryAt(FormTableEntry<T> entry,
int rowIndex)
Sets the form table entry at given row.
The default implementation just triggers a value changed event for the table. |
void |
setMap(FormTableMap<T> map)
Sets the chained mapper.
|
void |
setTable(FormTable<T> table)
Sets the table.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnCount, getRowCount, getValueAtpublic void setTable(FormTable<T> table)
table - the form table or null if this model is not the direct data model for the table
(i.e. somewhere in a chain)public FormTable<T> getTable()
public void setMap(FormTableMap<T> map)
map - the chained form table map or null if this model is not chaining another mappublic FormTableMap<T> getMap()
public abstract FormTableEntry<T> getEntryAt(int rowIndex)
rowIndex - the row of the table entrypublic abstract FormTableEntry<T> getTemplate()
public boolean setEntryAt(FormTableEntry<T> entry, int rowIndex)
entry - the formtable entryrowIndex - the row of the table entrypublic int getModelIndex(int row)
row - the row of this modelpublic int[] getModelIndex(int[] rows)
rows - the array of rows of this modelpublic int getMappedIndex(int mappedRow)
mappedRow - the original rowpublic int[] getMappedIndex(int[] mappedRows)
mappedRows - the original rowspublic boolean isDataChanged()
public void setDataChanged(boolean dataChanged)
dataChanged - true if model data has changedpublic abstract String getDisplayedColumnName(int column)
column - column indexTentackle - a domain driven enterprise framework