TextBoxItem item = new TextBoxItem(name, name.toUpperCase(), required);
items.add(item);
}
else if("INT".equals(type))
{
NumberBoxItem item = new NumberBoxItem(name, name.toUpperCase(), required);
items.add(item);
}
else if("BOOLEAN".equals(type))
{
CheckBoxItem item = new CheckBoxItem(name, name.toUpperCase());
items.add(item);
}
else if("DOUBLE".equals(type))
{
NumberBoxItem item = new NumberBoxItem(name, name.toUpperCase(), required);
items.add(item);
}
else if("FLOAT".equals(type))
{
NumberBoxItem item = new NumberBoxItem(name, name.toUpperCase(), required);
items.add(item);
}
else if("LONG".equals(type))
{
NumberBoxItem item = new NumberBoxItem(name, name.toUpperCase(), required);
items.add(item);
}
else
{
System.out.println("Unsupported type: "+type);