Class EmptyTreeItemModel
- java.lang.Object
-
- com.github.bordertech.wcomponents.AbstractTreeItemModel
-
- com.github.bordertech.wcomponents.EmptyTreeItemModel
-
- All Implemented Interfaces:
TreeItemModel
,Serializable
public final class EmptyTreeItemModel extends AbstractTreeItemModel
An empty data model implementation, the default model used byWTree
.- Since:
- 1.1.0
- Author:
- Jonathan Austin
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.bordertech.wcomponents.TreeItemModel
TreeItemModel.ShuffleType
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyTreeItemModel
INSTANCE
The singleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChildCount(List<Integer> row)
Retrieves the number of children a row has.String
getItemLabel(List<Integer> row)
Retrieves the label at the given row.int
getRowCount()
Retrieves the number of rows for the root (ie top) level.-
Methods inherited from class com.github.bordertech.wcomponents.AbstractTreeItemModel
getItemId, getItemImage, getItemShuffleType, hasChildren, isDisabled, isExpandable
-
-
-
-
Field Detail
-
INSTANCE
public static final EmptyTreeItemModel INSTANCE
The singleton instance.
-
-
Method Detail
-
getRowCount
public int getRowCount()
Retrieves the number of rows for the root (ie top) level.- Returns:
- the number of rows in the model for the root (ie top) level.
-
getChildCount
public int getChildCount(List<Integer> row)
Retrieves the number of children a row has.- Parameters:
row
- the row index- Returns:
- the number of rows in the model for this level.
-
-