Package lcmc.common.ui.utils

Examples of lcmc.common.ui.utils.PatternDocument


        final JPasswordField pf;
        if (regexp == null) {
            pf = new JPasswordField(valueS);
        } else {
            pf = new JPasswordField(new PatternDocument(regexp), valueS, 0);
        }
        return pf;
    }
View Full Code Here


    private JComponent getTextField(final String value, final String regexp, final Map<String, String> abbreviations) {
        final MTextField tf;
        if (regexp == null) {
            tf = new MTextField(value);
        } else {
            tf = new MTextField(new PatternDocument(regexp, abbreviations), value, 0);
        }
        return tf;
    }
View Full Code Here

        final Unit selectedValueInfo = addItems(comboList, selectedValue, items);
        final MComboBox<Unit> cb = new MComboBox<Unit>(comboList.toArray(new Unit[comboList.size()]));
        final JTextComponent editor = (JTextComponent) cb.getEditor().getEditorComponent();
        if (regexp != null) {
            editor.setDocument(new PatternDocument(regexp, abbreviations));
        }
        cb.setMaximumRowCount(SCROLLBAR_MAX_ROWS);
        if (selectedValueInfo != null) {
            cb.setSelectedItem(selectedValueInfo);
        }
View Full Code Here

        final MTextField tf;
        if (regexp == null) {
            tf = new MTextField(valueS);
        } else {
            tf = new MTextField(new PatternDocument(regexp, abbreviations), valueS, 0);
        }
        return tf;
    }
View Full Code Here

        final Value selectedValueInfo = addItems(comboList, selectedValue, items);
        final MComboBox<Value> cb = new MComboBox<Value>(comboList.toArray(new Value[comboList.size()]));
        final JTextComponent editor = (JTextComponent) cb.getEditor().getEditorComponent();
        if (regexp != null) {
            editor.setDocument(new PatternDocument(regexp, abbreviations));
        }
        cb.setMaximumRowCount(CB_SCROLLBAR_MAX_ROWS);
        if (selectedValueInfo != null) {
            cb.setSelectedItem(selectedValueInfo);
        }
View Full Code Here

TOP

Related Classes of lcmc.common.ui.utils.PatternDocument

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.