@JavaScript(value="holon-vaadin-min.js")
public class ElementPropertyHandler
extends com.vaadin.server.AbstractJavaScriptExtension
Component
.com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Constructor and Description |
---|
ElementPropertyHandler(com.vaadin.ui.AbstractComponent component)
Register this extension on given component
|
Modifier and Type | Method and Description |
---|---|
void |
removeProperty(String name)
Remove an HTML property in the element bound to the extended Component
|
void |
setEventHandler(String eventName,
String js)
Set an event handler with given
eventName in the element bound to the extended Component using given
JavaScript content. |
void |
setProperty(String name,
Object value)
Set a custom HTML property in the element bound to the extended Component
|
addAttachListener, addDetachListener, addListener, addListener, attach, beforeClientResponse, detach, encodeState, equals, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getRpcManager, getStateType, getUI, handleConnectorRequest, hashCode, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public ElementPropertyHandler(com.vaadin.ui.AbstractComponent component)
component
- Component to extendpublic void setProperty(String name, Object value)
name
- Property namevalue
- Property valuepublic void removeProperty(String name)
name
- Property name to removeCopyright © 2018 The Holon Platform. All rights reserved.