Package net.sourceforge.processdash.ui

Examples of net.sourceforge.processdash.ui.OptionList


        DataRepository data = getDataRepository();
        if (data == null) return;

        TreeSet s = new TreeSet(DataComboBox.getAllDataNames(data));
        s.add("");
        OptionList opt = new OptionList(s);
        String html = opt.getAsHTML(BIZZARE_NAME);
        int pos = html.indexOf(BIZZARE_NAME);
        initialPart = html.substring(0, pos);
        finalPart = html.substring(pos+BIZZARE_NAME.length());
    }
View Full Code Here


    public DefaultTypeSelector(BoundMap map, Element xml) {
        this.form = (DefectImportForm) map;

        DefectTypeStandard dts = DefectTypeStandard.get(form.getSelectedPath(),
                form.getDashContext().getData());
        OptionList ol = new OptionList(dts);

        ol.options.insertElementAt(Defect.UNSPECIFIED, 0);

        if (ol.translations != null)
            ol.translations.put(Defect.UNSPECIFIED, Translator
                    .translate(Defect.UNSPECIFIED));

        if (ol.comments != null)
            ol.comments.put(Defect.UNSPECIFIED, DefectImportForm.resources
                    .getString("Unspecified_Type_Comment"));

        comboBox = ol.getAsComboBox();
        comboBox.setSelectedIndex(0);
        comboBox.addActionListener((ActionListener) EventHandler.create(
                ActionListener.class, this, "updateMapFromValue"));
        updateMapFromValue();
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.ui.OptionList

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.