Interface IToolbar<I extends IAnyGroup>
- All Superinterfaces:
IAnyGroup<IToolbar<I>>,IChildable<IToolbar<I>,,I> IChildrenOfPanel<IToolbar<I>>,IComponent<IToolbar<I>>,IHtmlBasedComponent<IToolbar<I>>,ITabboxComposite<IToolbar<I>>,IXulElement<IToolbar<I>>
Toolbar component
A toolbar is used to place a series of buttons, such as toolbarbutton or button. The toolbar buttons could be used without toolbars, so a toolbar could be used without tool buttons. However, the tool buttons change their appearance if they are placed inside a toolbar.
The toolbar has two orientation: horizontal and vertical. It controls how the buttons are placed.
Support Molds
| Name | Snapshot |
|---|---|
"default" |
![]() |
"panel" |
![]() |
- Author:
- katherine
- See Also:
-
Toolbar
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIToolbar.Builder<I extends IAnyGroup>Builds instances of typeIToolbar.static enumSpecifies the orient withwithOrient(Orient)static classBuilds an updater of typeIToolbarforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetAlign()Returns the alignment of any children added to this toolbar.default StringReturns the orient.default StringReturns the overflow sclass name of overflow popup icon of this toolbar.default StringReturns the client widget class.default booleanReturn whether toolbar has a button that shows a popup which contains those content weren't able to fit in the toolbar.of(I... children) Returns the instance with the given any group children.Returns the instance with the given any group children.Returns the instance with the given id.Returns a copy ofthisimmutable component with the specifiedalign.withOrient(String orient) Returns a copy ofthisimmutable component with the specifiedorient.withOrient(IToolbar.Orient orient) Returns a copy ofthisimmutable component with the specifiedorient.withOverflowPopup(boolean overflowPopup) Returns a copy ofthisimmutable component with the specifiedoverflowPopup.withOverflowPopupIconSclass(String overflowPopupIconSclass) Returns a copy ofthisimmutable component with the specifiedoverflowPopupIconSclass.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. -
PANEL
Constant for pnael mold attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.wgt.Toolbar"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
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
-
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
-
getAlign
Returns the alignment of any children added to this toolbar. Valid values are"start","end"and"center".Default:
"start" -
withAlign
Returns a copy ofthisimmutable component with the specifiedalign.Sets the alignment of any children added to this toolbar.
- Parameters:
align- Valid values are"start","end"and"center"Default:
"start".- Returns:
- A modified copy of the
thisobject
-
isOverflowPopup
default boolean isOverflowPopup()Return whether toolbar has a button that shows a popup which contains those content weren't able to fit in the toolbar. If overflowPopup is false, toolbar will display multiple rows when content is wider than toolbar.Default:
false. -
withOverflowPopup
Returns a copy ofthisimmutable component with the specifiedoverflowPopup.Sets whether toolbar has a button that shows a popup
- Parameters:
overflowPopup- Whether toolbar has a button that shows a popupDefault:
false.- Returns:
- A modified copy of the
thisobject
-
getOverflowPopupIconSclass
Returns the overflow sclass name of overflow popup icon of this toolbar. Default:"z-icon-ellipsis-h". -
withOverflowPopupIconSclass
Returns a copy ofthisimmutable component with the specifiedoverflowPopupIconSclass.Sets the overflow sclass name of overflow popup icon of this toolbar.
- Parameters:
overflowPopupIconSclass- The overflow sclass name of overflow popup icon of this toolbar.Default:
"z-icon-ellipsis-h".- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
-
of
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-

