public class PmoBasedDialogFactory extends Object
PresentationModelObject. At the
moment only the OkCancelDialog is supported.| Constructor and Description |
|---|
PmoBasedDialogFactory()
Creates a new dialog factory with no validations and special property behavior.
|
PmoBasedDialogFactory(ValidationService validationService)
Creates a new dialog factory with no special property behavior.
|
PmoBasedDialogFactory(ValidationService validationService,
PropertyBehaviorProvider propertyBehaviorProvider)
Creates a new dialog factory.
|
| Modifier and Type | Method and Description |
|---|---|
OkCancelDialog |
newOkCancelDialog(String title,
Handler okHandler,
Object... pmos)
Creates a new
OkCancelDialog. |
OkCancelDialog |
newOkCancelDialog(String title,
Object pmo,
Handler okHandler)
Deprecated.
use
newOkCancelDialog(String, Handler, Object...) instead. |
static OkCancelDialog |
open(OkCancelDialog dialog)
Creates a new
OkCancelDialog and opens it. |
OkCancelDialog |
openOkCancelDialog(String title,
Object pmo,
Handler okHandler)
Creates a new
OkCancelDialog and opens it. |
public PmoBasedDialogFactory()
public PmoBasedDialogFactory(ValidationService validationService)
validationService - A service validating the data in the dialog.public PmoBasedDialogFactory(ValidationService validationService, PropertyBehaviorProvider propertyBehaviorProvider)
validationService - A service validating the data in the dialog.propertyBehaviorProvider - A provider providing special property behavior like read-only
modus if an objects can't be edited.@Deprecated public OkCancelDialog newOkCancelDialog(String title, Object pmo, Handler okHandler)
newOkCancelDialog(String, Handler, Object...) instead.OkCancelDialog.title - The dialog title.pmo - The presentation model object providing the data and the layout information.okHandler - The called when OK is clicked.public OkCancelDialog newOkCancelDialog(String title, Handler okHandler, Object... pmos)
OkCancelDialog.title - The dialog title.okHandler - The called when OK is clicked.pmos - The presentation model objects providing the data and the layout information.public OkCancelDialog openOkCancelDialog(String title, Object pmo, Handler okHandler)
OkCancelDialog and opens it.title - The dialog title.pmo - The presentation model object providing the data and the layout information.okHandler - The called when OK is clicked.public static OkCancelDialog open(OkCancelDialog dialog)
OkCancelDialog and opens it.
Usage:
PmoBasedDialogFactory.open(factory.newOkCancelDialog(...));
dialog - the dialog that should be openedCopyright © 2017. All rights reserved.