public class ContactListTreeModel
extends javax.swing.tree.DefaultTreeModel
Constructor and Description |
---|
ContactListTreeModel(javax.swing.JTree tree)
Creates an instance of ContactListTreeModel.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all nodes except the root node and clears all dependencies.
|
ContactNode |
findFirstContactNode()
Returns the first found child ContactNode.
|
javax.swing.JTree |
getParentTree()
Returns the parent tree.
|
GroupNode |
getRoot()
Returns the root group node.
|
void |
nodeChanged(javax.swing.tree.TreeNode node)
Invoke this method after you've changed how node is to be
represented in the tree.
|
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
public ContactListTreeModel(javax.swing.JTree tree)
tree
- the parent treepublic GroupNode getRoot()
getRoot
in interface javax.swing.tree.TreeModel
getRoot
in class javax.swing.tree.DefaultTreeModel
public ContactNode findFirstContactNode()
public void clear()
public javax.swing.JTree getParentTree()
public void nodeChanged(javax.swing.tree.TreeNode node)
nodeChanged
in class javax.swing.tree.DefaultTreeModel
node
- the node that has changed
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.