Interface NavigationTreeFactory

  • All Known Implementing Classes:
    DefaultNavigationTreeFactory

    public interface NavigationTreeFactory
    Factory class for navigation tree models.
    • Field Detail

      • ROOT_NODE_ID

        static final java.lang.String ROOT_NODE_ID
        Root nodes should have this constant assigned as their Id. It is crucial for refreshing of the root nodes while this constant is used for node lookup in the Explorer Tree.
        See Also:
        Constant Field Values
    • Method Detail

      • createNavigationTree

        NavigationTree createNavigationTree​(ExplorerTree explorerTreeConfig)
        Factory method creating tree model accordingly to the given configuration.
        Parameters:
        explorerTreeConfig - - tree configuration
        Returns:
        tree model
      • createNavigationTree

        default NavigationTree createNavigationTree​(ExplorerTree explorerTreeConfig,
                                                    CockpitContext context)
        Factory method creating tree model accordingly to the given configuration and context
        Parameters:
        explorerTreeConfig - tree configuration
        context - tree context
        Returns:
        tree model
      • refreshRootNode

        default void refreshRootNode​(ExplorerTree explorerTreeConfig,
                                     NavigationNode rootNode,
                                     CockpitContext context)
        Parameters:
        explorerTreeConfig - tree configuration
        rootNode - navigation node which represents root node
        context - tree context