Package org.zkoss.stateless.sul
Class IScript.Updater
- java.lang.Object
-
- org.zkoss.stateless.sul.IScript.Updater
-
- All Implemented Interfaces:
SmartUpdater
- Enclosing interface:
- IScript
public static class IScript.Updater extends java.lang.Object
Builds an updater of typeIScript
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 IScript.Updater
charset(java.lang.String charset)
Sets the given value ofcharset
to update to client widgetIScript.Updater
content(java.lang.String content)
Sets the given value ofcontent
to update to client widgetIScript.Updater
defer(boolean defer)
Sets the given value ofdefer
to update to client widgetIScript.Updater
id(java.lang.String id)
Sets the given value ofid
to update to client widgetjava.util.Map<java.lang.String,java.lang.Object>
marshal()
Serializes the keys and values of the updater.IScript.Updater
mold(java.lang.String mold)
Sets the given value ofmold
to update to client widgetIScript.Updater
packages(java.lang.String packages)
Sets the given value ofpackages
to update to client widgetIScript.Updater
src(java.lang.String src)
Sets the given value ofsrc
to update to client widgetIScript.Updater
visible(boolean visible)
Sets the given value ofvisible
to update to client widgetIScript.Updater
widgetClass(java.lang.String widgetClass)
Sets the given value ofwidgetClass
to update to client widget
-
-
-
Method Detail
-
id
public IScript.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 IScript.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 IScript.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)
-
widgetClass
public IScript.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)
-
charset
public IScript.Updater charset(java.lang.String charset)
Sets the given value ofcharset
to update to client widget- Parameters:
charset
- The new value forcharset
- See Also:
IScript.withCharset(java.lang.String)
-
src
public IScript.Updater src(java.lang.String src)
Sets the given value ofsrc
to update to client widget- Parameters:
src
- The new value forsrc
- See Also:
IScript.withSrc(java.lang.String)
-
defer
public IScript.Updater defer(boolean defer)
Sets the given value ofdefer
to update to client widget- Parameters:
defer
- The new value fordefer
- See Also:
IScript.withDefer(boolean)
-
content
public IScript.Updater content(java.lang.String content)
Sets the given value ofcontent
to update to client widget- Parameters:
content
- The new value forcontent
- See Also:
IScript.withContent(java.lang.String)
-
packages
public IScript.Updater packages(java.lang.String packages)
Sets the given value ofpackages
to update to client widget- Parameters:
packages
- The new value forpackages
- See Also:
IScript.withPackages(java.lang.String)
-
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)
-
-