|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.db.StoreUpdateTableModel<T>
public class StoreUpdateTableModel<T extends DBEntry>
a special TableModel wrapper that supports store updates upon setValueAt(Object, int, int)
| Constructor Summary | |
|---|---|
StoreUpdateTableModel(ObjectTableModel<T> model,
DBClassStore<T> store)
|
|
| Method Summary | |
|---|---|
void |
addTableModelListener(TableModelListener l)
|
Class<?> |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
String |
getColumnName(int columnIndex)
|
int |
getRowCount()
|
int |
getRowFor(T entry)
locates the row where the given entry can be found in this model |
T |
getRowValue(int row)
retrieves the value that is represented by the given row in this model. |
Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
refreshContent()
refreshes the embedded content |
void |
removeTableModelListener(TableModelListener l)
|
void |
setRowValues(Iterable<? extends T> updatedList)
allows to change the underlying table data based on the given collection. |
void |
setValueAt(Object value,
int row,
int column)
|
ObjectTableModel<T> |
unwrap()
returns the embedded instance that this wrapper encloses |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StoreUpdateTableModel(ObjectTableModel<T> model,
DBClassStore<T> store)
| Method Detail |
|---|
public ObjectTableModel<T> unwrap()
Wrapped
unwrap in interface Wrapped<ObjectTableModel<T extends DBEntry>>
public void refreshContent()
throws IOException
Refreshable
refreshContent in interface RefreshableIOException - if the refresh failedpublic void addTableModelListener(TableModelListener l)
addTableModelListener in interface TableModelpublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int columnIndex)
getColumnName in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic int getRowFor(T entry)
ObjectTableModel
getRowFor in interface ObjectTableModel<T extends DBEntry>public T getRowValue(int row)
ObjectTableModel
getRowValue in interface ObjectTableModel<T extends DBEntry>
public Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface TableModel
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener in interface TableModel
public void setRowValues(Iterable<? extends T> updatedList)
throws UnsupportedOperationException
ObjectTableModel
setRowValues in interface ObjectTableModel<T extends DBEntry>UnsupportedOperationException - if this model doesn't allow such changes
public void setValueAt(Object value,
int row,
int column)
setValueAt in interface TableModel
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||