Package org.jitterbit.application.ui.widget

Examples of org.jitterbit.application.ui.widget.TextFieldInput


        }
        return differs;
    }

    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);
    }
View Full Code Here


                showPageNumberSelector();
            }
        }

        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

        }
    }

    private String askUserForTableName() {
        String name;
        TextFieldInput userInput = new TextFieldInput("Table Name", "What is the name of the table you are querying?");
        userInput.setValidator(new TextFieldInputValidator() {

            @Override
            public boolean validate(String value) {
                return !value.isEmpty();
            }

            @Override
            public String getErrorMessage(String value) {
                if (value.isEmpty()) {
                    return "Must provide a value.";
                }
                return null;
            }
        });
        userInput.setAutoTrimEnabled(true);
        name = userInput.showInDialog();
        return name;
    }
View Full Code Here

        @Override
        public void run() {
            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

        return 1;
    }

    private int getTimesToRunImpl() {
        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

Related Classes of org.jitterbit.application.ui.widget.TextFieldInput

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.