Package org.zkoss.stateless.sul
Interface INavbar
- All Superinterfaces:
IAnyGroup<INavbar>,IChildable<INavbar,,IChildrenOfNavbar> IComponent<INavbar>,IHtmlBasedComponent<INavbar>,IXulElement<INavbar>
public interface INavbar
extends IXulElement<INavbar>, IAnyGroup<INavbar>, IChildable<INavbar,IChildrenOfNavbar>
Immutable
Navbar component
A container that usually contains nav elements.
Support @Action
| Name | Action Type |
|---|---|
| onSelect | ActionData: SelectData
Notifies one that the user has selected a navitem in the navbar. |
- Author:
- katherine
- See Also:
-
Navbar
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeINavbar.static enumSpecifies the orient withwithOrient(Orient)static classBuilds an updater of typeINavbarforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the orient.default StringReturns the client widget class.default booleanReturns whether to automatically close all other nav/navitem on opening nav/navitem.default booleanReturns whether it is collapsed.static INavbarof(Iterable<? extends IChildrenOfNavbar> children) Returns the instance with the givenIChildrenOfNavbarchildren.static INavbarof(IChildrenOfNavbar... children) Returns the instance with the givenIChildrenOfNavbarchildren.static INavbarReturns the instance with the given id.withAutoclose(boolean autoclose) Returns a copy ofthisimmutable component with the specifiedautoclose.withCollapsed(boolean collapsed) Returns a copy ofthisimmutable component with the specifiedcollapsed.withOrient(String orient) Returns a copy ofthisimmutable component with the specifiedorient.default INavbarwithOrient(INavbar.Orient orient) Returns a copy ofthisimmutable component with the specifiedorient.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.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.Navbar"- Specified by:
getWidgetClassin interfaceIComponent<INavbar>
-
getOrient
Returns the orient.Default:
"horizontal". -
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient.
- Parameters:
orient- Either"horizontal"or"vertical"Default:
"horizontal".- Returns:
- A modified copy of the
thisobject
-
isCollapsed
default boolean isCollapsed()Returns whether it is collapsed. Default:false. -
withCollapsed
Returns a copy ofthisimmutable component with the specifiedcollapsed.Sets whether to collapse it.
- Parameters:
collapsed- Whether to collapse it.Default:
false.- Returns:
- A modified copy of the
thisobject
-
isAutoclose
default boolean isAutoclose()Returns whether to automatically close all other nav/navitem on opening nav/navitem.Default:
true. -
withAutoclose
Returns a copy ofthisimmutable component with the specifiedautoclose.Sets whether to automatically close all other nav/navitem on opening nav/navitem.
- Parameters:
autoclose- Whether to automatically close all other nav/navitem on opening nav/navitem.Default:
true.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the givenIChildrenOfNavbarchildren.- Parameters:
children- The children ofIChildrenOfNavbar
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-