Home

# Class goog.ui.ProgressBar

This creates a progress bar object.

extends goog.ui.Component

Instance Method Summary
| `attachEvents_()` Adds the initial event listeners to the element.
| `createDom()` Creates the DOM nodes needed for the progress bar
| `createThumb_() ⇒ ?HTMLDivElement` This creates the thumb element.
| `decorateInternal(?HTMLElement element)` Decorates an existing HTML DIV element as a progress bar input. If the element contains a child with a class name of 'progress-bar-thumb' that will be used as the thumb.
| `detachEvents_()` Removes the event listeners added by attachEvents_.
| `disposeInternal()` Disposes of the component. Calls {@code exitDocument}, which is expected to remove event handlers and clean up the component. Propagates the call to the component's children, if any. Removes the component's DOM from the document unless it was decorated.
| `enterDocument()` Called when the DOM for the component is for sure in the document.
| `exitDocument()` Called when the DOM for the component is for sure in the document.
| `getMaximum() ⇒ number`
| `getMinimum() ⇒ number`
| `getOrientation() ⇒ ?goog.ui.ProgressBar.Orientation`
| `getStep() ⇒ ?number`
| `getValue() ⇒ number`
| `handleChange_(?goog.events.Event e)` Call back when the internal range model changes
| `initializeUi_()` This is called when we need to setup the UI sizes and positions. This happens when we create the element and when we change the orientation.
| `setMaximum(number v)` Sets the maximum number
| `setMaximumState_()` Sets the state for a11y of the maximum valiue.
| `setMinimum(number v)` Sets the minimum number
| `setMinimumState_()` Sets the state for a11y of the minimum value.
| `setOrientation(?goog.ui.ProgressBar.Orientation orient)` Changes the orientation
| `setStep(?number step)` Sets the step value. The step value is used to determine how to round the value.
| `setValue(number v)` Sets the value
| `setValueState_()` Sets the state for a11y of the current value.
| `updateUi_()` This is called when we need to update the size of the thumb. This happens when first created as well as when the value and the orientation changes.