Package org.zkoss.stateless.sul
Interface ITimer
- All Superinterfaces:
IAnyGroup<ITimer>,IComponent<ITimer>,IHtmlBasedComponent<ITimer>
Immutable
Timer component
Fires one or more Event after
a specified delay.
ITimer is a special component that is invisible.
Support @Action
| Name | Action Type |
|---|---|
| onTimer | Denotes the timer you specified has triggered an action. To know which timer. |
- Author:
- katherine
- See Also:
-
Timer
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeITimer.static classBuilds an updater of typeITimerforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault intgetDelay()Returns the delay, the number of milliseconds between successive action events.default StringReturns the client widget class.default booleanReturns whether the timer shall send Event repeatedly.default booleanReturns whether this timer is running.static ITimerofDelay(int delay) Returns the instance with the given delay.static ITimerReturns the instance with the given id.withDelay(int delay) Returns a copy ofthisimmutable component with the specifieddelay.withRepeats(boolean repeats) Returns a copy ofthisimmutable component with the specifiedrepeats.withRunning(boolean running) Returns a copy ofthisimmutable component with the specifiedrunning.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.utl.Timer"- Specified by:
getWidgetClassin interfaceIComponent<ITimer>
-
isRepeats
default boolean isRepeats()Returns whether the timer shall send Event repeatedly.Default:
false. -
withRepeats
Returns a copy ofthisimmutable component with the specifiedrepeats.Sets whether the timer shall send Event repeatedly.
- Parameters:
repeats- Whether the timer shall send Event repeatedly.- Returns:
- A modified copy of
thisobject
-
isRunning
default boolean isRunning()Returns whether this timer is running.Default:
true. -
withRunning
Returns a copy ofthisimmutable component with the specifiedrunning.Sets whether this timer is running.
- Parameters:
running- Whether this timer is running.- Returns:
- A modified copy of
thisobject
-
getDelay
default int getDelay()Returns the delay, the number of milliseconds between successive action events.Default:
0(immediately). -
withDelay
Returns a copy ofthisimmutable component with the specifieddelay.Sets the delay, the number of milliseconds between successive action events.
- Parameters:
delay- If negative, 0 is assumed.- Returns:
- A modified copy of
thisobject
-
ofDelay
Returns the instance with the given delay.- Parameters:
delay- If negative, 0 is assumed.
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-