public class DesktopTimer extends DesktopAbstractComponent<javax.swing.JLabel> implements Timer
Timer.ActionListener, Timer.StopListener, Timer.TimerListener
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
SWING_PROPERTY_CLASS, SWING_PROPERTY_ID
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
DesktopTimer() |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(Timer.ActionListener listener) |
void |
addStopListener(Timer.StopListener listener) |
void |
addTimerListener(Timer.TimerListener listener) |
void |
disposeTimer()
Remove all listeners and stop timer
|
int |
getDelay() |
boolean |
isRepeating() |
void |
removeActionListener(Timer.ActionListener listener) |
void |
removeStopListener(Timer.StopListener listener) |
void |
removeTimerListener(Timer.TimerListener listener) |
void |
setDelay(int delay) |
void |
setRepeating(boolean repeating) |
void |
start()
Starts timer.
|
void |
stop()
Stops timer if it is running.
|
addStyleName, assignAutoDebugId, getAlignment, getCaption, getComponent, getComposition, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getTabIndex, getWidth, getWidthUnits, getXmlDescriptor, isComponentVisible, isEnabled, isEnabledItself, isParentEnabled, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setContainer, setDebugId, setEnabled, setExpanded, setFrame, setHeight, setIcon, setId, setParent, setParentEnabled, setResponsive, setStyleName, setTabIndex, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapComposition
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getXmlDescriptor, setXmlDescriptor
getFrame, setFrame
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
public boolean isRepeating()
isRepeating
in interface Timer
public void setRepeating(boolean repeating)
setRepeating
in interface Timer
public int getDelay()
public void setDelay(int delay)
public void start()
Timer
public void stop()
Timer
public void disposeTimer()
public void addTimerListener(Timer.TimerListener listener)
addTimerListener
in interface Timer
public void removeTimerListener(Timer.TimerListener listener)
removeTimerListener
in interface Timer
public void addActionListener(Timer.ActionListener listener)
addActionListener
in interface Timer
public void removeActionListener(Timer.ActionListener listener)
removeActionListener
in interface Timer
public void addStopListener(Timer.StopListener listener)
addStopListener
in interface Timer
public void removeStopListener(Timer.StopListener listener)
removeStopListener
in interface Timer