Package org.jitterbit.ui.input

Examples of org.jitterbit.ui.input.IntegerInputField


        return f;
    }

    private IntegerInputField createValueField(ChunkingOption current) {
        String label = "Chunk size:";
        IntegerInputField field = InputFieldFactory.getIntegerInputField("size", label, 0, Integer.MAX_VALUE, 5);
        field.setValue(current.getChunkSize());
        ((KongaTextComponent) field.getInputComponent()).setSelectAllWhenFocused(true);
        return field;
    }
View Full Code Here


    }

    private IntegerInputField createPortField() {
        KongaTextField wrappee = new KongaTextField(6);
        wrappee.setFixedSize(true);
        return new IntegerInputField("Port", wrappee, 1, 65536, new JLabel(
                        PackageResources.PortPanel.MANUAL));
    }
View Full Code Here

        return field;
    }

    private IntegerInputField createMaxThreadsField(ChunkingOption current) {
        String label = "Max number of threads:";
        IntegerInputField field = InputFieldFactory.getIntegerInputField("threads", label, 1, Integer.MAX_VALUE, 5);
        field.setValue(current.getMaxNumberOfThreads());
        ((KongaTextComponent) field.getInputComponent()).setSelectAllWhenFocused(true);
        return field;
    }
View Full Code Here

                                                         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

        return input;
    }
   
    private IntegerInputField createPortField(InputPanel parent, int columns) {
        String label = Strings.get("DefaultPortDefiner.Port");
        IntegerInputField field = new IntegerInputField(label, new KongaTextField(columns), 1, 65536, new JLabel(label));
        parent.addInputField(field, field, field);
        return field;
    }
View Full Code Here

        grid.setBorder(Empty.border(10));
        wrap(grid);
    }
   
    private IntegerInputField createField(String name) {
        IntegerInputField field = new IntegerInputField(
                        name, new KongaTextField(4), 0, Integer.MAX_VALUE, new JLabel(name + ":"));
        field.setSelectAllWhenFocused(true);
        addInputField(field, field, field);
        return field;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.input.IntegerInputField

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.