Class 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 Detail

      • RowIdWrapper

        public RowIdWrapper​(List<Integer> rowIndex,
                            Object rowKey,
                            WTable.RowIdWrapper parent)
        Parameters:
        rowIndex - the row index
        rowKey - the row key
        parent - the parent of the row, or null if no parent
    • Method Detail

      • getRowIndex

        public List<Integer> getRowIndex()
        Returns:
        the row index
      • 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.