T - The data typepublic interface NavigationLevel<T>
| Modifier and Type | Method and Description |
|---|---|
NavigationLevel<T> |
getChild()
Gets the child navigation level if any.
|
Map<String,Object> |
getContext()
Gets the context of this level if any.
|
T |
getCurrent()
Gets the data associated with the current key if any.
|
String |
getCurrentKey()
Gets the current key.
|
Iterator<org.zkoss.util.Pair<String,T>> |
getItemIterator()
Gets the item iterator in this level.
|
List<org.zkoss.util.Pair<String,T>> |
getItems()
Gets the list of items in this level.
|
int |
getLevel()
Gets the level number.
|
NavigationLevel<T> |
navigateTo(String key)
Navigates to the specified key in the current level.
|
NavigationLevel<T> |
setContext(Map<String,Object> context)
Sets the context of this level.
|
int getLevel()
Map<String,Object> getContext()
nullNavigationLevel<T> setContext(Map<String,Object> context)
context - the context mapString getCurrentKey()
null.nullT getCurrent()
nullNavigationLevel<T> getChild()
nullNavigationLevel<T> navigateTo(String key)
key - the item keyIllegalArgumentException - if the key is invalid or not found in the levelIterator<org.zkoss.util.Pair<String,T>> getItemIterator()
Pair.getX() is the key, and Pair.getY() is the data.Copyright © 2021. All rights reserved.