Package org.jitterbit.application.ui.widget

Examples of org.jitterbit.application.ui.widget.TextFieldInput.showInDialog()


    private void askForNewName(final ProjectLocation location) {
        TextFieldInput input = new ProjectNameInput(Strings.get("Recent.Rename.Title"),
                        Strings.get("Recent.Rename.Caption"));
        input.setInitialValue(location.getProjectName());
        String newName = input.showInDialog();
        processName(location, newName);
    }

    private void processName(ProjectLocation location, String newName) {
        if (isNewName(location, newName)) {
View Full Code Here


        private void askForPageNumber() {
            TextFieldInput input = new TextFieldInput("Go to page", "Enter page number (1-" + numberOfPages + ")");
            input.setValidator(TextFieldInputValidator.integerInRange(1, numberOfPages));
            input.setLocationRelativeTo(button);
            String value = input.showInDialog();
            if (value != null) {
                int pageNo = Integer.parseInt(value);
                setPageNumber(pageNo);
            }
        }
View Full Code Here

                }
                return null;
            }
        });
        userInput.setAutoTrimEnabled(true);
        name = userInput.showInDialog();
        return name;
    }

    private void applyCardinality(RelationshipCardinality cardinality) {
        String minOccurs = "1";
View Full Code Here

            waitLock = view.getWindow().startWait();
            try {
                TextFieldInput input = new ProjectNameInput(getString("Project.Rename.NewName.Title"),
                                getString("Project.Rename.NewName.Label"));
                input.setInitialValue(project.getName());
                String newName = input.showInDialog();
                callback.handle(newName);
            } catch (Exception ex) {
                waitLock.release();
                throw new RuntimeException(ex);
            }
View Full Code Here

        try {
            TextFieldInput input = new TextFieldInput("How many times?", "How many times do you want to run the operation?");
            input.setInitialValue("1");
            input.setSelectAllWhenFocused(true);
            input.setValidator(TextFieldInputValidator.INTEGER);
            String value = input.showInDialog();
            return Math.max(1, Integer.valueOf(value));
        } catch (HeadlessException e) {
            return -1;
        } catch (NumberFormatException e) {
            return -1;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.