Class AbstractTreeItemModel

    • Constructor Detail

      • AbstractTreeItemModel

        public AbstractTreeItemModel()
    • Method Detail

      • isDisabled

        public boolean isDisabled​(List<Integer> row)
        Indicates whether the given row is disabled.
        Specified by:
        isDisabled in interface TreeItemModel
        Parameters:
        row - the row index
        Returns:
        true if the row is disabled, false otherwise.
      • isExpandable

        public boolean isExpandable​(List<Integer> row)
        Indicates whether the given row is expandable.
        Specified by:
        isExpandable in interface TreeItemModel
        Parameters:
        row - the row index
        Returns:
        true if the row is expandable, false otherwise.
      • getItemId

        public String getItemId​(List<Integer> row)
        Retrieves the rows unique item id at the given row.
        Specified by:
        getItemId in interface TreeItemModel
        Parameters:
        row - - the row index.
        Returns:
        the value at the given row.
      • hasChildren

        public boolean hasChildren​(List<Integer> row)
        Allows the model to report if the row has children without actually having to determine the number of children (as it might not be known).
        Specified by:
        hasChildren in interface TreeItemModel
        Parameters:
        row - the row index
        Returns:
        true if the row has children