
jdplus.toolkit.desktop.plugin.ui.properties.l2fprod.UserVariableSelector Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jdplus.toolkit.desktop.plugin.ui.properties.l2fprod;
import com.l2fprod.common.beans.editor.ComboBoxPropertyEditor;
import jdplus.toolkit.base.api.timeseries.regression.ModellingContext;
import java.awt.Component;
import java.util.List;
/**
*
* @author Jean Palate
*/
public class UserVariableSelector extends ComboBoxPropertyEditor {
public UserVariableSelector() {
}
@Override
public Component getCustomEditor() {
List dic = ModellingContext.getActiveContext().getTsVariableDictionary();
Value[] values = new Value[dic.size()];
for (int i = 0; i < values.length; i++) {
values[i] = new Value(new UserVariable(dic.get(i)), dic.get(i));
}
setAvailableValues(values);
return super.getCustomEditor();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy