Class JmixTimer
java.lang.Object
com.vaadin.flow.component.Component
io.jmix.flowui.kit.component.timer.JmixTimer
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,Serializable
@Tag("jmix-timer")
@JsModule("./src/timer/jmix-timer.js")
public class JmixTimer
extends com.vaadin.flow.component.Component
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addActionListener
(com.vaadin.flow.component.ComponentEventListener<JmixTimer.JmixTimerTickEvent> listener) com.vaadin.flow.shared.Registration
addStopListener
(com.vaadin.flow.component.ComponentEventListener<JmixTimer.JmixTimerStopEvent> listener) int
getDelay()
boolean
boolean
void
setAutostart
(boolean autostart) void
setDelay
(int delay) void
setRepeating
(boolean repeating) void
start()
void
stop()
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
DELAY_PROPERTY_NAME
- See Also:
-
REPEATING_PROPERTY_NAME
- See Also:
-
AUTOSTART_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
JmixTimer
public JmixTimer()
-
-
Method Details
-
setRepeating
public void setRepeating(boolean repeating) -
isRepeating
public boolean isRepeating() -
getDelay
public int getDelay() -
setDelay
public void setDelay(int delay) -
setAutostart
public void setAutostart(boolean autostart) -
isAutostart
public boolean isAutostart() -
start
public void start() -
stop
public void stop() -
addActionListener
public com.vaadin.flow.shared.Registration addActionListener(com.vaadin.flow.component.ComponentEventListener<JmixTimer.JmixTimerTickEvent> listener) -
addStopListener
public com.vaadin.flow.shared.Registration addStopListener(com.vaadin.flow.component.ComponentEventListener<JmixTimer.JmixTimerStopEvent> listener)
-