Field Summary |
public
| __percent: Number |
| A number representing the percentage of the task completed.
|
|
public
| background |
|
|
|
public static
| classInfo: Object |
| A static class information object
|
|
public
| curValueFunction: String |
| the name of the function to call when in polling mode to get the current value
|
|
public
| formatString: String |
| Formatting string to apply to the progress label display text
|
|
public
| hideOnComplete: Boolean |
| Controls whether the ProgrssBar and associated label are hidden when the task is completed
|
|
public
| indeterminate: Boolean |
| Controls whether a determinate or indeterminate bar is displayed
|
|
public
| indeterminateMessage: String |
| Message to display for an indeterminate progress bar
|
|
public
| indicatorbarDSkin: String |
| Skin for determinate bar
|
|
public
| indicatorbarISkin: String |
| Skin for indeterminate bar
|
|
public
| interval: Number |
| the polling interval in ms that the source will be polled
|
|
public
| labelControl |
| Pointer to a label control to display progress status
|
|
public
| max: Number |
| The maximum value of the progress bar.
|
|
public
| maxValueFunction: String |
| the name of the function to call when in polling mode to get the maximum value
|
|
public
| min: Number |
| The minimum value of the progress bar. This also indirectly effects when the task is deemed complete.
|
|
public
| reverse: Boolean |
| Controls whether we are running down from full to empty
|
|
public
| stopPollingOnComplete: Boolean |
| should the poller auotmatically stop when it is complete
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
public
| useBarColor: Boolean |
| Controls whether the indicatorBarColor is applied to the progress bar
|
|
public
| useSolidBar: Boolean |
| Use a graphics object or SolidColor bar
|
|
public
| vertical: Boolean |
| Orientation of bar
|
|
| 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
| indicatorbarColor: Object (read, write) |
| Solid Color to apply to the bar if useSolidBar is true
|
|
public
| loader: Object (read, write) |
| The loader object that will be the source for progress events.
|
|
public
| source: Object (read, write) |
| The source object thet will be polled
|
|
public
| value: Number (read, write) |
| Indicates the amount of progress that has been made. The current progress position
|
|
| 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
| ProgressBar (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public
| hide (
) |
| Hides the progress bar and the associated label control
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
public
| onPoll (
): Void |
| Update the progress bar when in polling mode
|
|
public
| progressHandler (
e: Event
) |
| Handles callback from a "loader listener"
|
|
public
| reset (
) |
| Resets the progress bar prior to use
|
|
public
| setBarColor (
v: Number
): Void |
| Applies the indicatorBarColor
|
|
public
| show (
) |
| Shows the progress bar and the associated label control
|
|
public
| start (
) |
| Called to start the indeterminate bar
|
|
public
| stop (
) |
| Called to stop the indeterminate bar
|
|
public
| updateDisplay (
): Void |
| Updates the display to reflect the current progress status
|
|
| 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 |
|
|
The loading process can be determinate or indeterminate.
A determinate progress bar is a linear representation of a task’s progress over time and is used when the extent of the task is known.
An indeterminate progress bar is used when the extent of the task is unknown.
You can add a label to display the progress of the task.
It is important to understand that the ProgressBar plays no part in the loading of content or completion of a task, it simply reacts to ntoifications of the progress of the task and updates its display accordingly.
This makes ProgressBar highly flexible and can be used to monitor the progress of any task not simply content loading.
A ProgressBar can operate in 3 modes.
Event Mode - By setting the loader property it operates in events mode and reacts to callback events
Polled Mode - By setting the source property it operates in polled mode and automatically polls the source to update itself
Manual Mode - If neither loader or source are set then by setting manually the min/max and value properties and calling updateDisplay to update the display