|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
net.java.sip.communicator.impl.gui.main.contactlist.GroupNode
public class GroupNode
The GroupNode is a ContactListNode corresponding to a given UIGroup.
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
GroupNode(ContactListTreeModel treeModel,
UIGroup uiGroup)
Creates a GroupNode by specifying the parent treeModel and the corresponding uiGroup. |
|
| Method Summary | |
|---|---|
ContactNode |
addContact(UIContact uiContact)
Creates a ContactNode for the given uiContact and adds it to this group. |
GroupNode |
addContactGroup(UIGroup uiGroup)
Creates a GroupNode for the given uiGroup and adds it to this group. |
void |
clear()
Clears all dependencies for all children in the given groupNode (i.e. |
UIGroup |
getGroupDescriptor()
Returns the UIGroup corresponding to this GroupNode. |
int |
getSourceIndex()
Returns the index of this node in its parent group. |
boolean |
isCollapsed()
Returns true if the group is collapsed or false otherwise. |
void |
removeContact(UIContact uiContact)
Removes the node corresponding to the given uiContact from this group. |
void |
removeContactGroup(UIGroup uiGroup)
Removes the node corresponding to the given uiGroup from this group node. |
void |
sort(ContactListTreeModel treeModel)
Sorts the children of this node. |
ContactNode |
sortedAddContact(UIContact uiContact)
Creates a ContactNode for the given uiContact, adds it to this group and performs a sort at the end. |
GroupNode |
sortedAddContactGroup(UIGroup uiGroup)
Creates a GroupNode for the given uiGroup, adds it to this group node and performs a sort at the end. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GroupNode(ContactListTreeModel treeModel,
UIGroup uiGroup)
treeModel - the parent tree model containing this groupuiGroup - the corresponding UIGroup| Method Detail |
|---|
public ContactNode addContact(UIContact uiContact)
uiContact - the UIContact to add
public ContactNode sortedAddContact(UIContact uiContact)
uiContact - the UIContact to add
public void removeContact(UIContact uiContact)
uiContact - the UIContact to removepublic GroupNode addContactGroup(UIGroup uiGroup)
uiGroup - the UIGroup to add
public void removeContactGroup(UIGroup uiGroup)
uiGroup - the UIGroup to removepublic GroupNode sortedAddContactGroup(UIGroup uiGroup)
uiGroup - the UIGroup to add
public UIGroup getGroupDescriptor()
public int getSourceIndex()
getSourceIndex in interface ContactListNodepublic void sort(ContactListTreeModel treeModel)
treeModel - the ContactListTreeModel, which should be
refreshedpublic boolean isCollapsed()
public void clear()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||