public class CubaTimer
extends com.vaadin.server.AbstractExtension
implements com.haulmont.cuba.web.widgets.client.timer.CubaTimerServerRpc
Modifier and Type | Class and Description |
---|---|
static interface |
CubaTimer.ActionListener |
static interface |
CubaTimer.StopListener |
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<CubaTimer.ActionListener> |
actionListeners |
protected java.util.function.Consumer<java.lang.Exception> |
exceptionHandler |
protected java.util.List<CubaTimer.StopListener> |
stopListeners |
Constructor and Description |
---|
CubaTimer() |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(CubaTimer.ActionListener listener) |
void |
addStopListener(CubaTimer.StopListener listener) |
void |
beforeClientResponse(boolean initial) |
void |
extend(com.vaadin.ui.AbstractComponent component) |
int |
getDelay() |
java.util.function.Consumer<java.lang.Exception> |
getExceptionHandler() |
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) |
protected void |
handleOnTimerException(java.lang.RuntimeException e) |
boolean |
isRepeating() |
void |
onTimer() |
void |
removeActionListener(CubaTimer.ActionListener listener) |
void |
removeStopListeners(CubaTimer.StopListener listener) |
void |
setDelay(int delay) |
void |
setExceptionHandler(java.util.function.Consumer<java.lang.Exception> exceptionHandler) |
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, 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, 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 final java.util.List<CubaTimer.ActionListener> actionListeners
protected java.util.List<CubaTimer.StopListener> stopListeners
protected java.util.function.Consumer<java.lang.Exception> exceptionHandler
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 void handleOnTimerException(java.lang.RuntimeException e)
public java.util.function.Consumer<java.lang.Exception> getExceptionHandler()
public void setExceptionHandler(java.util.function.Consumer<java.lang.Exception> exceptionHandler)
public 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(CubaTimer.ActionListener listener)
public void removeActionListener(CubaTimer.ActionListener listener)
public void addStopListener(CubaTimer.StopListener listener)
public void removeStopListeners(CubaTimer.StopListener listener)