public final class JavascriptCellEncoder extends ActiveComponentEncoder
ActiveComponentEncoder.CreateBy| Constructor and Description |
|---|
JavascriptCellEncoder(String js, Set<String> supportedAttributes)
When the javascript is executed the following context is available clientId: The clientId of the component to be updated propertyName: The name of the property on that component to be updated propertyValue: The new value of that property
|
| Modifier and Type | Method and Description |
|---|---|
ActiveComponentEncoder.CreateBy |
encodeCreation(ActiveUpdateContext activeContext, Appendable outputScript) |
void |
encodeUpdate(ActiveUpdateContext updateContext, Appendable outputScript)
Encodes client script for a component to handle the active message on client side
|
String |
getClientConstructor() |
Set<ActiveComponentEncoder.CreateBy> |
getSupportedCreationStrategies() |
public JavascriptCellEncoder(String js, Set<String> supportedAttributes)
public void encodeUpdate(ActiveUpdateContext updateContext, Appendable outputScript) throws IOException
ActiveComponentEncoderencodeUpdate in class ActiveComponentEncoderupdateContext - client encoder of the componentIOExceptionpublic Set<ActiveComponentEncoder.CreateBy> getSupportedCreationStrategies()
getSupportedCreationStrategies in class ActiveComponentEncoderpublic ActiveComponentEncoder.CreateBy encodeCreation(ActiveUpdateContext activeContext, Appendable outputScript) throws IOException
encodeCreation in class ActiveComponentEncoderIOExceptionpublic String getClientConstructor()
getClientConstructor in class ActiveComponentEncoder