|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--util.swing.AbstractTableModel | +--util.swing.TableMap
In a chain of data manipulators some behaviour is common. TableMap provides most of this behavour and can be subclassed by filters that only need to override a handful of specific methods. TableMap implements TableModel by routing all requests to its model, and TableModelListener by routing all events to its listeners. Inserting a TableMap which has not been subclassed into a chain of table filters should have no effect. Habe diese Implementation mit geringen ?nderungen in dieses Package ?bernommen.
Field Summary | |
protected AbstractTableModel |
model
Das Tablemodel. |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
TableMap()
Konstruktor. |
Method Summary | |
Class |
getColumnClass(int aColumn)
Klassenzugeh?rigkeit der Spalten. |
int |
getColumnCount()
Die Anzahl der Spalten. |
String |
getColumnName(int aColumn)
Namen der Spalten. |
AbstractTableModel |
getModel()
Gibt das Model zur?ck. |
Object |
getRecord(int row)
Wrapper - getRecord |
int |
getRowCount()
Anzahl der Zeilen. |
Object |
getValueAt(int aRow,
int aColumn)
Wrapping - getValueAt |
boolean |
isCellEditable(int row,
int column)
Editierbar oder nicht. |
void |
setModel(AbstractTableModel model)
Setzt das Tablemodel. |
void |
setValueAt(Object aValue,
int aRow,
int aColumn)
Wrapping - setValueAt |
void |
tableChanged(TableModelEvent e)
Wrapping Tablemodellistener. |
Methods inherited from class util.swing.AbstractTableModel |
getEntryDescriptor,
orderByColumn,
reOrderBy |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
getListeners,
removeTableModelListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected AbstractTableModel model
Constructor Detail |
public TableMap()
Method Detail |
public AbstractTableModel getModel()
public void setModel(AbstractTableModel model)
model
- das Tablemodel.public Object getValueAt(int aRow, int aColumn)
aRow
- die Zeile.aColumn
- die Spaltepublic void setValueAt(Object aValue, int aRow, int aColumn)
aValue
- der Wert.aRow
- die Zeile.aColumn
- die Spalte.public int getRowCount()
public int getColumnCount()
public String getColumnName(int aColumn)
aColumn
- die jeweilige Spalte.public Class getColumnClass(int aColumn)
aColumn
- die Spalte.public boolean isCellEditable(int row, int column)
row
- die Zeile.column
- die Spalte.true
, falls editierbar.public Object getRecord(int row)
row
- die Zeilepublic void tableChanged(TableModelEvent e)
e
- das Event.
|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |