org.jivesoftware.spark.ui
Class RosterNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.jivesoftware.spark.ui.RosterNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class RosterNode
extends javax.swing.tree.DefaultMutableTreeNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
RosterNode()
           
RosterNode(java.lang.String name, boolean isGroup)
           
RosterNode(java.lang.String name, java.lang.String fullJID)
           
 
Method Summary
 javax.swing.Icon getClosedIcon()
          Returns the icon that is displayed when the node is collapsed.
 java.lang.String getFullJID()
           
 javax.swing.Icon getIcon()
          Returns the default image used.
 java.lang.String getName()
           
 javax.swing.Icon getOpenIcon()
          Return the icon that is displayed when the node is expanded.
 org.jivesoftware.smack.packet.Presence getPresence()
           
 java.lang.Object getUserObject()
           
 boolean isContact()
           
 boolean isGroup()
           
 void setClosedIcon(javax.swing.Icon icon)
           
 void setFullJID(java.lang.String fullJID)
           
 void setOpenIcon(javax.swing.Icon icon)
          Sets the default icon.
 void setPresence(org.jivesoftware.smack.packet.Presence presence)
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
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, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RosterNode

public RosterNode()

RosterNode

public RosterNode(java.lang.String name,
                  boolean isGroup)

RosterNode

public RosterNode(java.lang.String name,
                  java.lang.String fullJID)
Method Detail

getUserObject

public java.lang.Object getUserObject()
Overrides:
getUserObject in class javax.swing.tree.DefaultMutableTreeNode

getIcon

public javax.swing.Icon getIcon()
Returns the default image used.

Returns:
the default image used.

getOpenIcon

public javax.swing.Icon getOpenIcon()
Return the icon that is displayed when the node is expanded.

Returns:
the open icon.

getClosedIcon

public javax.swing.Icon getClosedIcon()
Returns the icon that is displayed when the node is collapsed.

Returns:
the closed icon.

setOpenIcon

public void setOpenIcon(javax.swing.Icon icon)
Sets the default icon.

Parameters:
icon - the icon.

setClosedIcon

public void setClosedIcon(javax.swing.Icon icon)

isContact

public boolean isContact()

isGroup

public boolean isGroup()

getPresence

public org.jivesoftware.smack.packet.Presence getPresence()

setPresence

public void setPresence(org.jivesoftware.smack.packet.Presence presence)

getFullJID

public java.lang.String getFullJID()

setFullJID

public void setFullJID(java.lang.String fullJID)

getName

public java.lang.String getName()