Package org.zkoss.stateless.sul
Class IMenuitem.Updater
- java.lang.Object
-
- org.zkoss.stateless.sul.IMenuitem.Updater
-
- All Implemented Interfaces:
SmartUpdater
- Enclosing interface:
- IMenuitem
public static class IMenuitem.Updater extends java.lang.Object
Builds an updater of typeIMenuitem
forUiAgent.smartUpdate(Locator, SmartUpdater)
.Updater
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.- See Also:
SmartUpdater
-
-
Constructor Summary
Constructors Constructor Description Updater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMenuitem.Updater
autocheck(boolean autocheck)
Sets the given value ofautocheck
to update to client widgetIMenuitem.Updater
autodisable(java.lang.String autodisable)
Sets the given value ofautodisable
to update to client widgetIMenuitem.Updater
checked(boolean checked)
Sets the given value ofchecked
to update to client widgetIMenuitem.Updater
checkmark(boolean checkmark)
Sets the given value ofcheckmark
to update to client widgetIMenuitem.Updater
clientAction(java.lang.String clientAction)
Sets the given value ofclientAction
to update to client widgetIMenuitem.Updater
context(java.lang.String context)
Sets the given value ofcontext
to update to client widgetIMenuitem.Updater
ctrlKeys(java.lang.String ctrlKeys)
Sets the given value ofctrlKeys
to update to client widgetIMenuitem.Updater
disabled(boolean disabled)
Sets the given value ofdisabled
to update to client widgetIMenuitem.Updater
draggable(java.lang.String draggable)
Sets the given value ofdraggable
to update to client widgetIMenuitem.Updater
droppable(java.lang.String droppable)
Sets the given value ofdroppable
to update to client widgetIMenuitem.Updater
focus(boolean focus)
Sets the given value offocus
to update to client widgetIMenuitem.Updater
height(java.lang.String height)
Sets the given value ofheight
to update to client widgetIMenuitem.Updater
hflex(java.lang.String hflex)
Sets the given value ofhflex
to update to client widgetIMenuitem.Updater
hoverImage(java.lang.String hoverImage)
Sets the given value ofhoverImage
to update to client widgetIMenuitem.Updater
href(java.lang.String href)
Sets the given value ofhref
to update to client widgetIMenuitem.Updater
iconSclass(java.lang.String iconSclass)
Sets the given value oficonSclass
to update to client widgetIMenuitem.Updater
iconSclasses(java.lang.String[] iconSclasses)
Sets the given value oficonSclasses
to update to client widgetIMenuitem.Updater
iconTooltip(java.lang.String iconTooltip)
Sets the given value oficonTooltip
to update to client widgetIMenuitem.Updater
iconTooltips(java.lang.String[] iconTooltips)
Sets the given value oficonTooltips
to update to client widgetIMenuitem.Updater
id(java.lang.String id)
Sets the given value ofid
to update to client widgetIMenuitem.Updater
image(java.lang.String image)
Sets the given value ofimage
to update to client widgetIMenuitem.Updater
label(java.lang.String label)
Sets the given value oflabel
to update to client widgetIMenuitem.Updater
left(java.lang.String left)
Sets the given value ofleft
to update to client widgetjava.util.Map<java.lang.String,java.lang.Object>
marshal()
Serializes the keys and values of the updater.IMenuitem.Updater
mold(java.lang.String mold)
Sets the given value ofmold
to update to client widgetIMenuitem.Updater
popup(java.lang.String popup)
Sets the given value ofpopup
to update to client widgetIMenuitem.Updater
preloadImage(boolean preloadImage)
Sets the given value ofpreloadImage
to update to client widgetIMenuitem.Updater
renderdefer(int renderdefer)
Sets the given value ofrenderdefer
to update to client widgetIMenuitem.Updater
sclass(java.lang.String sclass)
Sets the given value ofsclass
to update to client widgetIMenuitem.Updater
style(java.lang.String style)
Sets the given value ofstyle
to update to client widgetIMenuitem.Updater
tabindex(java.lang.Integer tabindex)
Sets the given value oftabindex
to update to client widgetIMenuitem.Updater
target(java.lang.String target)
Sets the given value oftarget
to update to client widgetIMenuitem.Updater
tooltip(java.lang.String tooltip)
Sets the given value oftooltip
to update to client widgetIMenuitem.Updater
tooltiptext(java.lang.String tooltiptext)
Sets the given value oftooltiptext
to update to client widgetIMenuitem.Updater
top(java.lang.String top)
Sets the given value oftop
to update to client widgetIMenuitem.Updater
upload(java.lang.String upload)
Sets the given value ofupload
to update to client widgetIMenuitem.Updater
vflex(java.lang.String vflex)
Sets the given value ofvflex
to update to client widgetIMenuitem.Updater
visible(boolean visible)
Sets the given value ofvisible
to update to client widgetIMenuitem.Updater
widgetClass(java.lang.String widgetClass)
Sets the given value ofwidgetClass
to update to client widgetIMenuitem.Updater
width(java.lang.String width)
Sets the given value ofwidth
to update to client widgetIMenuitem.Updater
zclass(java.lang.String zclass)
Sets the given value ofzclass
to update to client widgetIMenuitem.Updater
zIndex(int zIndex)
Sets the given value ofzIndex
to update to client widget
-
-
-
Method Detail
-
id
public IMenuitem.Updater id(java.lang.String id)
Sets the given value ofid
to update to client widget- Parameters:
id
- The new value forid
- See Also:
IComponent.withId(java.lang.String)
-
visible
public IMenuitem.Updater visible(boolean visible)
Sets the given value ofvisible
to update to client widget- Parameters:
visible
- The new value forvisible
- See Also:
IComponent.withVisible(boolean)
-
mold
public IMenuitem.Updater mold(java.lang.String mold)
Sets the given value ofmold
to update to client widget- Parameters:
mold
- The new value formold
- See Also:
IComponent.withMold(java.lang.String)
-
left
public IMenuitem.Updater left(java.lang.String left)
Sets the given value ofleft
to update to client widget- Parameters:
left
- The new value forleft
- See Also:
IHtmlBasedComponent.withLeft(java.lang.String)
-
top
public IMenuitem.Updater top(java.lang.String top)
Sets the given value oftop
to update to client widget- Parameters:
top
- The new value fortop
- See Also:
IHtmlBasedComponent.withTop(java.lang.String)
-
zIndex
public IMenuitem.Updater zIndex(int zIndex)
Sets the given value ofzIndex
to update to client widget- Parameters:
zIndex
- The new value forzIndex
- See Also:
IHtmlBasedComponent.withZIndex(int)
-
height
public IMenuitem.Updater height(java.lang.String height)
Sets the given value ofheight
to update to client widget- Parameters:
height
- The new value forheight
- See Also:
IHtmlBasedComponent.withHeight(java.lang.String)
-
width
public IMenuitem.Updater width(java.lang.String width)
Sets the given value ofwidth
to update to client widget- Parameters:
width
- The new value forwidth
- See Also:
IHtmlBasedComponent.withWidth(java.lang.String)
-
tooltiptext
public IMenuitem.Updater tooltiptext(java.lang.String tooltiptext)
Sets the given value oftooltiptext
to update to client widget- Parameters:
tooltiptext
- The new value fortooltiptext
- See Also:
IHtmlBasedComponent.withTooltiptext(java.lang.String)
-
zclass
public IMenuitem.Updater zclass(java.lang.String zclass)
Sets the given value ofzclass
to update to client widget- Parameters:
zclass
- The new value forzclass
- See Also:
IHtmlBasedComponent.withZclass(java.lang.String)
-
sclass
public IMenuitem.Updater sclass(java.lang.String sclass)
Sets the given value ofsclass
to update to client widget- Parameters:
sclass
- The new value forsclass
- See Also:
IHtmlBasedComponent.withSclass(java.lang.String)
-
style
public IMenuitem.Updater style(java.lang.String style)
Sets the given value ofstyle
to update to client widget- Parameters:
style
- The new value forstyle
- See Also:
IHtmlBasedComponent.withStyle(java.lang.String)
-
draggable
public IMenuitem.Updater draggable(java.lang.String draggable)
Sets the given value ofdraggable
to update to client widget- Parameters:
draggable
- The new value fordraggable
- See Also:
IHtmlBasedComponent.withDraggable(java.lang.String)
-
focus
public IMenuitem.Updater focus(boolean focus)
Sets the given value offocus
to update to client widget- Parameters:
focus
- The new value forfocus
- See Also:
IHtmlBasedComponent.withFocus(boolean)
-
droppable
public IMenuitem.Updater droppable(java.lang.String droppable)
Sets the given value ofdroppable
to update to client widget- Parameters:
droppable
- The new value fordroppable
- See Also:
IHtmlBasedComponent.withDroppable(java.lang.String)
-
vflex
public IMenuitem.Updater vflex(java.lang.String vflex)
Sets the given value ofvflex
to update to client widget- Parameters:
vflex
- The new value forvflex
- See Also:
IHtmlBasedComponent.withVflex(java.lang.String)
-
hflex
public IMenuitem.Updater hflex(java.lang.String hflex)
Sets the given value ofhflex
to update to client widget- Parameters:
hflex
- The new value forhflex
- See Also:
IHtmlBasedComponent.withHflex(java.lang.String)
-
renderdefer
public IMenuitem.Updater renderdefer(int renderdefer)
Sets the given value ofrenderdefer
to update to client widget- Parameters:
renderdefer
- The new value forrenderdefer
- See Also:
IHtmlBasedComponent.withRenderdefer(int)
-
clientAction
public IMenuitem.Updater clientAction(java.lang.String clientAction)
Sets the given value ofclientAction
to update to client widget- Parameters:
clientAction
- The new value forclientAction
- See Also:
IHtmlBasedComponent.withClientAction(java.lang.String)
-
tabindex
public IMenuitem.Updater tabindex(java.lang.Integer tabindex)
Sets the given value oftabindex
to update to client widget- Parameters:
tabindex
- The new value fortabindex
- See Also:
IHtmlBasedComponent.withTabindex(java.lang.Integer)
-
ctrlKeys
public IMenuitem.Updater ctrlKeys(java.lang.String ctrlKeys)
Sets the given value ofctrlKeys
to update to client widget- Parameters:
ctrlKeys
- The new value forctrlKeys
- See Also:
IXulElement.withCtrlKeys(java.lang.String)
-
context
public IMenuitem.Updater context(java.lang.String context)
Sets the given value ofcontext
to update to client widget- Parameters:
context
- The new value forcontext
- See Also:
IXulElement.withContext(java.lang.String)
-
popup
public IMenuitem.Updater popup(java.lang.String popup)
Sets the given value ofpopup
to update to client widget- Parameters:
popup
- The new value forpopup
- See Also:
IXulElement.withPopup(java.lang.String)
-
tooltip
public IMenuitem.Updater tooltip(java.lang.String tooltip)
Sets the given value oftooltip
to update to client widget- Parameters:
tooltip
- The new value fortooltip
- See Also:
IXulElement.withTooltip(java.lang.String)
-
label
public IMenuitem.Updater label(java.lang.String label)
Sets the given value oflabel
to update to client widget- Parameters:
label
- The new value forlabel
- See Also:
ILabelElement.withLabel(java.lang.String)
-
iconSclass
public IMenuitem.Updater iconSclass(java.lang.String iconSclass)
Sets the given value oficonSclass
to update to client widget- Parameters:
iconSclass
- The new value foriconSclass
- See Also:
ILabelImageElement.withIconSclass(java.lang.String)
-
iconSclasses
public IMenuitem.Updater iconSclasses(java.lang.String[] iconSclasses)
Sets the given value oficonSclasses
to update to client widget- Parameters:
iconSclasses
- The new value foriconSclasses
- See Also:
ILabelImageElement.withIconSclasses(java.lang.String[])
-
iconTooltip
public IMenuitem.Updater iconTooltip(java.lang.String iconTooltip)
Sets the given value oficonTooltip
to update to client widget- Parameters:
iconTooltip
- The new value foriconTooltip
- See Also:
ILabelImageElement.withIconTooltip(java.lang.String)
-
iconTooltips
public IMenuitem.Updater iconTooltips(java.lang.String[] iconTooltips)
Sets the given value oficonTooltips
to update to client widget- Parameters:
iconTooltips
- The new value foriconTooltips
- See Also:
ILabelImageElement.withIconTooltips(java.lang.String[])
-
image
public IMenuitem.Updater image(java.lang.String image)
Sets the given value ofimage
to update to client widget- Parameters:
image
- The new value forimage
- See Also:
ILabelImageElement.withImage(java.lang.String)
-
hoverImage
public IMenuitem.Updater hoverImage(java.lang.String hoverImage)
Sets the given value ofhoverImage
to update to client widget- Parameters:
hoverImage
- The new value forhoverImage
- See Also:
ILabelImageElement.withHoverImage(java.lang.String)
-
preloadImage
public IMenuitem.Updater preloadImage(boolean preloadImage)
Sets the given value ofpreloadImage
to update to client widget- Parameters:
preloadImage
- The new value forpreloadImage
- See Also:
ILabelImageElement.withPreloadImage(boolean)
-
disabled
public IMenuitem.Updater disabled(boolean disabled)
Sets the given value ofdisabled
to update to client widget- Parameters:
disabled
- The new value fordisabled
- See Also:
IDisable.withDisabled(boolean)
-
widgetClass
public IMenuitem.Updater widgetClass(java.lang.String widgetClass)
Sets the given value ofwidgetClass
to update to client widget- Parameters:
widgetClass
- The new value forwidgetClass
- See Also:
IComponent.withWidgetClass(java.lang.String)
-
autodisable
public IMenuitem.Updater autodisable(java.lang.String autodisable)
Sets the given value ofautodisable
to update to client widget- Parameters:
autodisable
- The new value forautodisable
- See Also:
IMenuitem.withAutodisable(java.lang.String)
-
href
public IMenuitem.Updater href(java.lang.String href)
Sets the given value ofhref
to update to client widget- Parameters:
href
- The new value forhref
- See Also:
IMenuitem.withHref(java.lang.String)
-
target
public IMenuitem.Updater target(java.lang.String target)
Sets the given value oftarget
to update to client widget- Parameters:
target
- The new value fortarget
- See Also:
IMenuitem.withTarget(java.lang.String)
-
upload
public IMenuitem.Updater upload(java.lang.String upload)
Sets the given value ofupload
to update to client widget- Parameters:
upload
- The new value forupload
- See Also:
IMenuitem.withUpload(java.lang.String)
-
checkmark
public IMenuitem.Updater checkmark(boolean checkmark)
Sets the given value ofcheckmark
to update to client widget- Parameters:
checkmark
- The new value forcheckmark
- See Also:
IMenuitem.withCheckmark(boolean)
-
checked
public IMenuitem.Updater checked(boolean checked)
Sets the given value ofchecked
to update to client widget- Parameters:
checked
- The new value forchecked
- See Also:
IMenuitem.withChecked(boolean)
-
autocheck
public IMenuitem.Updater autocheck(boolean autocheck)
Sets the given value ofautocheck
to update to client widget- Parameters:
autocheck
- The new value forautocheck
- See Also:
IMenuitem.withAutocheck(boolean)
-
marshal
public java.util.Map<java.lang.String,java.lang.Object> marshal()
Description copied from interface:SmartUpdater
Serializes the keys and values of the updater.- Specified by:
marshal
in interfaceSmartUpdater
- Returns:
- A keys and values mapping for
UiAgent.smartUpdate(org.zkoss.stateless.ui.Locator, org.zkoss.stateless.ui.SmartUpdater)
-
-