Home

# Class goog.ui.OfflineStatusCard

A offline status card.

extends goog.ui.Component

Instance Method Summary
| `closePopup_()` Sends an event to OfflineStatusComponent to dismiss the popup.
| `configureActionLinks(?goog.gears.StatusType status)` Set the action element to show correct action(s) for a particular status.
| `configureProgressElement(?goog.gears.StatusType status)` Configure the progress bar element.
| `configureStatusElement(?goog.gears.StatusType status)` Set the message to display in the status portion of the card.
| `createActionObject(string actionMessage, string actionEventType) ⇒ ?Object` Creates an action object containing a message for the action and event type to dispatch if the action occurs.
| `createAdditionalDom()` Allows subclasses to initialize additional DOM structures during createDom.
| `createDom()` Creates the initial DOM representation for the component.
| `createLinkNode_(?Object action, string className)` Creates an action link element and styles it.
| `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 component's element is known to be in the document. Anything using document.getElementById etc. should be done at this stage. If the component contains child components, this call is propagated to its children.
| `getActions(?goog.gears.StatusType status) ⇒ ?Array.<(Object|null)>` Gets the action to display for the given status.
| `getAdditionalMessage(?goog.gears.StatusType status) ⇒ string` Gets the additional message to display for the given status.
| `getProgressBar() ⇒ ?goog.ui.ProgressBar` Gets the progress bar.
| `getProgressStatusMessage() ⇒ string` Gets the status message for the progress bar.
| `getStatus() ⇒ ?goog.gears.StatusType` Gets the status of the offline component of the app.
| `getStatusMessage(?goog.gears.StatusType status) ⇒ string` Gets the status message for the given status.
| `handleActionClick_(?goog.events.BrowserEvent e)` Handles a CLICK event on the action element. Dispatches the appropriate action event type.
| `handleProgressChange_(?goog.events.Event e)` Handles a CHANGE event of the progress bar. Updates the status.
| `setStatus(?goog.gears.StatusType status)` Sets the status of the offline component of the app.
| `shouldShowProgressBar(?goog.gears.StatusType status) ⇒ boolean` Returns true if we want to display a progress bar.
| `update()` Updates the display of the component.
| `updateProgressStatus()` Updates the status of the progress bar.