R - type of a row.public abstract class AbstractTuttiTableModel<R extends Serializable> extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
protected List<ColumnIdentifier<R>> |
columnIdentifiers
Column identifiers.
|
protected TableColumn[] |
columns
Column definition.
|
protected boolean |
createEmptyRowIsEmpty
Creates a first empty row when setting a null or empty list of rows ?
|
protected boolean |
createNewRow
Creates a new row when moving to next editable cell / row ?
|
protected Set<ColumnIdentifier<?>> |
noneEditableCols
Set of non editable columns.
|
protected List<R> |
rows
Data in the model.
|
listenerList| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTuttiTableModel(TableColumnModel columnModel,
boolean createNewRow,
boolean createEmptyRowIsEmpty) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewRow() |
void |
addNewRow(int rowIndex,
R newValue) |
void |
addNewRow(R newValue) |
abstract R |
createNewRow() |
protected void |
fireTableCellUpdated(int rowIndex,
ColumnIdentifier... identifiers) |
protected TableColumn |
getColumn(int columnIndex) |
int |
getColumnCount() |
protected int |
getColumnIndex(ColumnIdentifier<?> property) |
R |
getEntry(int rowIndex) |
ColumnIdentifier<R> |
getPropertyName(int columnIndex) |
int |
getRowCount() |
int |
getRowIndex(R row) |
List<R> |
getRows() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
protected Object |
getValueAt(int rowIndex,
int columnIndex,
ColumnIdentifier<R> propertyName,
R entry) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
protected boolean |
isCellEditable(int rowIndex,
int columnIndex,
ColumnIdentifier<R> propertyName) |
boolean |
isCreateEmptyRowIsEmpty() |
boolean |
isCreateNewRow() |
protected void |
onRowAdded(int rowIndex,
R newValue) |
protected void |
onRowsChanged(List<R> data) |
void |
setNoneEditableCols(ColumnIdentifier<?>... noneEditableCols) |
void |
setRows(List<R> data) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
protected void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex,
ColumnIdentifier<R> propertyName,
R entry) |
int |
updateRow(R row) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListenerprotected final TableColumn[] columns
protected final List<ColumnIdentifier<R extends Serializable>> columnIdentifiers
protected List<R extends Serializable> rows
protected Set<ColumnIdentifier<?>> noneEditableCols
protected final boolean createNewRow
protected final boolean createEmptyRowIsEmpty
protected AbstractTuttiTableModel(TableColumnModel columnModel, boolean createNewRow, boolean createEmptyRowIsEmpty)
public abstract R createNewRow()
public boolean isCreateNewRow()
public boolean isCreateEmptyRowIsEmpty()
public final void addNewRow()
public final void addNewRow(R newValue)
public final void addNewRow(int rowIndex,
R newValue)
public final int updateRow(R row)
protected void onRowAdded(int rowIndex,
R newValue)
public final ColumnIdentifier<R> getPropertyName(int columnIndex)
public final int getRowIndex(R row)
public final R getEntry(int rowIndex)
public final void setNoneEditableCols(ColumnIdentifier<?>... noneEditableCols)
public final int getRowCount()
public final int getColumnCount()
public final Object getValueAt(int rowIndex, int columnIndex)
public final void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic final boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelprotected Object getValueAt(int rowIndex, int columnIndex, ColumnIdentifier<R> propertyName, R entry)
protected void setValueAt(Object aValue, int rowIndex, int columnIndex, ColumnIdentifier<R> propertyName, R entry)
protected boolean isCellEditable(int rowIndex,
int columnIndex,
ColumnIdentifier<R> propertyName)
protected final void fireTableCellUpdated(int rowIndex,
ColumnIdentifier... identifiers)
protected final TableColumn getColumn(int columnIndex)
protected final int getColumnIndex(ColumnIdentifier<?> property)
Copyright © 2012-2013 Ifremer. All Rights Reserved.