public class InvisibleTreeModel extends DefaultTreeModel
DefaultTreeModel that contains InvisibleNodes.| Constructor and Description |
|---|
InvisibleTreeModel(TreeNode root)
Constructor
|
InvisibleTreeModel(TreeNode root,
boolean asksAllowsChildren)
Constuctor
|
InvisibleTreeModel(TreeNode root,
boolean asksAllowsChildren,
boolean filterIsActive)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateFilter(boolean newValue)
Activate/deactivate the visibility filter
|
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
boolean |
isActivatedFilter()
Return true if the visibility filter is active
|
addTreeModelListener, asksAllowsChildren, getIndexOfChild, getListeners, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChangedpublic InvisibleTreeModel(TreeNode root)
root - the root of the treepublic InvisibleTreeModel(TreeNode root, boolean asksAllowsChildren)
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 childrenpublic InvisibleTreeModel(TreeNode root, boolean asksAllowsChildren, boolean filterIsActive)
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 activepublic void activateFilter(boolean newValue)
newValue - true if the visibility filter should be activepublic boolean isActivatedFilter()
public Object getChild(Object parent, int index)
getChild in interface TreeModelgetChild in class DefaultTreeModelpublic int getChildCount(Object parent)
getChildCount in interface TreeModelgetChildCount in class DefaultTreeModelCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.