Class NavigationUtils
- java.lang.Object
-
- com.hybris.backoffice.actionbar.impl.ActionComponentUtils
-
- com.hybris.backoffice.navigation.bar.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.HtmlBasedComponentgetSelectedItem(org.zkoss.zk.ui.Component parent)Gets component representation of currently selected navigation node for barstatic voidnodeSelected(org.zkoss.zk.ui.Component parent, NavigationContext context, org.zkoss.zk.ui.HtmlBasedComponent item)Executes all required actions after a navigation node has been selectedstatic voidnodeSelectionChanged(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 com.hybris.backoffice.actionbar.impl.ActionComponentUtils
formatNodeElement, getDefinition, getLabel, initComponent
-
-
-
-
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 barcontext- navigation contextitem- 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 barcontext- navigation contextnodeComponent- 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
nullif nothing is selected - See Also:
ActionComponentUtils.getDefinition(HtmlBasedComponent)
-
-