public class WebTimer extends com.haulmont.cuba.web.gui.components.WebAbstractComponent<com.vaadin.ui.Label> implements Timer, Component.HasXmlDescriptor
Modifier and Type | Class and Description |
---|---|
protected class |
WebTimer.CubaTimerActionListenerWrapper |
protected class |
WebTimer.CubaTimerStopListenerWrapper |
Timer.ActionListener, Timer.StopListener, Timer.TimerActionEvent, Timer.TimerStopEvent
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
protected CubaTimer |
timerImpl |
alignment, beanLocator, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, icon, ICON_STYLE, id, parent
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
WebTimer() |
Modifier and Type | Method and Description |
---|---|
com.haulmont.bali.events.Subscription |
addTimerActionListener(java.util.function.Consumer<Timer.TimerActionEvent> listener) |
com.haulmont.bali.events.Subscription |
addTimerStopListener(java.util.function.Consumer<Timer.TimerStopEvent> listener) |
int |
getDelay() |
CubaTimer |
getTimerImpl() |
boolean |
isRepeating() |
void |
removeTimerActionListener(java.util.function.Consumer<Timer.TimerActionEvent> listener) |
void |
removeTimerStopListener(java.util.function.Consumer<Timer.TimerStopEvent> 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, assignDebugId, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, setAlignment, setBeanLocator, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setIcon, setIconFromSet, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionListener, addStopListener, removeActionListener, removeStopListener
getFrame, setFrame
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getXmlDescriptor, setXmlDescriptor
protected CubaTimer timerImpl
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 com.haulmont.bali.events.Subscription addTimerActionListener(java.util.function.Consumer<Timer.TimerActionEvent> listener)
addTimerActionListener
in interface Timer
public void removeTimerActionListener(java.util.function.Consumer<Timer.TimerActionEvent> listener)
removeTimerActionListener
in interface Timer
public com.haulmont.bali.events.Subscription addTimerStopListener(java.util.function.Consumer<Timer.TimerStopEvent> listener)
addTimerStopListener
in interface Timer
public void removeTimerStopListener(java.util.function.Consumer<Timer.TimerStopEvent> listener)
removeTimerStopListener
in interface Timer
public void setId(java.lang.String id)
Component
public CubaTimer getTimerImpl()