Class NavigationUtils


  • public class NavigationUtils
    extends ActionComponentUtils
    Utilities methods to help using navigation components
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.zkoss.zk.ui.HtmlBasedComponent getSelectedItem​(org.zkoss.zk.ui.Component parent)
      Gets component representation of currently selected navigation node for bar
      static void nodeSelected​(org.zkoss.zk.ui.Component parent, NavigationContext context, org.zkoss.zk.ui.HtmlBasedComponent item)
      Executes all required actions after a navigation node has been selected
      static void nodeSelectionChanged​(org.zkoss.zk.ui.Component parent, NavigationContext context, org.zkoss.zk.ui.HtmlBasedComponent nodeComponent)
      Looks for a navigation node that is selected in navigation bar and executes all required actions for this node.
      • Methods inherited from class java.lang.Object

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

      • nodeSelected

        public static void nodeSelected​(org.zkoss.zk.ui.Component parent,
                                        NavigationContext context,
                                        org.zkoss.zk.ui.HtmlBasedComponent item)
        Executes all required actions after a navigation node has been selected
        Parameters:
        parent - navigation bar
        context - navigation context
        item - a component representation of selected navigation node
      • nodeSelectionChanged

        public static void nodeSelectionChanged​(org.zkoss.zk.ui.Component parent,
                                                NavigationContext context,
                                                org.zkoss.zk.ui.HtmlBasedComponent nodeComponent)
        Looks for a navigation node that is selected in navigation bar and executes all required actions for this node.
        Parameters:
        parent - navigation bar
        context - navigation context
        nodeComponent - a component in which to look for selected node
      • getSelectedItem

        public static org.zkoss.zk.ui.HtmlBasedComponent getSelectedItem​(org.zkoss.zk.ui.Component parent)
        Gets component representation of currently selected navigation node for bar
        Parameters:
        parent - navigation bar
        Returns:
        currently selected node or null if nothing is selected
        See Also:
        ActionComponentUtils.getDefinition(HtmlBasedComponent)