|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WAbstractProxyModel.BaseItem
protected static class WAbstractProxyModel.BaseItem
A base class for an item modeling a source index parent.
Many mplementations of a proxy model will need to maintain a data structure per source model indexes, where they relate source rows or columns to proxy rows or columns, per hierarchical parent.
It may be convenient to start from this item class as a base class so
that
WAbstractProxyModel#shiftModelIndexes() can be used to update this data
structure when the source model adds or removes rows.
You will typically use your derived class of this item as the internal pointer for proxy model indexes: a proxy model index will have an item as internal pointer whose sourceIndex_ corresponds to the source equivalent of the proxy model index parent.
WAbstractItemModel.createIndex(int row, int column, Object ptr)| Field Summary | |
|---|---|
WModelIndex |
sourceIndex_
The source model index. |
| Constructor Summary | |
|---|---|
WAbstractProxyModel.BaseItem(WModelIndex sourceIndex)
Create a WAbstractProxyModel.BaseItem. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public WModelIndex sourceIndex_
The source model index for this item.
| Constructor Detail |
|---|
public WAbstractProxyModel.BaseItem(WModelIndex sourceIndex)
WAbstractProxyModel.BaseItem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||