Package docking.widgets.tree.internal
Class GTreeModel
java.lang.Object
docking.widgets.tree.internal.GTreeModel
- All Implemented Interfaces:
TreeModel
-
Constructor Summary
ConstructorDescriptionGTreeModel
(GTreeNode root) Constructs a GTreeModel with the given root node. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dispose()
void
fireNodeAdded
(GTreeNode parentNode, GTreeNode newNode) void
fireNodeDataChanged
(GTreeNode changedNode) void
fireNodeRemoved
(GTreeNode parentNode, GTreeNode removedNode, int index) void
fireNodeStructureChanged
(GTreeNode changedNode) int
getChildCount
(Object parent) int
getIndexOfChild
(Object parent, Object child) getRoot()
boolean
void
privateSwingSetRootNode
(GTreeNode newRoot) Sets the models root node.void
void
setEventsEnabled
(boolean b) void
valueForPathChanged
(TreePath path, Object newValue)
-
Constructor Details
-
GTreeModel
Constructs a GTreeModel with the given root node.- Parameters:
root
- The root of the tree.
-
-
Method Details
-
privateSwingSetRootNode
Sets the models root node. NOTE: this is intended to only be called from theGTree
- Parameters:
newRoot
- the new tree model root. It will either be the actual root or a root of a filtered sub-tree
-
getRoot
-
getModelRoot
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
getChild
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
fireNodeStructureChanged
-
fireNodeDataChanged
-
fireNodeAdded
-
fireNodeRemoved
-
dispose
public void dispose() -
setEventsEnabled
public void setEventsEnabled(boolean b)
-