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 InvisibleNode
s.- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
ConstructorDescriptionInvisibleTreeModel
(TreeNode root) ConstructorInvisibleTreeModel
(TreeNode root, boolean asksAllowsChildren) ConstuctorInvisibleTreeModel
(TreeNode root, boolean asksAllowsChildren, boolean filterIsActive) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateFilter
(boolean newValue) Activate/deactivate the visibility filterint
getChildCount
(Object parent) boolean
Return 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:
getChild
in interfaceTreeModel
- Overrides:
getChild
in classDefaultTreeModel
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
- Overrides:
getChildCount
in classDefaultTreeModel
-