Package weka.gui.knowledgeflow
Class InvisibleTreeModel
java.lang.Object
javax.swing.tree.DefaultTreeModel
weka.gui.knowledgeflow.InvisibleTreeModel
- All Implemented Interfaces:
Serializable,TreeModel
Subclass of
DefaultTreeModel that contains InvisibleNodes.- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvisibleTreeModel(TreeNode root) ConstructorInvisibleTreeModel(TreeNode root, boolean asksAllowsChildren) ConstuctorInvisibleTreeModel(TreeNode root, boolean asksAllowsChildren, boolean filterIsActive) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateFilter(boolean newValue) Activate/deactivate the visibility filterintgetChildCount(Object parent) booleanReturn true if the visibility filter is activeMethods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, getIndexOfChild, getListeners, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
-
Constructor Details
-
InvisibleTreeModel
Constructor- Parameters:
root- the root of the tree
-
InvisibleTreeModel
Constuctor- Parameters:
root- the root of the treeasksAllowsChildren- asksAllowsChildren - a boolean, false if any node can have children, true if each node is asked to see if it can have children
-
InvisibleTreeModel
Constructor- Parameters:
root- the root of the treeasksAllowsChildren- asksAllowsChildren - a boolean, false if any node can have children, true if each node is asked to see if it can have childrenfilterIsActive- true if the visibility filter is active
-
-
Method Details
-
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
-
getChild
- Specified by:
getChildin interfaceTreeModel- Overrides:
getChildin classDefaultTreeModel
-
getChildCount
- Specified by:
getChildCountin interfaceTreeModel- Overrides:
getChildCountin classDefaultTreeModel
-