public class PrivacyTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
Constructor and Description |
---|
PrivacyTreeNode(org.jivesoftware.smackx.privacy.packet.PrivacyItem item)
Creates a Node with a reference to the PrivacyItem and changes the Name
to item's name
|
PrivacyTreeNode(SparkPrivacyList list)
Creates a Node with a reference to the SparkPrivacyList and changes the
Name to list's name
|
PrivacyTreeNode(java.lang.String nodeName)
Creates a Node with a String.
|
Modifier and Type | Method and Description |
---|---|
org.jivesoftware.smackx.privacy.packet.PrivacyItem |
getPrivacyItem()
Get the privacyItem this node refers to
|
SparkPrivacyList |
getPrivacyList()
Get the pricayList this node refers to
|
boolean |
isActiveList()
Returns if this node has a reference to the currently active list
|
boolean |
isContactGroup()
Check if the current node is the parent node for all contacts
|
boolean |
isDefaultList()
Returns if this node has a reference to the default list
|
boolean |
isGroupNode()
Check if the current node is the parent node for all groups
|
boolean |
isPrivacyItem()
Check if this node represents a PrivacyItem
|
boolean |
isPrivacyList()
Check if this node represents a PrivacyList
|
boolean |
isStructureNode()
Check if this node is for structured reasons without any reference to
privacyItem e.g.
|
void |
setisContactGroup(boolean bool)
Set this node as the contact node or not.
|
void |
setisGroupNode(boolean bool)
Set this node as the group node or not.
|
void |
setListAsActive()
Set the list as active list.
|
void |
setListAsDefault()
Set the list as default list
|
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 PrivacyTreeNode(SparkPrivacyList list)
list
- the list the Node will refer topublic PrivacyTreeNode(java.lang.String nodeName)
nodeName
- the name of the nodepublic PrivacyTreeNode(org.jivesoftware.smackx.privacy.packet.PrivacyItem item)
item
- the privacyItem which should be displayed as a nodepublic boolean isActiveList()
public boolean isDefaultList()
public void setListAsActive()
public void setListAsDefault()
public boolean isContactGroup()
public void setisContactGroup(boolean bool)
bool
- public boolean isGroupNode()
public void setisGroupNode(boolean bool)
bool
- public SparkPrivacyList getPrivacyList()
public org.jivesoftware.smackx.privacy.packet.PrivacyItem getPrivacyItem()
public boolean isPrivacyList()
public boolean isPrivacyItem()
public boolean isStructureNode()