use of org.jowidgets.api.widgets.blueprint.IPasswordChangeDialogBluePrint 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);
}
Aggregations