Class GlazedListTreeRowModel<T>

    • Constructor Detail

    • Method Detail

      • isCollapsed

        public boolean isCollapsed​(int index)
        Note: The check only works for visible elements, therefore a check for an element that is below an collapsed element does not work.
        Parameters:
        index - The index of the tree element to check.
        Returns:
        true if the children of the tree node at the given index are visible, false if not.
      • collapse

        public List<Integer> collapse​(int index)
        Collapse the tree node at the given visible index.
        Parameters:
        index - The index of the node in the collection that should be collapsed.
        Returns:
        Returns an empty list because the list transformation for expand/collapse is handled by GlazedLists TreeList.
      • collapseAll

        public List<Integer> collapseAll()
        Will check the whole TreeList for its nodes and collapses them if they are expanded. After executing this method, all nodes in the TreeList will be collapsed.
        Returns:
        Returns an empty list because the list transformation for expand/collapse is handled by GlazedLists TreeList.
      • expand

        public List<Integer> expand​(int index)
        Expand the tree node at the given visible index.
        Parameters:
        index - The index of the node in the collection that should be expanded.
        Returns:
        Returns an empty list because the list transformation for expand/collapse is handled by GlazedLists TreeList.
      • expandToLevel

        public List<Integer> expandToLevel​(int parentIndex,
                                           int level)
        Description copied from interface: ITreeRowModel
        Expands the tree node at the given index to a certain level.
        Parameters:
        parentIndex - The index of the node in the collection that should be expanded.
        level - The level to which the tree node should be expanded.
        Returns:
        The indexes of all children that are showed after the expand operation is performed.
      • internalExpandToLevel

        protected void internalExpandToLevel​(int parentIndex,
                                             int level)
        Performs the expand operations iteratively without notifying the listeners while processing.
        Parameters:
        parentIndex - The index of the node in the collection that should be expanded.
        level - The level to which the tree nodes should be expanded.
      • expandAll

        public List<Integer> expandAll()
        Expands all tree nodes.
        Returns:
        Returns an empty list because the list transformation for expand/collapse is handled by GlazedLists TreeList.
      • internalExpandAll

        protected void internalExpandAll()
        Performs the expand operations iteratively without notifying the listeners while processing.
      • expandToLevel

        public List<Integer> expandToLevel​(int level)
        Expands all tree nodes to a certain level.
        Parameters:
        level - The level to which the tree nodes should be expanded.
        Returns:
        Returns an empty list because the list transformation for expand/collapse is handled by GlazedLists TreeList.
      • internalExpandToLevel

        protected void internalExpandToLevel​(int level)
        Performs the expand operations iteratively without notifying the listeners while processing.
        Parameters:
        level - The level to which the tree nodes should be expanded.