Package io.jmix.flowui.facet.impl
Class TimerImpl
java.lang.Object
io.jmix.flowui.facet.impl.AbstractFacet
io.jmix.flowui.facet.impl.TimerImpl
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classprotected classNested classes/interfaces inherited from interface io.jmix.flowui.facet.TimerTimer.TimerActionEvent, Timer.TimerStopEvent
- 
Field SummaryFieldsFields inherited from class io.jmix.flowui.facet.impl.AbstractFacetid, owner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddDetachListener(View<?> owner) com.vaadin.flow.shared.RegistrationaddTimerActionListener(Consumer<Timer.TimerActionEvent> listener) AddsTimer.TimerActionEventlistener.com.vaadin.flow.shared.RegistrationaddTimerStopListener(Consumer<Timer.TimerStopEvent> listener) AddsTimer.TimerStopEventlistener.protected voidattachTimer(View<?> owner) protected JmixTimerprotected voiddetachTimer(View<?> owner) intgetDelay()booleanbooleanprotected voidregisterInView(View<?> owner) protected voidregisterOnAttach(View<?> owner) voidsetAutostart(boolean autostart) Sets whether timer should start automatically when added to a viewvoidsetDelay(int delay) voidvoidvoidsetRepeating(boolean repeating) Sets repetitive mode for timer action.voidstart()Starts the timer.voidstop()Stops the timer if it is running.protected voidunregisterInView(View<?> owner) Methods inherited from class io.jmix.flowui.facet.impl.AbstractFacetgetId, getOwner
- 
Field Details- 
timerImpl
 
- 
- 
Constructor Details- 
TimerImplpublic TimerImpl()
 
- 
- 
Method Details- 
createComponent
- 
startpublic void start()Description copied from interface:TimerStarts the timer. If the timer is already started call will be ignored.
- 
stoppublic void stop()Description copied from interface:TimerStops the timer if it is running.
- 
isRepeatingpublic boolean isRepeating()- Specified by:
- isRepeatingin interface- Timer
- Returns:
- true if timer action is repetitive
 
- 
setRepeatingpublic void setRepeating(boolean repeating) Description copied from interface:TimerSets repetitive mode for timer action.- Specified by:
- setRepeatingin interface- Timer
- Parameters:
- repeating- repeating flag
 
- 
getDelaypublic int getDelay()
- 
setDelaypublic void setDelay(int delay) 
- 
isAutostartpublic boolean isAutostart()- Specified by:
- isAutostartin interface- Timer
- Returns:
- true if timer starts automatically when added to a view.
 
- 
setAutostartpublic void setAutostart(boolean autostart) Description copied from interface:TimerSets whether timer should start automatically when added to a view- Specified by:
- setAutostartin interface- Timer
- Parameters:
- autostart- autostart flag
 
- 
addTimerActionListenerpublic com.vaadin.flow.shared.Registration addTimerActionListener(Consumer<Timer.TimerActionEvent> listener) Description copied from interface:TimerAddsTimer.TimerActionEventlistener.- Specified by:
- addTimerActionListenerin interface- Timer
- Parameters:
- listener-- Timer.TimerActionEventlistener
- Returns:
- listener registration
 
- 
addTimerStopListenerpublic com.vaadin.flow.shared.Registration addTimerStopListener(Consumer<Timer.TimerStopEvent> listener) Description copied from interface:TimerAddsTimer.TimerStopEventlistener.- Specified by:
- addTimerStopListenerin interface- Timer
- Parameters:
- listener-- Timer.TimerStopEventlistener
- Returns:
- listener registration
 
- 
setId- Specified by:
- setIdin interface- Facet
- Overrides:
- setIdin class- AbstractFacet
 
- 
setOwner- Specified by:
- setOwnerin interface- Facet
- Overrides:
- setOwnerin class- AbstractFacet
 
- 
registerInView
- 
attachTimer
- 
registerOnAttach
- 
addDetachListener
- 
detachTimer
- 
unregisterInView
 
-