Package io.jmix.flowui.facet
Interface Timer
- All Superinterfaces:
- Facet
- All Known Implementing Classes:
- TimerImpl
Client-side timer component that fires events at fixed intervals.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classEvent fired on timer tick.static classEvent fired on timer stop afterstop()call.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddTimerActionListener(Consumer<Timer.TimerActionEvent> listener) AddsTimer.TimerActionEventlistener.com.vaadin.flow.shared.RegistrationaddTimerStopListener(Consumer<Timer.TimerStopEvent> listener) AddsTimer.TimerStopEventlistener.intgetDelay()booleanbooleanvoidsetAutostart(boolean autostart) Sets whether timer should start automatically when added to a viewvoidsetDelay(int delayMs) voidsetRepeating(boolean repeating) Sets repetitive mode for timer action.voidstart()Starts the timer.voidstop()Stops the timer if it is running.
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Method Details- 
isRepeatingboolean isRepeating()- Returns:
- true if timer action is repetitive
 
- 
setRepeatingvoid setRepeating(boolean repeating) Sets repetitive mode for timer action.- Parameters:
- repeating- repeating flag
 
- 
getDelayint getDelay()- Returns:
- delay in milliseconds.
 
- 
setDelayvoid setDelay(int delayMs) - Parameters:
- delayMs- delay in milliseconds.
 
- 
isAutostartboolean isAutostart()- Returns:
- true if timer starts automatically when added to a view.
 
- 
setAutostartvoid setAutostart(boolean autostart) Sets whether timer should start automatically when added to a view- Parameters:
- autostart- autostart flag
 
- 
startvoid start()Starts the timer. If the timer is already started call will be ignored.
- 
stopvoid stop()Stops the timer if it is running.
- 
addTimerActionListenercom.vaadin.flow.shared.Registration addTimerActionListener(Consumer<Timer.TimerActionEvent> listener) AddsTimer.TimerActionEventlistener.- Parameters:
- listener-- Timer.TimerActionEventlistener
- Returns:
- listener registration
 
- 
addTimerStopListenerAddsTimer.TimerStopEventlistener.- Parameters:
- listener-- Timer.TimerStopEventlistener
- Returns:
- listener registration
 
 
-