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>
ImmutableMenubarcomponentA container usually contains more than one menu elements.
- Author:
- katherine
- See Also:
Menubar
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIMenubar.BuilderBuilds instances of typeIMenubar.static classIMenubar.OrientSpecifies the orient ofIMenubarcomponentstatic classIMenubar.UpdaterBuilds an updater of typeIMenubarforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetOrient()Returns the orient.default java.lang.StringgetWidgetClass()Returns the client widget class.default booleanisAutodrop()Returns whether it is opened automatically when the mouse cursor is near the page edge.default booleanisScrollable()Returns whether the menubar scrolling is enabled.static IMenubarof(java.lang.Iterable<? extends IChildrenOfMenupopup> children)Returns the instance with the givenIChildrenOfMenupopupchildren.static IMenubarof(IChildrenOfMenupopup... children)Returns the instance with the givenIChildrenOfMenupopupchildren.static IMenubarofId(java.lang.String id)Returns the instance with the given id.IMenubarwithAutodrop(boolean autodrop)Returns a copy ofthisimmutable component with the specifiedautodrop.IMenubarwithOrient(java.lang.String orient)Returns a copy ofthisimmutable component with the specifiedorient.default IMenubarwithOrient(IMenubar.Orient orient)Returns a copy ofthisimmutable component with the specifiedorient.IMenubarwithScrollable(boolean scrollable)Returns a copy ofthisimmutable component with the specifiedscrollable.-
Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildren
-
Methods 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, withWidgetOverrides
-
Methods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Field Detail
-
DEFAULT
static final IMenubar DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String 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
IMenubar withAutodrop(boolean autodrop)
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
default java.lang.String getOrient()
Returns the orient.Default:
"horizontal".
-
withOrient
IMenubar withOrient(java.lang.String orient)
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
default IMenubar withOrient(IMenubar.Orient orient)
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
IMenubar withScrollable(boolean scrollable)
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
static IMenubar of(java.lang.Iterable<? extends IChildrenOfMenupopup> children)
Returns the instance with the givenIChildrenOfMenupopupchildren.- Parameters:
children- The children ofIChildrenOfMenupopup
-
of
static IMenubar of(IChildrenOfMenupopup... children)
Returns the instance with the givenIChildrenOfMenupopupchildren.- Parameters:
children- The children ofIChildrenOfMenupopup
-
ofId
static IMenubar ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
-