public class CubaJavaScriptComponent
extends com.vaadin.ui.AbstractJavaScriptComponent
implements com.vaadin.ui.HasDependencies
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.HasDependencies.ClientDependency
com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickEvent, com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
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
Modifier and Type | Field and Description |
---|---|
protected java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> |
dependencies |
protected boolean |
dirty |
protected com.google.gson.Gson |
gson |
protected static com.google.gson.Gson |
sharedGson |
protected java.lang.Object |
stateData |
Constructor and Description |
---|
CubaJavaScriptComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addDependencies(java.lang.String... dependencies) |
void |
addDependency(java.lang.String path,
com.vaadin.ui.Dependency.Type type) |
void |
addFunction(java.lang.String functionName,
com.vaadin.ui.JavaScriptFunction function) |
void |
beforeClientResponse(boolean initial) |
void |
callFunction(java.lang.String name,
java.lang.Object... arguments) |
protected static com.google.gson.GsonBuilder |
createSharedGsonBuilder() |
void |
forceStateChange() |
java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> |
getDependencies() |
java.lang.String |
getInitFunctionName() |
protected com.haulmont.cuba.web.widgets.client.javascriptcomponent.CubaJavaScriptComponentState |
getState() |
protected com.haulmont.cuba.web.widgets.client.javascriptcomponent.CubaJavaScriptComponentState |
getState(boolean markAsDirty) |
java.lang.Object |
getStateData() |
com.google.gson.Gson |
getStateSerializer() |
boolean |
isRequiredIndicatorVisible() |
protected static void |
setDefaultProperties(com.google.gson.GsonBuilder builder) |
void |
setDependencies(java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> dependencies) |
void |
setInitFunctionName(java.lang.String initFunctionName) |
void |
setRequiredIndicatorVisible(boolean visible) |
void |
setStateData(java.lang.Object data) |
void |
setStateSerializer(com.google.gson.Gson serializer) |
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, focus, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addStyleNames, getUI, removeStyleNames, setStyleName
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected static final com.google.gson.Gson sharedGson
protected java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> dependencies
protected java.lang.Object stateData
protected com.google.gson.Gson gson
protected boolean dirty
protected static com.google.gson.GsonBuilder createSharedGsonBuilder()
protected static void setDefaultProperties(com.google.gson.GsonBuilder builder)
protected com.haulmont.cuba.web.widgets.client.javascriptcomponent.CubaJavaScriptComponentState getState()
getState
in class com.vaadin.ui.AbstractJavaScriptComponent
protected com.haulmont.cuba.web.widgets.client.javascriptcomponent.CubaJavaScriptComponentState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.AbstractJavaScriptComponent
public java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> getDependencies()
getDependencies
in interface com.vaadin.ui.HasDependencies
public void setDependencies(java.util.List<com.vaadin.ui.HasDependencies.ClientDependency> dependencies)
public void addDependency(java.lang.String path, com.vaadin.ui.Dependency.Type type)
public void addDependencies(java.lang.String... dependencies)
public java.lang.String getInitFunctionName()
public void setInitFunctionName(java.lang.String initFunctionName)
public java.lang.Object getStateData()
public void setStateData(java.lang.Object data)
public void addFunction(java.lang.String functionName, com.vaadin.ui.JavaScriptFunction function)
addFunction
in class com.vaadin.ui.AbstractJavaScriptComponent
public void callFunction(java.lang.String name, java.lang.Object... arguments)
callFunction
in class com.vaadin.ui.AbstractJavaScriptComponent
public boolean isRequiredIndicatorVisible()
isRequiredIndicatorVisible
in class com.vaadin.ui.AbstractComponent
public void setRequiredIndicatorVisible(boolean visible)
setRequiredIndicatorVisible
in class com.vaadin.ui.AbstractComponent
public void beforeClientResponse(boolean initial)
beforeClientResponse
in interface com.vaadin.server.ClientConnector
beforeClientResponse
in class com.vaadin.ui.AbstractComponent
public com.google.gson.Gson getStateSerializer()
public void setStateSerializer(com.google.gson.Gson serializer)
public void forceStateChange()