public class CubaTimer
extends com.vaadin.server.AbstractExtension
implements com.haulmont.cuba.web.widgets.client.timer.CubaTimerServerRpc
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
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<java.util.function.Consumer<CubaTimer>> |
actionListeners |
protected java.util.List<java.util.function.Consumer<CubaTimer>> |
stopListeners |
Constructor and Description |
---|
CubaTimer() |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.util.function.Consumer<CubaTimer> listener) |
void |
addStopListener(java.util.function.Consumer<CubaTimer> listener) |
void |
beforeClientResponse(boolean initial) |
void |
extend(com.vaadin.ui.AbstractComponent component) |
int |
getDelay() |
protected java.lang.String |
getLoggingTimerId() |
com.haulmont.cuba.web.widgets.client.timer.CubaTimerState |
getState() |
protected com.haulmont.cuba.web.widgets.client.timer.CubaTimerState |
getState(boolean markAsDirty) |
boolean |
isRepeating() |
void |
onTimer() |
void |
removeActionListener(java.util.function.Consumer<CubaTimer> listener) |
void |
removeStopListeners(java.util.function.Consumer<CubaTimer> listener) |
void |
setDelay(int delay) |
void |
setRepeating(boolean repeating) |
void |
setTimerId(java.lang.String id) |
void |
start() |
void |
stop() |
extend, getParent, getSupportedParentType, remove, setParent
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, attach, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, attach, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected java.util.List<java.util.function.Consumer<CubaTimer>> actionListeners
protected java.util.List<java.util.function.Consumer<CubaTimer>> stopListeners
public void extend(com.vaadin.ui.AbstractComponent component)
public com.haulmont.cuba.web.widgets.client.timer.CubaTimerState getState()
getState
in class com.vaadin.server.AbstractClientConnector
protected com.haulmont.cuba.web.widgets.client.timer.CubaTimerState getState(boolean markAsDirty)
getState
in class com.vaadin.server.AbstractClientConnector
public void setRepeating(boolean repeating)
public boolean isRepeating()
public int getDelay()
public void setDelay(int delay)
public void start()
public void stop()
public void onTimer()
onTimer
in interface com.haulmont.cuba.web.widgets.client.timer.CubaTimerServerRpc
protected java.lang.String getLoggingTimerId()
public void beforeClientResponse(boolean initial)
beforeClientResponse
in interface com.vaadin.server.ClientConnector
beforeClientResponse
in class com.vaadin.server.AbstractClientConnector
public void setTimerId(java.lang.String id)
public void addActionListener(java.util.function.Consumer<CubaTimer> listener)
public void removeActionListener(java.util.function.Consumer<CubaTimer> listener)
public void addStopListener(java.util.function.Consumer<CubaTimer> listener)
public void removeStopListeners(java.util.function.Consumer<CubaTimer> listener)