return null;
}
protected AbstractSelect createCompatibleSelect(
Class<? extends AbstractSelect> fieldType) {
AbstractSelect select;
if (fieldType.isAssignableFrom(ListSelect.class)) {
select = new ListSelect();
select.setMultiSelect(false);
} else if (fieldType.isAssignableFrom(NativeSelect.class)) {
select = new NativeSelect();
} else if (fieldType.isAssignableFrom(OptionGroup.class)) {
select = new OptionGroup();
select.setMultiSelect(false);
} else if (fieldType.isAssignableFrom(Table.class)) {
Table t = new Table();
t.setSelectable(true);
select = t;
} else {
select = new ComboBox(null);
}
select.setImmediate(true);
select.setNullSelectionAllowed(false);
return select;
}