|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WAbstractItemModel
eu.webtoolkit.jwt.WAbstractTableModel
public abstract class WAbstractTableModel
An abstract table model for use with Wt's view classes.
An abstract table model specializes WAbstractItemModel for
two-dimensional tables (but no hierarchical models).
It cannot be used directly but must be subclassed. Subclassed models must at
least reimplement
WAbstractItemModel#getColumnCount(),
WAbstractItemModel#getRowCount() and
WAbstractItemModel#getData().
| Constructor Summary | |
|---|---|
WAbstractTableModel()
Creates a new abstract list model. |
|
WAbstractTableModel(WObject parent)
Creates a new abstract list model. |
|
| Method Summary | |
|---|---|
WModelIndex |
getIndex(int row,
int column,
WModelIndex parent)
Returns the child index for the given row and column. |
WModelIndex |
getParent(WModelIndex index)
Returns the parent for a model index. |
| Methods inherited from class eu.webtoolkit.jwt.WObject |
|---|
addChild, getId, getObjectName, remove, setObjectName, tr |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WAbstractTableModel(WObject parent)
public WAbstractTableModel()
Calls this((WObject)null)
| Method Detail |
|---|
public WModelIndex getParent(WModelIndex index)
WAbstractItemModel
An implementation should use
createIndex() to create a model index that corresponds to the parent of
a given index.
Note that the index itself may be stale (referencing a row/column within
the parent that is outside the model geometry), but its parent
(identified by the WModelIndex#getInternalPointer()) is referencing an existing parent. A
stale index can only be used while the model geometry is being updated,
i.e. during the emission of the corresponding
[rows/columns](Being)[Removed/Inserted]() signals.
getParent in class WAbstractItemModelWAbstractItemModel.getIndex(int row, int column, WModelIndex parent)
public WModelIndex getIndex(int row,
int column,
WModelIndex parent)
WAbstractItemModel
When implementing this method, you can use
createIndex() to create an index that corresponds to the item at
row and column within parent.
If the location is invalid (out of bounds at the parent), then an invalid index must be returned.
getIndex in class WAbstractItemModelWAbstractItemModel.getParent(WModelIndex index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||