R - type of a row.public abstract class AbstractApplicationTableModel<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 |
AbstractApplicationTableModel(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) |
protected void |
collectShell(R row,
Set<R> collectedRows) |
abstract R |
createNewRow() |
void |
fireTableCellUpdated(int rowIndex,
ColumnIdentifier<R>... identifiers) |
void |
fireTableRowsInserted(R newValue) |
void |
fireTableRowUpdatedShell(Set<R> shell) |
org.apache.commons.lang3.tuple.Pair<Integer,Integer> |
getCell(R row,
String propertyName) |
int |
getColumnCount() |
int |
getColumnIndex(String propertyName) |
String |
getColumnName(int columnIndex) |
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() |
boolean |
isFirstRow(R row) |
boolean |
isLastRow(R row) |
void |
moveDown(R row) |
void |
moveUp(R row) |
protected void |
onBeforeRowsChanged(List<R> oldRows) |
protected void |
onRowAdded(int rowIndex,
R row) |
protected void |
onRowRemoved(int rowIndex,
R row) |
protected void |
onRowsChanged(List<R> newRows) |
protected void |
onRowUpdated(int rowIndex,
R row) |
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, 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 AbstractApplicationTableModel(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 void fireTableRowsInserted(R newValue)
public final int updateRow(R row)
public final R removeRow(int rowIndex)
protected void onRowAdded(int rowIndex,
R row)
protected void onRowUpdated(int rowIndex,
R row)
protected void onRowRemoved(int rowIndex,
R row)
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)
public final void fireTableCellUpdated(int rowIndex,
ColumnIdentifier<R>... identifiers)
public String getColumnName(int columnIndex)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelprotected ColumnIdentifier<R> getIdentifier(int columnIndex)
public int getColumnIndex(String propertyName)
public org.apache.commons.lang3.tuple.Pair<Integer,Integer> getCell(R row, String propertyName)
public void moveUp(R row)
public void moveDown(R row)
public boolean isFirstRow(R row)
public boolean isLastRow(R row)
Copyright © 2008–2017 Ultreia.io. All rights reserved.