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
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classNested classes/interfaces inherited from interface io.jmix.ui.component.Timer
Timer.TimerActionEvent, Timer.TimerStopEvent -
Field Summary
FieldsFields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDetachListener(Frame owner) addTimerActionListener(Consumer<Timer.TimerActionEvent> listener) AddsTimer.TimerActionEventlistener.addTimerStopListener(Consumer<Timer.TimerStopEvent> listener) AddsTimer.TimerStopEventlistener.protected voidattachTimerToUi(com.vaadin.ui.Component ownerComponent) protected JmixTimerprotected voidintgetDelay()booleanprotected voidregisterInUI(Frame owner) protected voidregisterOnAttach(com.vaadin.ui.Component ownerComponent) voidsetDelay(int delay) voidSets facet ID.voidvoidsetRepeating(boolean repeating) Sets repetitive mode for timer action.voidstart()Starts timer.voidstop()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:TimerStarts timer. If timer is already started call will be ignored. -
stop
public void stop()Description copied from interface:TimerStops timer if it is running. -
isRepeating
public boolean isRepeating()- Specified by:
isRepeatingin interfaceTimer- Returns:
- true if timer action is repetitive
-
setRepeating
public void setRepeating(boolean repeating) Description copied from interface:TimerSets repetitive mode for timer action.- Specified by:
setRepeatingin interfaceTimer- Parameters:
repeating- repeating flag
-
getDelay
public int getDelay() -
setDelay
public void setDelay(int delay) -
addTimerActionListener
Description copied from interface:TimerAddsTimer.TimerActionEventlistener.- Specified by:
addTimerActionListenerin interfaceTimer- Parameters:
listener- listener- Returns:
- subscription
-
addTimerStopListener
Description copied from interface:TimerAddsTimer.TimerStopEventlistener.- Specified by:
addTimerStopListenerin interfaceTimer- Parameters:
listener- listener- Returns:
- subscription
-
setId
Description copied from interface:FacetSets facet ID.- Specified by:
setIdin interfaceFacet- Overrides:
setIdin classAbstractFacet- Parameters:
id- id
-
setOwner
Description copied from interface:Facet- Specified by:
setOwnerin interfaceFacet- Overrides:
setOwnerin 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)
-