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.Object
Builds an updater of typeIStyle
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 IStyle.Updater
content(java.lang.String content)
Sets the given value ofcontent
to update to client widgetIStyle.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.IStyle.Updater
media(java.lang.String media)
Sets the given value ofmedia
to update to client widgetIStyle.Updater
mold(java.lang.String mold)
Sets the given value ofmold
to update to client widgetIStyle.Updater
src(java.lang.String src)
Sets the given value ofsrc
to update to client widgetIStyle.Updater
visible(boolean visible)
Sets the given value ofvisible
to update to client widgetIStyle.Updater
widgetClass(java.lang.String widgetClass)
Sets the given value ofwidgetClass
to update to client widget
-
-
-
Method Detail
-
id
public IStyle.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)
-
mold
public IStyle.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 IStyle.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)
-
media
public IStyle.Updater media(java.lang.String media)
Sets the given value ofmedia
to 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 ofcontent
to 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 ofsrc
to 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 ofvisible
to 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: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)
-
-