Package org.zkoss.stateless.sul
Interface IToolbarbutton
-
- All Superinterfaces:
IAnyGroup<IToolbarbutton>,IButtonBase<IToolbarbutton>,IChildrenOfInputgroup<IToolbarbutton>,IComponent<IToolbarbutton>,IHtmlBasedComponent<IToolbarbutton>,ILabelElement<IToolbarbutton>,ILabelImageElement<IToolbarbutton>,IXulElement<IToolbarbutton>
public interface IToolbarbutton extends IButtonBase<IToolbarbutton>, IAnyGroup<IToolbarbutton>
ImmutableToolbarbuttoncomponentThe behavior of Toolbarbutton is similar to the button except the appearance is different. The button component uses HTML BUTTON tag, while the toolbarbutton component uses HTML DIV tag.
A toolbarbutton could be placed outside a toolbar. However toolbarbuttons change their appearance if they are placed inside a toolbar.
Toolbarbutton supports getHref(). If getHref() is not null, the onClick handler is ignored and this element is degenerated to HTML's A tag.
Support @Action
Name Action Type onCheck ActionData: CheckData
Denotes when toolbarbutton is checked , only available in toggle mode.- Author:
- katherine
- See Also:
Toolbarbutton
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIToolbarbutton.BuilderBuilds instances of typeIToolbarbutton.static classIToolbarbutton.ModeSpecifies the mode withwithMode(Mode).static classIToolbarbutton.UpdaterBuilds an updater of typeIToolbarbuttonforUiAgent.smartUpdate(Locator, SmartUpdater).-
Nested classes/interfaces inherited from interface org.zkoss.stateless.sul.IButtonBase
IButtonBase.Direction, IButtonBase.Orient, IButtonBase.Type
-
-
Field Summary
Fields Modifier and Type Field Description static IToolbarbuttonDEFAULTConstant for default attributes of this immutable component.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetMode()Returns the current mode.default java.lang.StringgetWidgetClass()Returns the client widget class.default booleanisChecked()Returns whether it is checked.static IToolbarbuttonof(java.lang.String label)Returns the instance with the given label.static IToolbarbuttonof(java.lang.String label, java.lang.String image)Returns the instance with the given label and image.static IToolbarbuttonofDir(IButtonBase.Direction dir)Returns the instance with the given dir.static IToolbarbuttonofId(java.lang.String id)Returns the instance with the given id.static IToolbarbuttonofImage(java.lang.String image)Returns the instance with the given image.static IToolbarbuttonofMode(IToolbarbutton.Mode mode)Returns the instance with the given mode.static IToolbarbuttonofOrient(IButtonBase.Orient orient)Returns the instance with the given orient.IToolbarbuttonwithAction(ActionHandler value)Copy the current immutable object by setting a value for theactionattribute.IToolbarbuttonwithActions(java.lang.Iterable<? extends ActionHandler> elements)Copy the current immutable object with elements that replace the content ofactions.IToolbarbuttonwithActions(ActionHandler... elements)Copy the current immutable object with elements that replace the content ofactions.IToolbarbuttonwithAutodisable(java.lang.String value)Copy the current immutable object by setting a value for theautodisableattribute.IToolbarbuttonwithChecked(boolean checked)Returns a copy ofthisimmutable component with the specifiedchecked.IToolbarbuttonwithClientAction(java.lang.String value)Copy the current immutable object by setting a value for theclientActionattribute.IToolbarbuttonwithClientAttributes(java.util.Map<java.lang.String,? extends java.lang.String> entries)Copy the current immutable object by replacing theclientAttributesmap with the specified map.IToolbarbuttonwithContext(java.lang.String value)Copy the current immutable object by setting a value for thecontextattribute.IToolbarbuttonwithCtrlKeys(java.lang.String value)Copy the current immutable object by setting a value for thectrlKeysattribute.IToolbarbuttonwithDir(java.lang.String value)Copy the current immutable object by setting a value for thedirattribute.IToolbarbuttonwithDisabled(boolean value)Copy the current immutable object by setting a value for thedisabledattribute.IToolbarbuttonwithDraggable(java.lang.String value)Copy the current immutable object by setting a value for thedraggableattribute.IToolbarbuttonwithDroppable(java.lang.String value)Copy the current immutable object by setting a value for thedroppableattribute.IToolbarbuttonwithEventListenerMap(org.zkoss.zk.ui.sys.EventListenerMap value)Copy the current immutable object by setting a value for theeventListenerMapattribute.IToolbarbuttonwithFocus(boolean value)Copy the current immutable object by setting a value for thefocusattribute.IToolbarbuttonwithHeight(java.lang.String value)Copy the current immutable object by setting a value for theheightattribute.IToolbarbuttonwithHflex(java.lang.String value)Copy the current immutable object by setting a value for thehflexattribute.IToolbarbuttonwithHoverImage(java.lang.String value)Copy the current immutable object by setting a value for thehoverImageattribute.IToolbarbuttonwithHref(java.lang.String value)Copy the current immutable object by setting a value for thehrefattribute.IToolbarbuttonwithIconSclass(java.lang.String value)Copy the current immutable object by setting a value for theiconSclassattribute.IToolbarbuttonwithIconSclasses(java.lang.String... elements)Copy the current immutable object with elements that replace the content oficonSclasses.IToolbarbuttonwithIconTooltip(java.lang.String value)Copy the current immutable object by setting a value for theiconTooltipattribute.IToolbarbuttonwithIconTooltips(java.lang.String... elements)Copy the current immutable object with elements that replace the content oficonTooltips.IToolbarbuttonwithId(java.lang.String value)Copy the current immutable object by setting a value for theidattribute.IToolbarbuttonwithImage(java.lang.String value)Copy the current immutable object by setting a value for theimageattribute.IToolbarbuttonwithLabel(java.lang.String value)Copy the current immutable object by setting a value for thelabelattribute.IToolbarbuttonwithLeft(java.lang.String value)Copy the current immutable object by setting a value for theleftattribute.IToolbarbuttonwithMode(java.lang.String mode)Returns a copy ofthisimmutable component with the specifiedmode.default IToolbarbuttonwithMode(IToolbarbutton.Mode mode)Returns a copy ofthisimmutable component with the specifiedmode.IToolbarbuttonwithMold(java.lang.String value)Copy the current immutable object by setting a value for themoldattribute.IToolbarbuttonwithOrient(java.lang.String value)Copy the current immutable object by setting a value for theorientattribute.IToolbarbuttonwithPopup(java.lang.String value)Copy the current immutable object by setting a value for thepopupattribute.IToolbarbuttonwithPreloadImage(boolean value)Copy the current immutable object by setting a value for thepreloadImageattribute.IToolbarbuttonwithRenderdefer(int value)Copy the current immutable object by setting a value for therenderdeferattribute.IToolbarbuttonwithSclass(java.lang.String value)Copy the current immutable object by setting a value for thesclassattribute.IToolbarbuttonwithStyle(java.lang.String value)Copy the current immutable object by setting a value for thestyleattribute.IToolbarbuttonwithTabindex(java.lang.Integer value)Copy the current immutable object by setting a value for thetabindexattribute.IToolbarbuttonwithTarget(java.lang.String value)Copy the current immutable object by setting a value for thetargetattribute.IToolbarbuttonwithTooltip(java.lang.String value)Copy the current immutable object by setting a value for thetooltipattribute.IToolbarbuttonwithTooltiptext(java.lang.String value)Copy the current immutable object by setting a value for thetooltiptextattribute.IToolbarbuttonwithTop(java.lang.String value)Copy the current immutable object by setting a value for thetopattribute.IToolbarbuttonwithType(java.lang.String value)Copy the current immutable object by setting a value for thetypeattribute.IToolbarbuttonwithUpload(java.lang.String value)Copy the current immutable object by setting a value for theuploadattribute.IToolbarbuttonwithVflex(java.lang.String value)Copy the current immutable object by setting a value for thevflexattribute.IToolbarbuttonwithVisible(boolean value)Copy the current immutable object by setting a value for thevisibleattribute.IToolbarbuttonwithWidgetClass(java.lang.String value)Copy the current immutable object by setting a value for thewidgetClassattribute.IToolbarbuttonwithWidgetListeners(java.util.Map<java.lang.String,? extends java.lang.String> entries)Copy the current immutable object by replacing thewidgetListenersmap with the specified map.IToolbarbuttonwithWidgetOverrides(java.util.Map<java.lang.String,? extends java.lang.String> entries)Copy the current immutable object by replacing thewidgetOverridesmap with the specified map.IToolbarbuttonwithWidth(java.lang.String value)Copy the current immutable object by setting a value for thewidthattribute.IToolbarbuttonwithZclass(java.lang.String value)Copy the current immutable object by setting a value for thezclassattribute.IToolbarbuttonwithZIndex(int value)Copy the current immutable object by setting a value for thezIndexattribute.-
Methods inherited from interface org.zkoss.stateless.sul.IButtonBase
checkOrient, getAutodisable, getDir, getHref, getOrient, getTarget, getType, getUpload, isDisabled, withAutodisable, withDir, withDir, withDisabled, withHref, withOrient, withOrient, withTarget, withType, withType, withUpload
-
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.ILabelElement
getLabel, withLabel
-
Methods inherited from interface org.zkoss.stateless.sul.ILabelImageElement
getHoverImage, getIconSclass, getIconSclasses, getIconTooltip, getIconTooltips, getImage, isPreloadImage, withHoverImage, withIconSclass, withIconSclasses, withIconTooltip, withIconTooltips, withImage, withPreloadImage
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Field Detail
-
DEFAULT
static final IToolbarbutton DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.wgt.Toolbarbutton"- Specified by:
getWidgetClassin interfaceIComponent<IToolbarbutton>
-
getMode
default java.lang.String getMode()
Returns the current mode.Default:
"default"
-
withMode
IToolbarbutton withMode(java.lang.String mode)
Returns a copy ofthisimmutable component with the specifiedmode.Sets the mode to
"default"and"toggle"- Parameters:
mode- The mode of this component.Default:
"default".- Returns:
- A modified copy of the
thisobject
-
withMode
default IToolbarbutton withMode(IToolbarbutton.Mode mode)
Returns a copy ofthisimmutable component with the specifiedmode.Sets the mode to
"default"and"toggle"- Parameters:
mode- The mode of this component.Default:
"default".- Returns:
- A modified copy of the
thisobject
-
isChecked
default boolean isChecked()
Returns whether it is checked.Default:
false.
-
withChecked
IToolbarbutton withChecked(boolean checked)
Returns a copy ofthisimmutable component with the specifiedchecked.Sets whether it is checked.
- Parameters:
checked- Whether it is checked.Default:
false.- Returns:
- A modified copy of the
thisobject
-
of
static IToolbarbutton of(java.lang.String label)
Returns the instance with the given label.- Parameters:
label- The label that the component
-
of
static IToolbarbutton of(java.lang.String label, java.lang.String image)
Returns the instance with the given label and image.- Parameters:
label- The label that the button holds.image- The image that the button holds.
-
ofImage
static IToolbarbutton ofImage(java.lang.String image)
Returns the instance with the given image.- Parameters:
image- The image that the button holds.
-
ofMode
static IToolbarbutton ofMode(IToolbarbutton.Mode mode)
Returns the instance with the given mode.- Parameters:
mode- The button mode
-
ofOrient
static IToolbarbutton ofOrient(IButtonBase.Orient orient)
Returns the instance with the given orient.- Parameters:
orient- The button orient
-
ofDir
static IToolbarbutton ofDir(IButtonBase.Direction dir)
Returns the instance with the given dir.- Parameters:
dir- The button dir
-
ofId
static IToolbarbutton ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
withId
IToolbarbutton withId(java.lang.String value)
Copy the current immutable object by setting a value for theidattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withAction
IToolbarbutton withAction(@Nullable ActionHandler value)
Copy the current immutable object by setting a value for theactionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for action (can benull)- Returns:
- A modified copy of the
thisobject
-
withActions
IToolbarbutton withActions(ActionHandler... elements)
Copy the current immutable object with elements that replace the content ofactions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withActions
IToolbarbutton withActions(java.lang.Iterable<? extends ActionHandler> elements)
Copy the current immutable object with elements that replace the content ofactions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of actions elements to set- Returns:
- A modified copy of
thisobject
-
withVisible
IToolbarbutton withVisible(boolean value)
Copy the current immutable object by setting a value for thevisibleattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for visible- Returns:
- A modified copy of the
thisobject
-
withMold
IToolbarbutton withMold(java.lang.String value)
Copy the current immutable object by setting a value for themoldattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mold- Returns:
- A modified copy of the
thisobject
-
withEventListenerMap
IToolbarbutton withEventListenerMap(@Nullable org.zkoss.zk.ui.sys.EventListenerMap value)
Copy the current immutable object by setting a value for theeventListenerMapattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for eventListenerMap (can benull)- Returns:
- A modified copy of the
thisobject
-
withWidgetListeners
IToolbarbutton withWidgetListeners(java.util.Map<java.lang.String,? extends java.lang.String> entries)
Copy the current immutable object by replacing thewidgetListenersmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the widgetListeners map- Returns:
- A modified copy of
thisobject
-
withWidgetOverrides
IToolbarbutton withWidgetOverrides(java.util.Map<java.lang.String,? extends java.lang.String> entries)
Copy the current immutable object by replacing thewidgetOverridesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the widgetOverrides map- Returns:
- A modified copy of
thisobject
-
withClientAttributes
IToolbarbutton withClientAttributes(java.util.Map<java.lang.String,? extends java.lang.String> entries)
Copy the current immutable object by replacing theclientAttributesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the clientAttributes map- Returns:
- A modified copy of
thisobject
-
withLeft
IToolbarbutton withLeft(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for theleftattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for left (can benull)- Returns:
- A modified copy of the
thisobject
-
withTop
IToolbarbutton withTop(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thetopattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for top (can benull)- Returns:
- A modified copy of the
thisobject
-
withZIndex
IToolbarbutton withZIndex(int value)
Copy the current immutable object by setting a value for thezIndexattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for zIndex- Returns:
- A modified copy of the
thisobject
-
withHeight
IToolbarbutton withHeight(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for theheightattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for height (can benull)- Returns:
- A modified copy of the
thisobject
-
withWidth
IToolbarbutton withWidth(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thewidthattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for width (can benull)- Returns:
- A modified copy of the
thisobject
-
withTooltiptext
IToolbarbutton withTooltiptext(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thetooltiptextattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tooltiptext (can benull)- Returns:
- A modified copy of the
thisobject
-
withZclass
IToolbarbutton withZclass(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thezclassattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for zclass (can benull)- Returns:
- A modified copy of the
thisobject
-
withSclass
IToolbarbutton withSclass(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thesclassattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sclass (can benull)- Returns:
- A modified copy of the
thisobject
-
withStyle
IToolbarbutton withStyle(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thestyleattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for style (can benull)- Returns:
- A modified copy of the
thisobject
-
withDraggable
IToolbarbutton withDraggable(java.lang.String value)
Copy the current immutable object by setting a value for thedraggableattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for draggable- Returns:
- A modified copy of the
thisobject
-
withFocus
IToolbarbutton withFocus(boolean value)
Copy the current immutable object by setting a value for thefocusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for focus- Returns:
- A modified copy of the
thisobject
-
withDroppable
IToolbarbutton withDroppable(java.lang.String value)
Copy the current immutable object by setting a value for thedroppableattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for droppable- Returns:
- A modified copy of the
thisobject
-
withVflex
IToolbarbutton withVflex(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thevflexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for vflex (can benull)- Returns:
- A modified copy of the
thisobject
-
withHflex
IToolbarbutton withHflex(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thehflexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hflex (can benull)- Returns:
- A modified copy of the
thisobject
-
withRenderdefer
IToolbarbutton withRenderdefer(int value)
Copy the current immutable object by setting a value for therenderdeferattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for renderdefer- Returns:
- A modified copy of the
thisobject
-
withClientAction
IToolbarbutton withClientAction(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for theclientActionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for clientAction (can benull)- Returns:
- A modified copy of the
thisobject
-
withTabindex
IToolbarbutton withTabindex(@Nullable java.lang.Integer value)
Copy the current immutable object by setting a value for thetabindexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tabindex (can benull)- Returns:
- A modified copy of the
thisobject
-
withCtrlKeys
IToolbarbutton withCtrlKeys(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thectrlKeysattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ctrlKeys (can benull)- Returns:
- A modified copy of the
thisobject
-
withContext
IToolbarbutton withContext(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thecontextattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for context (can benull)- Returns:
- A modified copy of the
thisobject
-
withPopup
IToolbarbutton withPopup(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thepopupattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for popup (can benull)- Returns:
- A modified copy of the
thisobject
-
withTooltip
IToolbarbutton withTooltip(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thetooltipattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tooltip (can benull)- Returns:
- A modified copy of the
thisobject
-
withLabel
IToolbarbutton withLabel(java.lang.String value)
Copy the current immutable object by setting a value for thelabelattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for label- Returns:
- A modified copy of the
thisobject
-
withIconSclass
IToolbarbutton withIconSclass(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for theiconSclassattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for iconSclass (can benull)- Returns:
- A modified copy of the
thisobject
-
withIconSclasses
IToolbarbutton withIconSclasses(java.lang.String... elements)
Copy the current immutable object with elements that replace the content oficonSclasses. The array is cloned before being saved as attribute values.- Parameters:
elements- The non-null elements for iconSclasses- Returns:
- A modified copy of
thisobject
-
withIconTooltip
IToolbarbutton withIconTooltip(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for theiconTooltipattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for iconTooltip (can benull)- Returns:
- A modified copy of the
thisobject
-
withIconTooltips
IToolbarbutton withIconTooltips(java.lang.String... elements)
Copy the current immutable object with elements that replace the content oficonTooltips. The array is cloned before being saved as attribute values.- Parameters:
elements- The non-null elements for iconTooltips- Returns:
- A modified copy of
thisobject
-
withImage
IToolbarbutton withImage(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for theimageattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for image (can benull)- Returns:
- A modified copy of the
thisobject
-
withHoverImage
IToolbarbutton withHoverImage(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thehoverImageattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hoverImage (can benull)- Returns:
- A modified copy of the
thisobject
-
withPreloadImage
IToolbarbutton withPreloadImage(boolean value)
Copy the current immutable object by setting a value for thepreloadImageattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for preloadImage- Returns:
- A modified copy of the
thisobject
-
withDir
IToolbarbutton withDir(java.lang.String value)
Copy the current immutable object by setting a value for thedirattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dir- Returns:
- A modified copy of the
thisobject
-
withOrient
IToolbarbutton withOrient(java.lang.String value)
Copy the current immutable object by setting a value for theorientattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for orient- Returns:
- A modified copy of the
thisobject
-
withType
IToolbarbutton withType(java.lang.String value)
Copy the current immutable object by setting a value for thetypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withDisabled
IToolbarbutton withDisabled(boolean value)
Copy the current immutable object by setting a value for thedisabledattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for disabled- Returns:
- A modified copy of the
thisobject
-
withAutodisable
IToolbarbutton withAutodisable(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for theautodisableattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for autodisable (can benull)- Returns:
- A modified copy of the
thisobject
-
withTarget
IToolbarbutton withTarget(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thetargetattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for target (can benull)- Returns:
- A modified copy of the
thisobject
-
withUpload
IToolbarbutton withUpload(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for theuploadattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for upload (can benull)- Returns:
- A modified copy of the
thisobject
-
withHref
IToolbarbutton withHref(@Nullable java.lang.String value)
Copy the current immutable object by setting a value for thehrefattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for href (can benull)- Returns:
- A modified copy of the
thisobject
-
withWidgetClass
IToolbarbutton withWidgetClass(java.lang.String value)
Copy the current immutable object by setting a value for thewidgetClassattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for widgetClass- Returns:
- A modified copy of the
thisobject
-
-