R - type of a row.public abstract class AbstractTuttiTableModel<R extends Serializable> extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
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 List<ColumnIdentifier<R>> |
identifiers
Identifiers of columns (in initial order).
|
protected Set<ColumnIdentifier<?>> |
noneEditableCols
Set of non editable columns.
|
protected List<R> |
rows
Data in the model.
|
listenerList| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTuttiTableModel(org.jdesktop.swingx.table.TableColumnModelExt 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<R>... identifiers) |
int |
getColumnCount() |
R |
getEntry(int rowIndex) |
protected ColumnIdentifier<R> |
getIdentifier(int columnIndex) |
int |
getRowCount() |
int |
getRowIndex(R row) |
List<R> |
getRows() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
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) |
R |
removeRow(int rowIndex) |
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 List<R extends Serializable> rows
protected Set<ColumnIdentifier<?>> noneEditableCols
protected final boolean createNewRow
protected final boolean createEmptyRowIsEmpty
protected final List<ColumnIdentifier<R extends Serializable>> identifiers
protected AbstractTuttiTableModel(org.jdesktop.swingx.table.TableColumnModelExt 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)
public final R removeRow(int rowIndex)
protected void onRowAdded(int rowIndex,
R newValue)
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 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<R>... identifiers)
protected ColumnIdentifier<R> getIdentifier(int columnIndex)
Copyright © 2012–2013 Ifremer. All rights reserved.