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.ObjectBuilds an updater of typeIScriptforUiAgent.smartUpdate(Locator, SmartUpdater).Updateris 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.Updatercharset(java.lang.String charset)Sets the given value ofcharsetto update to client widgetIScript.Updatercontent(java.lang.String content)Sets the given value ofcontentto update to client widgetIScript.Updaterdefer(boolean defer)Sets the given value ofdeferto update to client widgetIScript.Updaterid(java.lang.String id)Sets the given value ofidto update to client widgetjava.util.Map<java.lang.String,java.lang.Object>marshal()Serializes the keys and values of the updater.IScript.Updatermold(java.lang.String mold)Sets the given value ofmoldto update to client widgetIScript.Updaterpackages(java.lang.String packages)Sets the given value ofpackagesto update to client widgetIScript.Updatersrc(java.lang.String src)Sets the given value ofsrcto update to client widgetIScript.Updatervisible(boolean visible)Sets the given value ofvisibleto update to client widgetIScript.UpdaterwidgetClass(java.lang.String widgetClass)Sets the given value ofwidgetClassto update to client widget
-
-
-
Method Detail
-
id
public IScript.Updater id(java.lang.String id)
Sets the given value ofidto 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 ofvisibleto 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 ofmoldto 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 ofwidgetClassto 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 ofcharsetto 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 ofsrcto 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 ofdeferto 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 ofcontentto 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 ofpackagesto 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:SmartUpdaterSerializes the keys and values of the updater.- Specified by:
marshalin interfaceSmartUpdater- Returns:
- A keys and values mapping for
UiAgent.smartUpdate(org.zkoss.stateless.ui.Locator, org.zkoss.stateless.ui.SmartUpdater)
-
-