if (help)
text.setHelp("This is helpfull text.");
if (error)
text.addError("This field is in error.");
text.setValue("First is special");
Instance instance = text.addInstance();
instance.setValue("Second raw");
instance.setInterpretedValue("Second interpreted");
instance = text.addInstance();
instance.setValue("Third raw");
instance.setInterpretedValue("Third interpreted");
// Select
Select select = list.addItem().addSelect("select");
select.setLabel("Text");
select.enableAddOperation();
select.enableDeleteOperation();
select.setMultiple();
select.setSize(4);
if (help)
select.setHelp("This is helpfull text.");
if (error)
select.addError("This field is in error.");
select.addOption("one", "uno");
select.addOption("two", "dos");
select.addOption("three", "tres");
select.addOption("four", "cuatro");
select.addOption("five", "cinco");
instance = select.addInstance();
instance.setOptionSelected("one");
instance = select.addInstance();
instance.setOptionSelected("one");
instance.setOptionSelected("two");
instance = select.addInstance();
instance.setOptionSelected("one");
instance.setOptionSelected("two");
instance.setOptionSelected("three");
instance = select.addInstance();
instance.setOptionSelected("one");
instance.setOptionSelected("two");
instance.setOptionSelected("three");
instance.setOptionSelected("four");
instance = select.addInstance();
instance.setOptionSelected("one");
instance.setOptionSelected("two");
instance.setOptionSelected("three");
instance.setOptionSelected("four");
instance.setOptionSelected("five");
// composite two text fields
Composite composite = list.addItem().addComposite("compositeA");
composite.setLabel("Composite (two text fields)");