Package org.zkoss.stateless.sul
Interface INav
- All Superinterfaces:
IChildable<INav,,IChildrenOfNavbar> IChildrenOfInputgroup<INav>,IChildrenOfNavbar<INav>,IComponent<INav>,IHtmlBasedComponent<INav>,ILabelElement<INav>,ILabelImageElement<INav>,IXulElement<INav>
public interface INav
extends ILabelImageElement<INav>, IChildable<INav,IChildrenOfNavbar>, IChildrenOfNavbar<INav>
Immutable
Nav component
A container is used to display navitems, it should be placed inside a
INavbar.
Support @Action
| Name | Action Type |
|---|---|
| onOpen | ActionData: OpenData
Denotes user has opened or closed a nav component. |
- Author:
- katherine
- See Also:
-
Nav
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeINav.static classBuilds an updater of typeINavforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the badge text of the navdefault StringReturns the client widget class.default booleanisOpen()Returns whether this container is open.static INavReturns the instance with the given label.static INavofIconSclass(String iconSclass) Returns the instance with the given iconSclass.static INavReturns the instance with the given id.withBadgeText(String badgeText) Returns a copy ofthisimmutable component with the specifiedbadgeText.withOpen(boolean open) Returns a copy ofthisimmutable component with the specifiedopen.Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildrenMethods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.ILabelElement
getLabel, withLabelMethods inherited from interface org.zkoss.stateless.sul.ILabelImageElement
getHoverImage, getIconSclass, getIconSclasses, getIconTooltip, getIconTooltips, getImage, isPreloadImage, withHoverImage, withIconSclass, withIconSclasses, withIconTooltip, withIconTooltips, withImage, withPreloadImageMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zkmax.nav.Nav"- Specified by:
getWidgetClassin interfaceIComponent<INav>
-
getBadgeText
Returns the badge text of the navDefault:
null -
withBadgeText
Returns a copy ofthisimmutable component with the specifiedbadgeText.Sets the badge text of the nav
- Parameters:
badgeText- The badge text of the navDefault:
null.- Returns:
- A modified copy of the
thisobject
-
isOpen
default boolean isOpen()Returns whether this container is open.Default:
false. -
withOpen
Returns a copy ofthisimmutable component with the specifiedopen.Sets whether this container is open.
- Parameters:
open- Whether this container is open.Default:
false.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given label.- Parameters:
label- The label that the nav holds.
-
ofIconSclass
Returns the instance with the given iconSclass.- Parameters:
iconSclass- The iconSclass that the nav holds.
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-