goog.ui.OfflineInstallDialog.UpgradeScreen
Classgoog.ui.OfflineInstallDialog.UpgradeScreen
> goog.ui.OfflineInstallDialog.InstallScreen
> goog.ui.OfflineInstallDialogScreen
> goog.Disposable
goog.ui.OfflineInstallDialog.UpgradeScreen(dialog)
This screen is shown to users that needs to update their version of Gears before they can enabled the current application for offline access.
dialog
{goog.ui.OfflineInstallDialog
}
.TYPE
{string
}The type of this screen.
.activate()
Inherited from goog.ui.OfflineInstallDialogScreen
.
Called when the screen is shown. At this point the dialog is in the document.
.addOnDisposeCallback(callback, opt_scope)
Inherited from goog.Disposable
.
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.
callback
{!Function
}
opt_scope
{Object
=}
.creationStack
{string
}Inherited from goog.Disposable
.
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
.deactivate()
Inherited from goog.ui.OfflineInstallDialogScreen
.
Called when the screen is hidden. At this point the dialog is in the document.
.dispose()
Inherited from goog.Disposable
.
Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.
void
}
.disposeInternal()
[protected]Inherited from goog.Disposable
.
Deletes or nulls out any references to COM objects, DOM nodes, or other disposable objects. Classes that extend {@code goog.Disposable} should override this method. Not reentrant. To avoid calling it twice, it must only be called from the subclass' {@code disposeInternal} method. Everywhere else the public {@code dispose} method must be used. For example:
mypackage.MyClass = function() { goog.base(this); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { goog.base(this, 'disposeInternal'); // Dispose logic specific to MyClass. ... };
.enableMsg_
[protected] {string
}Override the text on the button to show upgrade instead of install.
.getButtonSet()
goog.ui.Dialog.ButtonSet
}
.getContent()
Inherited from goog.ui.OfflineInstallDialog.InstallScreen
.
string
}
.getCustomClassName()
Inherited from goog.ui.OfflineInstallDialogScreen
.
string
}
.getDialog()
Inherited from goog.ui.OfflineInstallDialogScreen
.
goog.ui.OfflineInstallDialog
}
.getDisposed
[deprecated]Deprecated. Use {@link #isDisposed} instead.
Inherited from goog.Disposable
.
boolean
}
.getTitle()
Inherited from goog.ui.OfflineInstallDialogScreen
.
string
}
.getType()
Inherited from goog.ui.OfflineInstallDialogScreen
.
Returns the type of the screen. This is used to identify the screen type this reflects.
string
}
.handleSelect(e)
Inherited from goog.ui.OfflineInstallDialog.InstallScreen
.
Overrides to go to Gears page.
e
{goog.ui.Dialog.Event
}
.installMsg_
[protected] {string
}Override to say upgrade instead of install.
.isDisposed()
Inherited from goog.Disposable
.
boolean
}
.isInstallButtonDefault
[protected] {boolean
}Inherited from goog.ui.OfflineInstallDialog.InstallScreen
.
Should install button action be performed immediately when the user presses the enter key anywhere on the dialog. This should be set to false if there are other action handlers on the dialog that may stop propagation.
.isUpgradeButtonDefault
[protected] {boolean
}Should upgrade button action be performed immediately when the user presses the enter key anywhere on the dialog. This should be set to false if there are other action handlers on the dialog that may stop propagation.
.registerDisposable(disposable)
Inherited from goog.Disposable
.
Associates a disposable object with this object so that they will be disposed together.
disposable
{goog.disposable.IDisposable
}
.setButtonSet(bs)
Inherited from goog.ui.OfflineInstallDialogScreen
.
Sets the button set to use with this screen.
bs
{goog.ui.Dialog.ButtonSet
}
.setContent(html)
Inherited from goog.ui.OfflineInstallDialogScreen
.
Sets the HTML content to use for this screen.
html
{string
}
.setCustomClassName(customClassName)
Inherited from goog.ui.OfflineInstallDialogScreen
.
Sets the custom class name that should be added to the dialog when this screen is active.
customClassName
{string
}
.setInstallDescription(description)
Inherited from goog.ui.OfflineInstallDialog.InstallScreen
.
Sets the install description. This is the text before the installation steps.
description
{string
}
.setTitle(title)
Inherited from goog.ui.OfflineInstallDialogScreen
.
Sets the plain text title to use for this screen.
title
{string
}
.setUpgradeDescription(description)
Sets the upgrade description. This is the text before the upgrade steps.
description
{string
}