Class KeysBrowserNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

    public class KeysBrowserNode
    extends javax.swing.tree.DefaultMutableTreeNode
    Filename: KeysBrowserNode.java Created on May 12, 2015 Author: Kathy Applebaum Copyright Inductive Automation 2015 Project: Reporting
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REPORT_FOLDER_NAME  
      • Fields inherited from class javax.swing.tree.DefaultMutableTreeNode

        allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String buildAggKeyPath()  
      protected java.lang.String buildDataKeyPath()
      Why all this key path building nonsense? Because we made our folder structure intuitive, but we need to match RM's data key structure.
      java.lang.String getAdjustedKeyPath​(RMShape shape)  
      protected Entity getEntity()
      Returns the entity.
      protected java.lang.String getGrandParentKeyPath()  
      java.lang.String getKeyPath()  
      java.lang.String getName()  
      protected java.lang.String getParentKeyPath()  
      protected java.lang.String getParentName()  
      Property getProp()  
      java.lang.String getTrimmedKeyPath()  
      boolean isBuiltIn()  
      void setEntity​(Entity entity)  
      void setKeyPath​(java.lang.String keyPath)  
      java.lang.String toString()  
      • 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • REPORT_FOLDER_NAME

        public static final java.lang.String REPORT_FOLDER_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • KeysBrowserNode

        public KeysBrowserNode​(ReportResource reportResource,
                               SampleData sampleData,
                               boolean showAggregates)
        Used for the root node
    • Method Detail

      • getAdjustedKeyPath

        public java.lang.String getAdjustedKeyPath​(RMShape shape)
      • getName

        public java.lang.String getName()
      • getEntity

        protected Entity getEntity()
        Returns the entity.
      • isBuiltIn

        public boolean isBuiltIn()
      • buildDataKeyPath

        protected java.lang.String buildDataKeyPath()
        Why all this key path building nonsense? Because we made our folder structure intuitive, but we need to match RM's data key structure.
      • buildAggKeyPath

        protected java.lang.String buildAggKeyPath()
      • getParentKeyPath

        protected java.lang.String getParentKeyPath()
      • getParentName

        protected java.lang.String getParentName()
      • getGrandParentKeyPath

        protected java.lang.String getGrandParentKeyPath()
      • setEntity

        public void setEntity​(Entity entity)
      • getKeyPath

        @Nonnull
        public java.lang.String getKeyPath()
      • getTrimmedKeyPath

        @Nonnull
        public java.lang.String getTrimmedKeyPath()
      • setKeyPath

        public void setKeyPath​(java.lang.String keyPath)
      • toString

        @Nonnull
        public java.lang.String toString()
        Overrides:
        toString in class javax.swing.tree.DefaultMutableTreeNode