An offline status component.
extends goog.ui.Component| Instance Method Summary | |
createDom()Creates the initial DOM representation for the component. | |
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. | |
getInstallDialog() ⇒ ?goog.ui.OfflineInstallDialogGets the install dialog. | |
getMessageInfo(?goog.gears.StatusType status) ⇒ ?ObjectGets the messaging info for the given status. | |
getPopupInternal() ⇒ ?goog.ui.Popup | |
getStatus() ⇒ ?goog.gears.StatusTypeGets the status of the offline component of the app. | |
getStatusCard() ⇒ ?goog.ui.OfflineStatusCardGets the status card. | |
getStatusClassName_(?goog.gears.StatusType status) ⇒ stringGets the CSS className for the given status. | |
handleClick_(?goog.events.BrowserEvent e) ⇒ (boolean|undefined)Handles a click on the component. Opens the applicable install dialog or status card. | |
insertCardElement(?goog.ui.OfflineStatusCard card)Inserts the card into the document body. | |
isStatusDifferent(?goog.gears.StatusType status) ⇒ booleanReturns whether the given status is different from the currently recorded status. | |
performAction()Performs the action as if the component was clicked. | |
performEnableAction()Performs the action to start the flow of enabling the offline feature of the application. | |
performStatusAction(?goog.events.Event= opt_evt, ?Element= opt_element)Performs the action to show the offline status. | |
setInstallDialog(?goog.ui.OfflineInstallDialog dialog)Sets the install dialog. | |
setStatus(?goog.gears.StatusType status)Sets the status of the offline component of the app. | |
setStatusCard(?goog.ui.OfflineStatusCard card)Sets the status card. | |
update()Updates the display of the component. | |