l.addComponent(nbtn);
CheckBox chkb = new CheckBox("CheckBox");
l.addComponent(chkb);
OptionGroup og = createOptionGroup("OptionGroup");
og.setMultiSelect(false);
l.addComponent(og);
final OptionGroup ogm = createOptionGroup("OptionGroup (multiselect)");
ogm.setMultiSelect(true);
l.addComponent(ogm);
btn.addListener(new ClickListener() {
private int i;
@Override
public void buttonClick(ClickEvent event) {
ogm.addItem("newItem" + i++);
}
});
tf.addListener(focusListener);
tf.addListener(blurListener);
df.addListener(focusListener);
df.addListener(blurListener);
cb.addListener(focusListener);
cb.addListener(blurListener);
btn.addListener(focusListener);
btn.addListener(blurListener);
nbtn.addListener(focusListener);
nbtn.addListener(blurListener);
chkb.addListener(focusListener);
chkb.addListener(blurListener);
og.addListener(focusListener);
og.addListener(blurListener);
ogm.addListener(focusListener);
ogm.addListener(blurListener);
l.addComponent(messages);
}