Package org.jitterbit.ui.widget.text

Examples of org.jitterbit.ui.widget.text.KongaTextField$RepaintTrigger


        private final PathValidator validator;

        private TokenListCompletionSupport autoCompleteSupport;
       
        public PathField(int width) {
            super("Path", new KongaTextField(width), KongaLabel.withMnemonic(getString("TempStore.Path")));
            validator = new PathValidator();
        }
View Full Code Here


        f.getInputComponent().addToContextMenu(selectDriver);
        f.getInputComponent().addToContextMenu(null);
    }

    private Label createDriverFieldUi() {
        KongaTextField text = driverField.getInputComponent();
        return new TextFieldLabelAdapter(text);
    }
View Full Code Here

        public KongaTextField getInputComponent() {
            return (KongaTextField) super.getInputComponent();
        }

        private static KongaTextField createTextComponent() {
            return new KongaTextField(20);
        }
View Full Code Here

    private final Bindings bindings;

    public XsdOptionsDialog(XsdGeneratorModel model) {
        this.model = model;
        rootNameField = new RootNameField();
        targetNamespaceField = new KongaTextField(30);
        targetNamespaceField.setSelectAllWhenFocused(true);
        includeDefaultsChoice = new KongaCheckBox("Include &default values");
        bindings = bindProperties();
    }
View Full Code Here


    private static class RootNameField extends TextInputField2 {

        public RootNameField() {
            super("Root Name", new KongaTextField(30), "&Root name:");
            setSelectAllWhenFocused(true);
            setAutoTrim(true);
            setActive(true);
        }
View Full Code Here

        panel.setAnchor(Anchor.WEST).setRightFill(Fill.HORIZONTAL).setRightWeights(1.0, 0.0);
        return panel;
    }

    public static KongaTextField getDetailField() {
        KongaTextField field = new KongaTextField(DETAIL_FIELD_WIDTH);
        field.setSelectAllWhenFocused(true);
        return field;
    }
View Full Code Here

public final class FileNameField extends TextInputField2 {

    private final WindowsFileNameValidator validator;

    public FileNameField(String name, String label, int width) {
        super(name, new KongaTextField(width), label);
        validator = new WindowsFileNameValidator();
        setSelectAllWhenFocused(true);
        setAutoTrim(true);
        setActive(true);
        setSendInputChangeEvents(true);
        setSendUndoEvents(true);
        decorateField();
        KongaTextField tf = getInputComponent();
        tf.setLabel(getLabel());
    }
View Full Code Here

    }

    private static TextInputField getInputField(FieldValue value, String label, int length, boolean isEditable) {
        JLabel jlabel = new JLabel(label);
        String text = value.getValue();
        TextInputField field = new TextInputField(label, new KongaTextField(text, length), jlabel);
        field.setEditable(isEditable);
        field.getInputComponent().setToolTipText(label + ": " + text);
        return field;
    }
View Full Code Here

        inputPanel.addInputChangeListener(lst);
    }

    @Override
    public void requestFocus() {
        KongaTextField nameField = getNameField();
        if (nameField.isEditable()) {
            nameField.requestFocusInWindow();
        }
    }
View Full Code Here

    private void setReadOnly(boolean readOnly) {
        boolean editable = !readOnly && user != null;
        passwordAction.setEnabled(editable);
        addToGroupAction.setEnabled(editable);
        removeFromGroupAction.setReadOnly(readOnly);
        KongaTextField nameField = getNameField();
        nameField.setEditable(editable && user.isRenamable());
        for (Field f : fields.values()) {
            if (f.getWidget() != nameField) {
                f.getWidget().setEditable(editable);
            }
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.text.KongaTextField$RepaintTrigger

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.