ui.editor.AbstractDialog.Builder Extends
A builder class for the dialog control. All methods except build return this.

Inheritance

Constructor

goog.ui.editor.AbstractDialog.Builder(editorDialog)

Parameters

editorDialog : goog.ui.editor.AbstractDialog
Editor dialog object that will wrap the wrapped dialog object this builder will create.

Instance Methods

Public Protected Private
addButton(labelhandleropt_buttonId) !goog.ui.editor.AbstractDialog.Builder
Adds a custom button to the dialog.
Arguments:
label : string
The caption for the button.
handler : function(goog.ui.Dialog.EventType):*
Function called when the button is clicked. It is recommended that this function be a method in the concrete subclass of AbstractDialog using this Builder, and that it dispatch an event (see handleOk).
opt_buttonId : string=
Identifier to be used to access the button when calling AbstractDialog.getButtonElement().
code »
addCancelButton(opt_label) !goog.ui.editor.AbstractDialog.Builder
Adds a Cancel button to the dialog. Clicking this button will cause handleCancel to run, subsequently dispatching a CANCEL event.
Arguments:
opt_label : string=
The caption for the button, if not "Cancel".
code »
addClassName(className) !goog.ui.editor.AbstractDialog.Builder
Puts a CSS class on the dialog's main element.
Arguments:
className : string
The class to add.
code »
addOkButton(opt_label) !goog.ui.editor.AbstractDialog.Builder
Adds an OK button to the dialog. Clicking this button will cause handleOk to run, subsequently dispatching an OK event.
Arguments:
opt_label : string=
The caption for the button, if not "OK".
code »
build() !goog.ui.Dialog
Builds the wrapped dialog control. May only be called once, after which no more methods may be called on this builder.
Returns: !goog.ui.Dialog  The wrapped dialog control.
code »
setContent(contentElem) !goog.ui.editor.AbstractDialog.Builder
Sets the content element of the dialog.
Arguments:
contentElem : Element
An element for the main body.
code »
Sets the title of the dialog.
Arguments:
title : string
Title HTML (escaped).
code »

Instance Properties

buttonHandlers_ :
Map from keys that will be returned in the wrapped dialog SELECT events to handler functions to be called to handle those events.
Code »
Set of buttons to be added to the wrapped dialog control.
Code »
Editor dialog that will wrap the wrapped dialog this builder will create.
Code »
wrappedDialog_ : goog.ui.Dialog
wrapped dialog control being built by this builder.
Code »

Package ui.editor.AbstractDialog

Package Reference