|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
wt.clients.beans.table.WTAbstractTableModel
wt.clients.beans.table.WTTableModel.GroupTableModel
Provide a table model compatible with Swing that display the data based on the filtering, grouping and sorting parameters set in the WTTableModel.
Field Summary |
Fields inherited from class wt.clients.beans.table.WTAbstractTableModel |
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
WTTableModel.GroupTableModel()
Construct a new GroupTableModel |
Method Summary | |
int |
getRowCount()
Returns the number of records managed by the data source object. |
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns an attribute value for the cell at columnIndex
and rowIndex . |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the cell at rowIndex and columnIndex
is editable. |
void |
refreshModel()
Force the refresh of the data but because the table is entirely dynamic, the method just notify the listener of a change in the model. |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
Sets an attribute value for the record in the cell at columnIndex and rowIndex . |
Methods inherited from class wt.clients.beans.table.WTAbstractTableModel |
addColumn, addColumns, getColumn, getColumnClass, getColumnCount, getColumnName, getColumns, getHeaderKeys, getHeaders, getHeaderSizes, getTableColumnModel, removeColumn, setTableColumnModel |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WTTableModel.GroupTableModel()
Method Detail |
public void refreshModel()
public int getRowCount()
WTAbstractTableModel.getColumnCount()
public boolean isCellEditable(int rowIndex, int columnIndex)
rowIndex
and columnIndex
is editable. Otherwise, setValueAt() on the cell will not change
the value of that cell.
rowIndex
- the row whose value is to be looked upcolumnIndex
- the column whose value is to be looked up
#setValueAt()
public Object getValueAt(int rowIndex, int columnIndex)
columnIndex
and rowIndex
.
rowIndex
- the row whose value is to be looked upcolumnIndex
- the column whose value is to be looked up
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
columnIndex
and rowIndex
. aValue
is
the new value.
aValue
- the new valuerowIndex
- the row whose value is to be changedcolumnIndex
- the column whose value is to be changed#getValueAt()
,
#isCellEditable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |