Class WTable.RowIdWrapper
- java.lang.Object
-
- com.github.bordertech.wcomponents.WTable.RowIdWrapper
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- WTable
public static class WTable.RowIdWrapper extends Object implements Serializable
Used to wrap the row index and the row key (used to uniquely identify the row).Intended for internal use only.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RowIdWrapper(List<Integer> rowIndex, Object rowKey, WTable.RowIdWrapper parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(WTable.RowIdWrapper child)
List<WTable.RowIdWrapper>
getChildren()
WTable.RowIdWrapper
getParent()
int
getPosition()
List<Integer>
getRowIndex()
Object
getRowKey()
boolean
hasChildren()
void
setHasChildren(boolean hasChildren)
void
setPosition(int position)
-
-
-
Constructor Detail
-
RowIdWrapper
public RowIdWrapper(List<Integer> rowIndex, Object rowKey, WTable.RowIdWrapper parent)
- Parameters:
rowIndex
- the row indexrowKey
- the row keyparent
- the parent of the row, or null if no parent
-
-
Method Detail
-
getRowKey
public Object getRowKey()
- Returns:
- the row key
-
getChildren
public List<WTable.RowIdWrapper> getChildren()
- Returns:
- the children of the row, or null if no children
-
setHasChildren
public void setHasChildren(boolean hasChildren)
- Parameters:
hasChildren
- true if row has children
-
hasChildren
public boolean hasChildren()
- Returns:
- true if the row has children
-
addChild
public void addChild(WTable.RowIdWrapper child)
- Parameters:
child
- the child row to add
-
getParent
public WTable.RowIdWrapper getParent()
- Returns:
- the parent of the row, or null if no parent
-
getPosition
public int getPosition()
- Returns:
- the position of this row id in the list of row ids.
-
setPosition
public void setPosition(int position)
- Parameters:
position
- the position of this row id in the list of row ids.
-
-