Module org.icepdf.ri.viewer
Class AnnotationTreeNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.icepdf.ri.common.utility.annotation.AbstractAnnotationTreeNode<Annotation>
-
- org.icepdf.ri.common.utility.annotation.AnnotationTreeNode
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
public class AnnotationTreeNode extends AbstractAnnotationTreeNode<Annotation>
AnnotationTreeNode is used by the annotation utility tab tree. The class is pretty straight forward and is mainly used to set the label of a node based on the annotation subtype.- Since:
- 6.3
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description AnnotationTreeNode(Annotation annotation, ResourceBundle messageBundle, Pattern searchPattern, boolean caseSensitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyMessage(Annotation annotation, ResourceBundle messageBundle)Utility for setting the label via a message bundle resource.AnnotationgetAnnotation()Gets an instance of the Annotation instance that is encapsulated/represented by this node.protected StringgetNullMessage(ResourceBundle messageBundle)-
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, toString
-
-
-
-
Constructor Detail
-
AnnotationTreeNode
public AnnotationTreeNode(Annotation annotation, ResourceBundle messageBundle, Pattern searchPattern, boolean caseSensitive)
-
-
Method Detail
-
getAnnotation
public Annotation getAnnotation()
Description copied from class:AbstractAnnotationTreeNodeGets an instance of the Annotation instance that is encapsulated/represented by this node.- Specified by:
getAnnotationin classAbstractAnnotationTreeNode<Annotation>- Returns:
- instance of Annotation object.
-
applyMessage
public void applyMessage(Annotation annotation, ResourceBundle messageBundle)
Utility for setting the label via a message bundle resource.- Parameters:
annotation- annotation to apply message too.messageBundle- ri message bundle
-
getNullMessage
protected String getNullMessage(ResourceBundle messageBundle)
-
-