Search in sources :

Example 1 with IPasswordChangeDialog

use of org.jowidgets.api.widgets.IPasswordChangeDialog in project jo-client-platform by jo-source.

the class PasswordChangeDialog method show.

void show(final IExecutionContext executionContext) {
    final IPasswordChangeDialogBluePrint dialogBp = BPF.passwordChangeDialog(executor);
    if (passwordChangeDialogSetup != null) {
        dialogBp.setSetup(passwordChangeDialogSetup);
    }
    dialogBp.setExecutionContext(executionContext).setAutoDispose(true);
    dialogBp.setPasswordValidator(passwordValidator);
    if (bounds != null) {
        dialogBp.setPosition(bounds.getPosition()).setSize(bounds.getSize());
    }
    final IPasswordChangeDialog dialog = Toolkit.getActiveWindow().createChildWindow(dialogBp);
    dialog.addDisposeListener(new IDisposeListener() {

        @Override
        public void onDispose() {
            bounds = dialog.getBounds();
        }
    });
    dialog.setVisible(true);
}
Also used : IDisposeListener(org.jowidgets.api.controller.IDisposeListener) IPasswordChangeDialogBluePrint(org.jowidgets.api.widgets.blueprint.IPasswordChangeDialogBluePrint) IPasswordChangeDialog(org.jowidgets.api.widgets.IPasswordChangeDialog)

Aggregations

IDisposeListener (org.jowidgets.api.controller.IDisposeListener)1 IPasswordChangeDialog (org.jowidgets.api.widgets.IPasswordChangeDialog)1 IPasswordChangeDialogBluePrint (org.jowidgets.api.widgets.blueprint.IPasswordChangeDialogBluePrint)1