goog.ui.editor.AbstractDialog.Builder
Classgoog.ui.editor.AbstractDialog.Builder(editorDialog)
A builder class for the dialog control. All methods except build return this.
editorDialog
{goog.ui.editor.AbstractDialog
}
.addButton(label, handler, opt_buttonId)
Adds a custom button to the dialog.
label
{string
}
handler
{function
(goog.ui.Dialog.EventType
):*}
opt_buttonId
{string
=}
goog.ui.editor.AbstractDialog.Builder
}
.addCancelButton(opt_label)
Adds a Cancel button to the dialog. Clicking this button will cause {@link handleCancel} to run, subsequently dispatching a CANCEL event.
opt_label
{string
=}
goog.ui.editor.AbstractDialog.Builder
}
.addClassName(className)
Puts a CSS class on the dialog's main element.
className
{string
}
goog.ui.editor.AbstractDialog.Builder
}
.addOkButton(opt_label)
Adds an OK button to the dialog. Clicking this button will cause {@link handleOk} to run, subsequently dispatching an OK event.
opt_label
{string
=}
goog.ui.editor.AbstractDialog.Builder
}
.build()
Builds the wrapped dialog control. May only be called once, after which no more methods may be called on this builder.
goog.ui.Dialog
}
.setContent(contentElem)
Sets the content element of the dialog.
contentElem
{Element
}
goog.ui.editor.AbstractDialog.Builder
}
.setTitle(title)
Sets the title of the dialog.
title
{string
}
goog.ui.editor.AbstractDialog.Builder
}