goog.ui.editor.AbstractDialog.Builder
Provided By |
---|
A builder class for the dialog control. All methods except build return this.
new Builder( editorDialog )
Parameters |
|
---|
Instance Methods
this.addButton( label, handler, opt_buttonId ) → goog.ui.editor.AbstractDialog.Builder
goog.ui.editor.AbstractDialog.Builder
Adds a custom button to the dialog.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.addCancelButton( opt_label ) → goog.ui.editor.AbstractDialog.Builder
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.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.addClassName( className ) → goog.ui.editor.AbstractDialog.Builder
goog.ui.editor.AbstractDialog.Builder
Puts a CSS class on the dialog's main element.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.addOkButton( opt_label ) → goog.ui.editor.AbstractDialog.Builder
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.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.build() → goog.ui.Dialog
goog.ui.Dialog
Builds the wrapped dialog control. May only be called once, after which no more methods may be called on this builder.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.setContent( contentElem ) → goog.ui.editor.AbstractDialog.Builder
goog.ui.editor.AbstractDialog.Builder
Sets the content element of the dialog.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.setTitle( title ) → goog.ui.editor.AbstractDialog.Builder
goog.ui.editor.AbstractDialog.Builder
Sets the title of the dialog.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|