public class NavigationUtils extends ActionComponentUtils
| Modifier and Type | Method and 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.
|
formatNodeElement, getDefinition, getLabel, initComponentpublic static void nodeSelected(org.zkoss.zk.ui.Component parent,
NavigationContext context,
org.zkoss.zk.ui.HtmlBasedComponent item)
parent - navigation barcontext - navigation contextitem - a component representation of selected navigation nodepublic static void nodeSelectionChanged(org.zkoss.zk.ui.Component parent,
NavigationContext context,
org.zkoss.zk.ui.HtmlBasedComponent nodeComponent)
parent - navigation barcontext - navigation contextnodeComponent - a component in which to look for selected nodepublic static org.zkoss.zk.ui.HtmlBasedComponent getSelectedItem(org.zkoss.zk.ui.Component parent)
parent - navigation barnull if nothing is selectedActionComponentUtils.getDefinition(HtmlBasedComponent)Copyright © 2018. All rights reserved.