public class DialogBuilder extends Object
AlertBuilder
.
withActions(List<Component> actions)
is to provide actions
shown to the right of the form.
withSecondaryActions(List<Component> actions)
provides actions shown
to the left of the dialog's footer but is optional.
Here is an usage example:
DialogBuilder.dialog() .withTitle("Edit object") .withContent(view) .withActions(new Button("Commit")) .buildAndOpen();
Constructor and Description |
---|
DialogBuilder() |
Modifier and Type | Method and Description |
---|---|
DialogComponent |
build() |
com.vaadin.ui.Window |
buildAndOpen() |
static DialogBuilder |
dialog() |
DialogBuilder |
light() |
DialogBuilder |
modal() |
DialogBuilder |
withActions(List<com.vaadin.ui.Component> actions) |
DialogBuilder |
withContent(com.vaadin.ui.Component content) |
DialogBuilder |
withFooter(com.vaadin.ui.Component footer) |
DialogBuilder |
withTitle(String title) |
public static DialogBuilder dialog()
public DialogBuilder withTitle(String title)
public DialogBuilder withContent(com.vaadin.ui.Component content)
public DialogBuilder withActions(List<com.vaadin.ui.Component> actions)
public DialogBuilder modal()
public DialogBuilder light()
public DialogBuilder withFooter(com.vaadin.ui.Component footer)
public DialogComponent build()
public com.vaadin.ui.Window buildAndOpen()
Copyright © 2018 Magnolia International Ltd.. All rights reserved.