Interface TreeItemModel

    • Method Detail

      • isDisabled

        boolean isDisabled​(List<Integer> row)
        Indicates whether the given row is disabled.
        Parameters:
        row - the row index
        Returns:
        true if the row is disabled, false otherwise.
      • getItemLabel

        String getItemLabel​(List<Integer> row)
        Retrieves the label at the given row.
        Parameters:
        row - - the row index.
        Returns:
        the value at the given row.
      • getItemId

        String getItemId​(List<Integer> row)
        Retrieves the rows unique item id at the given row.
        Parameters:
        row - - the row index.
        Returns:
        the value at the given row.
      • getItemImage

        TreeItemImage getItemImage​(List<Integer> row)
        Retrieves the value at the given row.
        Parameters:
        row - - the row index.
        Returns:
        the value at the given row.
      • isExpandable

        boolean isExpandable​(List<Integer> row)
        Indicates whether the given row is expandable.
        Parameters:
        row - the row index
        Returns:
        true if the row is expandable, false otherwise.
      • getRowCount

        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.
      • hasChildren

        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).
        Parameters:
        row - the row index
        Returns:
        true if the row has children
      • getChildCount

        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.