Package org.zkoss.stateless.sul
Interface IMenubar
- All Superinterfaces:
IAnyGroup<IMenubar>,IChildable<IMenubar,,IChildrenOfMenupopup> IComponent<IMenubar>,IHtmlBasedComponent<IMenubar>,IXulElement<IMenubar>
public interface IMenubar
extends IXulElement<IMenubar>, IChildable<IMenubar,IChildrenOfMenupopup>, IAnyGroup<IMenubar>
Immutable
Menubar component
A container usually contains more than one menu elements.
- Author:
- katherine
- See Also:
-
Menubar
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIMenubar.static enumSpecifies the orient ofIMenubarcomponentstatic classBuilds an updater of typeIMenubarforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the orient.default StringReturns the client widget class.default booleanReturns whether it is opened automatically when the mouse cursor is near the page edge.default booleanReturns whether the menubar scrolling is enabled.static IMenubarof(Iterable<? extends IChildrenOfMenupopup> children) Returns the instance with the givenIChildrenOfMenupopupchildren.static IMenubarof(IChildrenOfMenupopup... children) Returns the instance with the givenIChildrenOfMenupopupchildren.static IMenubarReturns the instance with the given id.withAutodrop(boolean autodrop) Returns a copy ofthisimmutable component with the specifiedautodrop.withOrient(String orient) Returns a copy ofthisimmutable component with the specifiedorient.default IMenubarwithOrient(IMenubar.Orient orient) Returns a copy ofthisimmutable component with the specifiedorient.withScrollable(boolean scrollable) Returns a copy ofthisimmutable component with the specifiedscrollable.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:
"zul.menu.Menubar"- Specified by:
getWidgetClassin interfaceIComponent<IMenubar>
-
isAutodrop
default boolean isAutodrop()Returns whether it is opened automatically when the mouse cursor is near the page edge.Default:
false. -
withAutodrop
Returns a copy ofthisimmutable component with the specifiedautodrop.Sets whether it is opened automatically when the mouse cursor is near the page edge.
- Parameters:
autodrop- Whether it is opened automatically.Default:
false.- Returns:
- A modified copy of the
thisobject
-
getOrient
Returns the orient.Default:
"horizontal". -
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- Either"horizontal"or"vertical"Default:
"horizontal".- Returns:
- A modified copy of the
thisobject
-
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- TheorientDefault:
"horizontal".- Returns:
- A modified copy of the
thisobject
-
isScrollable
default boolean isScrollable()Returns whether the menubar scrolling is enabled.Default:
false. -
withScrollable
Returns a copy ofthisimmutable component with the specifiedscrollable.Sets whether the menubar scrolling is enabled.
- Parameters:
scrollable- Whether the menubar scrolling is enabled.Default:
false.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the givenIChildrenOfMenupopupchildren.- Parameters:
children- The children ofIChildrenOfMenupopup
-
of
Returns the instance with the givenIChildrenOfMenupopupchildren.- Parameters:
children- The children ofIChildrenOfMenupopup
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-