Package io.jmix.ui.component.impl
Class TimerImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractFacet
io.jmix.ui.component.impl.TimerImpl
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
Nested classes/interfaces inherited from interface io.jmix.ui.component.Timer
Timer.TimerActionEvent, Timer.TimerStopEvent
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDetachListener
(Frame owner) addTimerActionListener
(Consumer<Timer.TimerActionEvent> listener) AddsTimer.TimerActionEvent
listener.addTimerStopListener
(Consumer<Timer.TimerStopEvent> listener) AddsTimer.TimerStopEvent
listener.protected void
attachTimerToUi
(com.vaadin.ui.Component ownerComponent) protected JmixTimer
protected void
int
getDelay()
boolean
protected void
registerInUI
(Frame owner) protected void
registerOnAttach
(com.vaadin.ui.Component ownerComponent) void
setDelay
(int delay) void
Sets facet ID.void
void
setRepeating
(boolean repeating) Sets repetitive mode for timer action.void
start()
Starts timer.void
stop()
Stops timer if it is running.Methods inherited from class io.jmix.ui.component.impl.AbstractFacet
getEventHub, getId, getOwner, hasSubscriptions, publish, unsubscribe
-
Field Details
-
timerImpl
-
-
Constructor Details
-
TimerImpl
public TimerImpl()
-
-
Method Details
-
createComponent
-
start
public void start()Description copied from interface:Timer
Starts timer. If timer is already started call will be ignored. -
stop
public void stop()Description copied from interface:Timer
Stops timer if it is running. -
isRepeating
public boolean isRepeating()- Specified by:
isRepeating
in interfaceTimer
- Returns:
- true if timer action is repetitive
-
setRepeating
public void setRepeating(boolean repeating) Description copied from interface:Timer
Sets repetitive mode for timer action.- Specified by:
setRepeating
in interfaceTimer
- Parameters:
repeating
- repeating flag
-
getDelay
public int getDelay() -
setDelay
public void setDelay(int delay) -
addTimerActionListener
Description copied from interface:Timer
AddsTimer.TimerActionEvent
listener.- Specified by:
addTimerActionListener
in interfaceTimer
- Parameters:
listener
- listener- Returns:
- subscription
-
addTimerStopListener
Description copied from interface:Timer
AddsTimer.TimerStopEvent
listener.- Specified by:
addTimerStopListener
in interfaceTimer
- Parameters:
listener
- listener- Returns:
- subscription
-
setId
Description copied from interface:Facet
Sets facet ID.- Specified by:
setId
in interfaceFacet
- Overrides:
setId
in classAbstractFacet
- Parameters:
id
- id
-
setOwner
Description copied from interface:Facet
- Specified by:
setOwner
in interfaceFacet
- Overrides:
setOwner
in classAbstractFacet
- Parameters:
owner
- owner frame
-
registerInUI
-
addDetachListener
-
detachTimerExtension
protected void detachTimerExtension() -
registerOnAttach
protected void registerOnAttach(com.vaadin.ui.Component ownerComponent) -
attachTimerToUi
protected void attachTimerToUi(com.vaadin.ui.Component ownerComponent)
-