f.setRows(5);
f.setHeight("8em");
f.setCaption("CSS string");
return f;
} else if (((String) propertyId).contains("Units")) {
NativeSelect s = new NativeSelect() {
};
s.addContainerProperty("caption", String.class, "");
s.setItemCaptionPropertyId("caption");
s.setNullSelectionAllowed(false);
for (int i = 0; i < Layout.Unit.values().length; i++) {
Item unitItem = s.addItem(i);
unitItem.getItemProperty("caption").setValue(
Layout.Unit.values()[i]);
}
return s;
}