Class TreeStatus


  • public final class TreeStatus
    extends java.lang.Object
    Author:
    Khyrul Bashar
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeStatus​(java.lang.Object rootNode)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.tree.TreePath getPathForString​(java.lang.String statusString)
      Provides TreePath for a given status string.
      java.lang.String getStringForPath​(javax.swing.tree.TreePath path)
      Provides status string for a TreePath instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeStatus

        public TreeStatus​(java.lang.Object rootNode)
        Constructor.
        Parameters:
        rootNode - the root node of the tree which will be used to construct a treepath from a tree status string.
    • Method Detail

      • getStringForPath

        public java.lang.String getStringForPath​(javax.swing.tree.TreePath path)
        Provides status string for a TreePath instance.
        Parameters:
        path - TreePath instance.
        Returns:
        pathString.
      • getPathForString

        public javax.swing.tree.TreePath getPathForString​(java.lang.String statusString)
        Provides TreePath for a given status string. In case of invalid string returns null.
        Parameters:
        statusString -
        Returns:
        path.