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>
ImmutableMenubar
componentA container usually contains more than one menu elements.
- Author:
- katherine
- See Also:
Menubar
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IMenubar.Builder
Builds instances of typeIMenubar
.static class
IMenubar.Orient
Specifies the orient ofIMenubar
componentstatic class
IMenubar.Updater
Builds an updater of typeIMenubar
forUiAgent.smartUpdate(Locator, SmartUpdater)
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
getOrient()
Returns the orient.default java.lang.String
getWidgetClass()
Returns the client widget class.default boolean
isAutodrop()
Returns whether it is opened automatically when the mouse cursor is near the page edge.default boolean
isScrollable()
Returns whether the menubar scrolling is enabled.static IMenubar
of(java.lang.Iterable<? extends IChildrenOfMenupopup> children)
Returns the instance with the givenIChildrenOfMenupopup
children.static IMenubar
of(IChildrenOfMenupopup... children)
Returns the instance with the givenIChildrenOfMenupopup
children.static IMenubar
ofId(java.lang.String id)
Returns the instance with the given id.IMenubar
withAutodrop(boolean autodrop)
Returns a copy ofthis
immutable component with the specifiedautodrop
.IMenubar
withOrient(java.lang.String orient)
Returns a copy ofthis
immutable component with the specifiedorient
.default IMenubar
withOrient(IMenubar.Orient orient)
Returns a copy ofthis
immutable component with the specifiedorient
.IMenubar
withScrollable(boolean scrollable)
Returns a copy ofthis
immutable 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:
getWidgetClass
in 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 ofthis
immutable 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
this
object
-
getOrient
default java.lang.String getOrient()
Returns the orient.Default:
"horizontal"
.
-
withOrient
IMenubar withOrient(java.lang.String orient)
Returns a copy ofthis
immutable component with the specifiedorient
.Sets the orient of component
- Parameters:
orient
- Either"horizontal"
or"vertical"
Default:
"horizontal"
.- Returns:
- A modified copy of the
this
object
-
withOrient
default IMenubar withOrient(IMenubar.Orient orient)
Returns a copy ofthis
immutable component with the specifiedorient
.Sets the orient of component
- Parameters:
orient
- Theorient
Default:
"horizontal"
.- Returns:
- A modified copy of the
this
object
-
isScrollable
default boolean isScrollable()
Returns whether the menubar scrolling is enabled.Default:
false
.
-
withScrollable
IMenubar withScrollable(boolean scrollable)
Returns a copy ofthis
immutable 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
this
object
-
of
static IMenubar of(java.lang.Iterable<? extends IChildrenOfMenupopup> children)
Returns the instance with the givenIChildrenOfMenupopup
children.- Parameters:
children
- The children ofIChildrenOfMenupopup
-
of
static IMenubar of(IChildrenOfMenupopup... children)
Returns the instance with the givenIChildrenOfMenupopup
children.- 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
-
-