Package org.springframework.richclient.dialog

Examples of org.springframework.richclient.dialog.InputApplicationDialog


        super("showViewWithInputCommand");
    }

    @Override
    protected void doExecuteCommand() {
        new InputApplicationDialog("Input", getApplicationWindow().getControl()) {
            @Override
            protected void onFinish(Object inputValue) {
                getApplicationWindow().getPage().showView("viewWithInput", inputValue);
            }
        }.showDialog();
View Full Code Here


    }

    private class RenameOwnerExecutor extends AbstractActionCommandExecutor {
        public void execute() {
            final Owner owner = getSelectedOwner();
            InputApplicationDialog renameDialog = new InputApplicationDialog(owner, "firstName");
            renameDialog.setTitle(getMessage("renameOwnerDialog.title"));
            renameDialog.setInputLabelMessage("renameOwnerDialog.label");
            renameDialog.setParentComponent(getWindowControl());
            renameDialog.setFinishAction(new Block() {

                public void handle(Object o) {
                    clinic.storeOwner(owner);
                    getSelectedOwnerNode().setUserObject(owner);
                    ownersTreeModel.nodeChanged(getSelectedOwnerNode());
                }
            });
            //  TODO check default closeAction on InputApplicationDialog
            // setting closeAction explicitly to dispose, if InputApplicationDialog has this default,
            // this line may be removed.
            renameDialog.setCloseAction(CloseAction.DISPOSE);
            renameDialog.showDialog();
        }
View Full Code Here

    }

    private class RenamePetExecutor extends AbstractActionCommandExecutor {
        public void execute() {
            final Pet pet = getSelectedPet();
            InputApplicationDialog renameDialog = new InputApplicationDialog(pet, "name");
            renameDialog.setTitle(getMessage("renamePetDialog.title"));
            renameDialog.setInputLabelMessage("renamePetDialog.label");
            renameDialog.setParentComponent(getWindowControl());
            renameDialog.setFinishAction(new Block() {

                public void handle(Object o) {
                    clinic.storePet(pet);
                    getSelectedPetNode().setUserObject(pet);
                    ownersTreeModel.nodeChanged(getSelectedPetNode());
                }
            });
            //  TODO check default closeAction on InputApplicationDialog
            // setting closeAction explicitly to dispose, if InputApplicationDialog has this default,
            // this line may be removed.
            renameDialog.setCloseAction(CloseAction.DISPOSE);
            renameDialog.showDialog();
        }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.dialog.InputApplicationDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.