public class WebTimer extends com.haulmont.cuba.web.gui.components.WebAbstractComponent<com.vaadin.ui.Label> implements Timer
Timer.ActionListener, Timer.StopListener, Timer.TimerListenerComponent.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.WrapperICON_STYLE, UNIT_SYMBOLSAUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS| Constructor and Description |
|---|
WebTimer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(Timer.ActionListener listener) |
void |
addStopListener(Timer.StopListener listener) |
void |
addTimerListener(Timer.TimerListener listener) |
int |
getDelay() |
com.haulmont.cuba.web.toolkit.ui.CubaTimer |
getTimerImpl() |
boolean |
isRepeating() |
void |
removeActionListener(Timer.ActionListener listener) |
void |
removeStopListener(Timer.StopListener listener) |
void |
removeTimerListener(Timer.TimerListener listener) |
void |
setDelay(int delay) |
void |
setId(java.lang.String id)
Set component ID
|
void |
setRepeating(boolean repeating) |
void |
start()
Starts timer.
|
void |
stop()
Stops timer if it is running.
|
addStyleName, assignAutoDebugId, getAlignment, getCaption, getComponent, getComponentEnabledFlag, getComponentVisibleFlag, getComposition, getDebugId, getDescription, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getWidth, getWidthUnits, getXmlDescriptor, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setDebugId, setDescription, setEnabled, setFrame, setHeight, setIcon, setIconFromSet, setParent, setResponsive, setStyleName, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapCompositionaddListener, addListener, fireEvent, hasListeners, removeListener, removeListener, removeListenersequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetXmlDescriptor, setXmlDescriptorgetFrame, setFrameaddStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapCompositionpublic void start()
Timerpublic void stop()
Timerpublic boolean isRepeating()
isRepeating in interface Timerpublic void setRepeating(boolean repeating)
setRepeating in interface Timerpublic int getDelay()
public void setDelay(int delay)
public void addTimerListener(Timer.TimerListener listener)
addTimerListener in interface Timerpublic void removeTimerListener(Timer.TimerListener listener)
removeTimerListener in interface Timerpublic void addActionListener(Timer.ActionListener listener)
addActionListener in interface Timerpublic void removeActionListener(Timer.ActionListener listener)
removeActionListener in interface Timerpublic void addStopListener(Timer.StopListener listener)
addStopListener in interface Timerpublic void removeStopListener(Timer.StopListener listener)
removeStopListener in interface Timerpublic void setId(java.lang.String id)
Componentpublic com.haulmont.cuba.web.toolkit.ui.CubaTimer getTimerImpl()