Package org.zkoss.stateless.sul
Class IStyle.Updater
- java.lang.Object
-
- org.zkoss.stateless.sul.IStyle.Updater
-
- All Implemented Interfaces:
SmartUpdater
- Enclosing interface:
- IStyle
public static class IStyle.Updater extends java.lang.ObjectBuilds an updater of typeIStyleforUiAgent.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 IStyle.Updatercontent(java.lang.String content)Sets the given value ofcontentto update to client widgetIStyle.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.IStyle.Updatermedia(java.lang.String media)Sets the given value ofmediato update to client widgetIStyle.Updatermold(java.lang.String mold)Sets the given value ofmoldto update to client widgetIStyle.Updatersrc(java.lang.String src)Sets the given value ofsrcto update to client widgetIStyle.Updatervisible(boolean visible)Sets the given value ofvisibleto update to client widgetIStyle.UpdaterwidgetClass(java.lang.String widgetClass)Sets the given value ofwidgetClassto update to client widget
-
-
-
Method Detail
-
id
public IStyle.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)
-
mold
public IStyle.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 IStyle.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)
-
media
public IStyle.Updater media(java.lang.String media)
Sets the given value ofmediato update to client widget- Parameters:
media- The new value formedia- See Also:
IStyle.withMedia(java.lang.String)
-
content
public IStyle.Updater content(java.lang.String content)
Sets the given value ofcontentto update to client widget- Parameters:
content- The new value forcontent- See Also:
IStyle.withContent(java.lang.String)
-
src
public IStyle.Updater src(java.lang.String src)
Sets the given value ofsrcto update to client widget- Parameters:
src- The new value forsrc- See Also:
IStyle.withSrc(java.lang.String)
-
visible
public IStyle.Updater visible(boolean visible)
Sets the given value ofvisibleto update to client widget- Parameters:
visible- The new value forvisible- See Also:
IComponent.withVisible(boolean)
-
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)
-
-