Examples of TextInputField2


Examples of org.jitterbit.ui.input.TextInputField2

    public void moveCaretToRow(int row) {
        setCaretPosition(DocumentUtils.getRowStart(getDocument(), row));
    }

    public TextInputField2 asInputField(String name) {
        return new TextInputField2(name, textPane) {

            @Override
            public boolean isInputValid(String value) {
                return true;
            }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

    private TextInputField2 createNameField(OperationWrapper wrapper) {
        // TODO: We also need to validate the name against the other wrappers in the displayed flow.
        Operation op = wrapper.getActivity();
        String name = GraphResources.getString("Name");
        JLabel label = new JLabel(name);
        TextInputField2 field = InterchangeViewUtils.getIntegrationEntityNameInputField(op, name, label, 30);
        field.setValue(wrapper.getName());
        field.setSelectAllWhenFocused(true);
        panel.addInputField(field, field, field);
        return field;
    }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

        JLabel jlabel = (label != null && label.length() > 0) ? new JLabel(label) : null;
        return getTextInputField2(name, jlabel, length, isFixedSize);
    }

    public static TextInputField2 getTextInputField2(String name, JLabel jlabel, int length, boolean isFixedSize) {
        return new TextInputField2(name, getTextField(length, isFixedSize), jlabel) {

            @Override
            public boolean isInputValid(String text) {
                return true;
            }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

     *
     */
    public TextFieldInput(String title, String caption) {
        this.title = title;
        validator = TextFieldInputValidator.ALWAYS_VALID;
        field = new TextInputField2("", new KongaTextField(), KongaLabel.withMnemonic(caption)) {

            @Override
            public boolean isInputValid(String value) {
                return validator.validate(value);
            }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

            }
        });
    }

    private TextInputField2 createNameField(InputChangeListener changeListener) {
        TextInputField2 field = DocumentWizardUtils.getNameInputField("Document Name", documentOwner);
        field.addInputChangeListener(changeListener);
        field.setSendInputChangeEvents(true);
        return field;
    }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

        private final String property;

        private User user;

        public Field(String label, String property) {
            this.field = new TextInputField2(property, LayoutUtils.getDetailField(), new JLabel(label)) {

                @Override
                public boolean isInputValid(String value) {
                    return Field.this.isValid(value);
                }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

        this.spansRow = spansRow;
        if (canBeEmpty) {
            this.field = InputFieldFactory.getTextInputField(name, KongaLabel.withMnemonic(label), columns, false);
            parent.addInputField(field);
        } else {
            TextInputField2 tf = InputFieldFactory.getNonEmptyTextInputField(name, KongaLabel.withMnemonic(label),
                            columns, false);
            parent.addInputField(tf, tf, tf);
            this.field = tf;
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

        wrap(col);
    }

    private static TextInputField2 createTextField(String value) {
        String label = "Enter the new name:";
        TextInputField2 field = InputFieldFactory.getNonEmptyTextInputField(label, label, 30, false);
        field.setSelectAllWhenFocused(true);
        field.setValue(value);
        return field;
    }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

    }
   
    private static TextInputField2 getLoginField(boolean isRequired) {
        String name = ApplicationResources.STRINGS.getString("Login");
        KongaLabel label = KongaLabel.withMnemonic(Strings.get("Login.Label"));
        TextInputField2 field = null;
        if (isRequired) {
            field = InputFieldFactory.getNonEmptyTextInputField(name, label, 20, false);
        } else {
            field = InputFieldFactory.getTextInputField2(name, label, 20, false);
        }
View Full Code Here

Examples of org.jitterbit.ui.input.TextInputField2

    }

    private TextInputField2 createField(String label, SourceTarget st, int width) {
        if (st == SourceTarget.Source) {
            String name = Strings.get("File.Filter.Name");
            TextInputField2 field = InputFieldFactory.getNonEmptyTextInputField(
                            name, KongaLabel.withMnemonic(label), width);
            JTextComponent widget = field.getInputComponent();
            FileDropSupport.install(widget, FileDropStrategy.SET_NAME);
            return field;
        } else {
            String name = Strings.get("File.Name.Name");
            return new TargetField(name, label, width);
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.