Package org.jitterbit.ui.widget.text

Examples of org.jitterbit.ui.widget.text.IntegerDocument


    private void configureField() {
        KongaTextField field = getComponent();
        field.setSelectAllWhenFocused(true);
        field.setHorizontalAlignment(JTextField.RIGHT);
        field.setDocument(new IntegerDocument());
    }
View Full Code Here


        return f;
    }

    private KongaTextField createPortField() {
        KongaTextField portField = createField("&Port:", 6);
        portField.setDocument(new IntegerDocument()); // TODO: Restrict range.
        portField.setText("46908"); // TODO: Get configured port.
        return portField;
    }
View Full Code Here

                                                         int minValue,
                                                         int maxValue,
                                                         int length,
                                                         boolean isFixedSize) {
        JTextComponent comp = getTextField(length, isFixedSize);
        comp.setDocument(new IntegerDocument());
        return new IntegerInputField(name, comp, minValue, maxValue, jlabel);
    }
View Full Code Here

    }
   
    private IntegerInputField createInputField(String label, int length) {
        KongaTextField comp = new KongaTextField(length);
        comp.setFixedSize(true);
        comp.setDocument(new IntegerDocument());
        JLabel jlabel = (label != null && label.length() > 0) ? new JLabel(label) : null;
        return new IntegerInputField(label, comp, Integer.MIN_VALUE, Integer.MAX_VALUE, jlabel);
    }
View Full Code Here

public final class IntegerSearchField extends AbstractStringBasedSearchField {

    private final SearchableProperty<Integer> property;

    public IntegerSearchField(SearchableProperty<Integer> property) {
        super(new IntegerDocument());
        this.property = property;
    }
View Full Code Here

            setAutoTrim(true);
        }

        private static JTextComponent createTextComponent() {
            KongaTextField f = new KongaTextField(4);
            f.setDocument(new IntegerDocument());
            f.setSelectAllWhenFocused(true);
            return f;
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.text.IntegerDocument

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.