- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.icepdf.ri.common.utility.layers.LayersTreeNode
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
public class LayersTreeNode extends DefaultMutableTreeNode
The LayersTreeNode represent a group of optional content members or just one optional content group. The user object for this DefaultMutableTreeNode must always be of type OptionalContentGroup. The OptionalContentGroup object is a reference to the OptionalContentGroup in the document's dictionary and any visibility changes will be reflected in the next Page paint.- Since:
- 5.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intRADIO_SELECTIONNodes behave like radio check boxes where only one can be selected at a time.protected intselectionModestatic intSINGLE_SELECTIONNode selection is independent of other nodes.-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description LayersTreeNode(Object object)LayersTreeNode(Object userObject, boolean allowsChildren)LayersTreeNode(OptionalContentGroup optionalContentGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptionalContentGroupgetOptionalContentGroup()intgetSelectionMode()booleanisSelected()voidsetSelected(boolean isSelected)voidsetSelectionMode(int mode)StringtoString()-
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, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
-
-
-
Field Detail
-
SINGLE_SELECTION
public static final int SINGLE_SELECTION
Node selection is independent of other nodes.- See Also:
- Constant Field Values
-
RADIO_SELECTION
public static final int RADIO_SELECTION
Nodes behave like radio check boxes where only one can be selected at a time.- See Also:
- Constant Field Values
-
selectionMode
protected int selectionMode
-
-
Constructor Detail
-
LayersTreeNode
public LayersTreeNode(Object object)
-
LayersTreeNode
public LayersTreeNode(OptionalContentGroup optionalContentGroup)
-
LayersTreeNode
public LayersTreeNode(Object userObject, boolean allowsChildren)
-
-
Method Detail
-
setSelectionMode
public void setSelectionMode(int mode)
-
getSelectionMode
public int getSelectionMode()
-
getOptionalContentGroup
public OptionalContentGroup getOptionalContentGroup()
-
setSelected
public void setSelected(boolean isSelected)
-
isSelected
public boolean isSelected()
-
toString
public String toString()
- Overrides:
toStringin classDefaultMutableTreeNode
-
-