public class WebTimer extends com.haulmont.cuba.web.gui.components.WebAbstractComponent<com.vaadin.ui.Label> implements Timer
Timer.ActionListener, Timer.StopListener, Timer.TimerListener
Component.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.Wrapper
ICON_STYLE, UNIT_SYMBOLS
AUTO_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, unwrapComposition
addListener, addListener, fireEvent, hasListeners, removeListener, removeListener, removeListeners
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getXmlDescriptor, setXmlDescriptor
getFrame, setFrame
addStyleName, 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, unwrapComposition
public void start()
Timer
public void stop()
Timer
public boolean isRepeating()
isRepeating
in interface Timer
public void setRepeating(boolean repeating)
setRepeating
in interface Timer
public int getDelay()
public void setDelay(int delay)
public void addTimerListener(Timer.TimerListener listener)
addTimerListener
in interface Timer
public void removeTimerListener(Timer.TimerListener listener)
removeTimerListener
in interface Timer
public void addActionListener(Timer.ActionListener listener)
addActionListener
in interface Timer
public void removeActionListener(Timer.ActionListener listener)
removeActionListener
in interface Timer
public void addStopListener(Timer.StopListener listener)
addStopListener
in interface Timer
public void removeStopListener(Timer.StopListener listener)
removeStopListener
in interface Timer
public void setId(java.lang.String id)
Component
public com.haulmont.cuba.web.toolkit.ui.CubaTimer getTimerImpl()