goog.ui.OfflineInstallDialogScreen
Classgoog.ui.OfflineInstallDialogScreen
> goog.Disposable
goog.ui.OfflineInstallDialogScreen(dialog, type)
Represents a screen on the dialog. You can create new screens and add them to the offline install dialog by calling registerScreenType and setCurrentScreenType.
dialog
{goog.ui.OfflineInstallDialog
}
type
{string
}
.activate()
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()
Called when the screen is hidden. At this point the dialog is in the document.
.dialog_
[protected] {goog.ui.OfflineInstallDialog
}.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. ... };
.getButtonSet()
goog.ui.Dialog.ButtonSet
}
.getContent()
string
}
.getCustomClassName()
string
}
.getDialog()
goog.ui.OfflineInstallDialog
}
.getDisposed
[deprecated]Deprecated. Use {@link #isDisposed} instead.
Inherited from goog.Disposable
.
boolean
}
.getTitle()
string
}
.getType()
Returns the type of the screen. This is used to identify the screen type this reflects.
string
}
.handleSelect(e)
Called when the user clicks any of the buttons for this dialog screen.
e
{goog.ui.Dialog.Event
}
.isDisposed()
Inherited from goog.Disposable
.
boolean
}
.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)
Sets the button set to use with this screen.
bs
{goog.ui.Dialog.ButtonSet
}
.setContent(html)
Sets the HTML content to use for this screen.
html
{string
}
.setCustomClassName(customClassName)
Sets the custom class name that should be added to the dialog when this screen is active.
customClassName
{string
}
.setTitle(title)
Sets the plain text title to use for this screen.
title
{string
}