Search in sources :

Example 6 with ParamOption

use of org.apache.zeppelin.display.ui.OptionInput.ParamOption in project zeppelin by apache.

the class GObject method toParamOptions.

private ParamOption[] toParamOptions(Map<Object, String> options) {
    ParamOption[] paramOptions = new ParamOption[options.size()];
    int i = 0;
    for (Map.Entry<Object, String> e : options.entrySet()) {
        paramOptions[i++] = new ParamOption(e.getKey(), e.getValue());
    }
    return paramOptions;
}
Also used : AngularObject(org.apache.zeppelin.display.AngularObject) Map(java.util.Map) ParamOption(org.apache.zeppelin.display.ui.OptionInput.ParamOption)

Aggregations

ParamOption (org.apache.zeppelin.display.ui.OptionInput.ParamOption)6 CheckBox (org.apache.zeppelin.display.ui.CheckBox)2 OptionInput (org.apache.zeppelin.display.ui.OptionInput)2 Password (org.apache.zeppelin.display.ui.Password)2 Select (org.apache.zeppelin.display.ui.Select)2 TextBox (org.apache.zeppelin.display.ui.TextBox)2 Test (org.junit.Test)2 Collection (java.util.Collection)1 LinkedList (java.util.LinkedList)1 Map (java.util.Map)1 Matcher (java.util.regex.Matcher)1 Pattern (java.util.regex.Pattern)1 AngularObject (org.apache.zeppelin.display.AngularObject)1 AngularObjectRegistry (org.apache.zeppelin.display.AngularObjectRegistry)1