Home

# Class goog.ui.OfflineInstallDialog

An offline install dialog.

extends goog.ui.Dialog

Instance Method Summary
| `createDom()` Creates the initial DOM representation for the modal popup. Overrides {@link goog.ui.Component#createDom}.
| `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.
| `getAppUrl() ⇒ string`
| `getCurrentScreen() ⇒ ?goog.ui.OfflineInstallDialogScreen`
| `getCurrentScreenType() ⇒ string`
| `getGearsDownloadPageFriendlyUrl() ⇒ string` This allows you to provide a shorter and more user friendly URL to the Gears download page since the Gears download URL can get quite ugly with all its params.
| `getGearsDownloadPageUrl() ⇒ string`
| `getScreen(string type) ⇒ ?goog.ui.OfflineInstallDialogScreen` Returns the screen object for a given registered type or null if no such type exists. This will create a screen object for a registered type as needed.
| `goToGearsDownloadPage()` Opens a new browser window with the Gears download page and changes the screen to the installing gears page.
| `handleSelect_(?goog.ui.Dialog.Event e)` Handles the SELECT_EVENT for the current dialog. Forward the event to the correct screen object and let the screen decide where to go next.
| `invalidateAndUpdate_()` Marks as dirty and calls update if needed.
| `registerScreen(?goog.ui.OfflineInstallDialogScreen screen)` Registers an instance of a screen to be usable with the dialog.
| `registerScreenType(string type, ?Function constr)` Registers a screen constructor to be usable with the dialog.
| `setAppUrl(string url)` Sets the URL of the appliction to show in the dialog.
| `setCurrentScreenType(string screenType)` Sets the screen type.
| `setGearsDownloadPageFriendlyUrl(string url)` Sets the Gears download page friendly URL.
| `setGearsDownloadPageUrl(string url)` Sets the Gears download page URL.
| `setVisible(boolean visible)` Sets the visibility of the dialog box and moves focus to the default button. Lazily renders the component if needed.
| `update()` Updates the dialog. This will ensure the correct screen is shown.