Class ActorPathTree<T extends ActorPathNode>

    • Field Detail

      • m_FlowTree

        protected Tree m_FlowTree
        the underlying flow.
    • Constructor Detail

      • ActorPathTree

        public ActorPathTree()
        Initializes the tree with no classes.
    • Method Detail

      • setFlowTree

        public void setFlowTree​(Tree value)
        Sets the underlying flow.
        Parameters:
        value - the flow
      • getFlowTree

        public Tree getFlowTree()
        Returns the underlying flow.
        Returns:
        the flow
      • maskEscapedDots

        protected String maskEscapedDots​(String s)
        Masks the escaped dots to avoid splitting on the dot.
        Parameters:
        s - the string to process
        Returns:
        the processed string
      • unmaskEscapedDots

        protected String unmaskEscapedDots​(String s)
        Un-masks the masked escaped dots.
        Parameters:
        s - the string to process
        Returns:
        the processed string
      • hasItem

        public boolean hasItem​(String item)
        Checks whether the item is among the stored ones.
        Overrides:
        hasItem in class DotNotationTree<T extends ActorPathNode>
        Parameters:
        item - the item to look for
        Returns:
        true if already present
      • newNodeInstance

        protected T newNodeInstance​(String label)
        Returns a new instance of a node.
        Parameters:
        label - the label to use
        Returns:
        the new node
        See Also:
        newNode(String)
      • checkIconClassname

        protected String checkIconClassname​(T node,
                                            String classname)
        Processes the classname for the icon, returns null if not suitable to be added to the node.

        Default implementation just returns the provided classname.
        Parameters:
        node - the node currently processed
        classname - the classname to process
        Returns:
        null if not acceptable, otherwise the classname
      • checkClassname

        protected String checkClassname​(T node,
                                        String classname)
        Processes the classname, returns null if not suitable to be added to the node.

        Default implementation just returns the provided classname.
        Parameters:
        node - the node to process
        classname - the classname to process
        Returns:
        null if not acceptable, otherwise the classname
      • findNodeByName

        public ActorPathNode findNodeByName​(String name)
        Selects the node (containing a classname) identified by the label of the node.
        Parameters:
        name - the label of the node
        Returns:
        the node, null if not found
      • selectNodeByName

        public void selectNodeByName​(String name)
        Selects the node (containing a classname) identified by the name.
        Parameters:
        name - the label of the node