Field Summary |
public
| autoStart: Boolean |
| should timer auto start when loaded/reset
|
|
public
| autoStop: Boolean |
| should timer auto stop when expire date/tiem is reached
|
|
public static
| classInfo: Object |
| A static class information object
|
|
public
| direction: String |
| direction to count in up or down
|
|
public
| displayPattern: String |
| direction to count in up or down
|
|
public
| expireDate: String |
| end date in yyyy-mm-dd format
|
|
public
| expireTime: String |
| end time in hh-mi-ss format
|
|
public
| startDate: String |
| start date in yyyy-mm-dd format
|
|
public
| startTime: String |
| start time in hh-mi-ss format
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
public
| tz: Number |
| timezone offset
|
|
| Fields inherited from class xp.system.UIControl__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment |
|
Property Summary |
public
| expired: Boolean (read-only)
|
| has the end time been reached
|
|
public
| started: Boolean (read-only)
|
| has the end time been reached
|
|
| Properties inherited from class xp.system.UIControlalpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y |
|
Constructor |
public
| Timer (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| countdown (
) |
| Updates the display one time to reflect its current state
|
|
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
public
| reset (
) |
| reset the timer
|
|
public
| start (
) |
| Starts updating the display
|
|
public
| stop (
) |
| Stops updating the display
|
|
| Methods inherited from class xp.system.UIControladdBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate |
|
|