Search in sources :

Example 1 with OptionList

use of net.sourceforge.processdash.ui.OptionList in project processdash by dtuma.

the class DataNameSelectElem method init.

protected void init() {
    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());
}
Also used : TreeSet(java.util.TreeSet) DataRepository(net.sourceforge.processdash.data.repository.DataRepository) OptionList(net.sourceforge.processdash.ui.OptionList)

Aggregations

TreeSet (java.util.TreeSet)1 DataRepository (net.sourceforge.processdash.data.repository.DataRepository)1 OptionList (net.sourceforge.processdash.ui.OptionList)1