public class ContactNode extends javax.swing.tree.DefaultMutableTreeNode implements ContactListNode
Constructor and Description |
---|
ContactNode(UIContactImpl contact)
Creates a ContactNode by specifying the corresponding
contact.
|
Modifier and Type | Method and Description |
---|---|
UIContactImpl |
getContactDescriptor()
Returns the corresponding UIContactImpl.
|
int |
getSourceIndex()
Returns the index of this contact node in its parent group.
|
boolean |
isActive()
Returns true if this contact node has unread received messages
waiting, otherwise returns false.
|
void |
setActive(boolean isActive)
Sets this contact node as active, which indicates it has unread received
messages waiting.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
public ContactNode(UIContactImpl contact)
contact
- the UIContactImpl corresponding to this nodepublic UIContactImpl getContactDescriptor()
public int getSourceIndex()
getSourceIndex
in interface ContactListNode
public boolean isActive()
public void setActive(boolean isActive)
isActive
- indicates if this contact is active
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.