Class InvisibleTreeModel

  • All Implemented Interfaces:
    Serializable, TreeModel

    public class InvisibleTreeModel
    extends DefaultTreeModel
    Subclass of DefaultTreeModel that contains InvisibleNodes.
    Version:
    $Revision: $
    Author:
    Mark Hall (mhall{[at]}pentaho{[dot]}com)
    See Also:
    Serialized Form
    • Constructor Detail

      • InvisibleTreeModel

        public InvisibleTreeModel​(TreeNode root)
        Constructor
        Parameters:
        root - the root of the tree
      • InvisibleTreeModel

        public InvisibleTreeModel​(TreeNode root,
                                  boolean asksAllowsChildren)
        Constuctor
        Parameters:
        root - the root of the tree
        asksAllowsChildren - asksAllowsChildren - a boolean, false if any node can have children, true if each node is asked to see if it can have children
      • InvisibleTreeModel

        public InvisibleTreeModel​(TreeNode root,
                                  boolean asksAllowsChildren,
                                  boolean filterIsActive)
        Constructor
        Parameters:
        root - the root of the tree
        asksAllowsChildren - asksAllowsChildren - a boolean, false if any node can have children, true if each node is asked to see if it can have children
        filterIsActive - true if the visibility filter is active
    • Method Detail

      • activateFilter

        public void activateFilter​(boolean newValue)
        Activate/deactivate the visibility filter
        Parameters:
        newValue - true if the visibility filter should be active
      • isActivatedFilter

        public boolean isActivatedFilter()
        Return true if the visibility filter is active
        Returns:
        true if the visibility filter is active