import com.itmill.toolkit.data.Container;\r
\r
/**\r
- * A filtering dropdown single-select with newItemsAllowed. Items are filtered\r
- * based on user input, and loaded dynamically ("lazy-loading") from the server.\r
- * You can turn off newItemsAllowed and change filtering mode (and also turn it\r
- * off), but you can not turn on multi-select mode.\r
+ * A filtering dropdown single-select. Suitable for newItemsAllowed, but it's\r
+ * turned of by default to avoid mistakes. Items are filtered based on user\r
+ * input, and loaded dynamically ("lazy-loading") from the server. You can turn\r
+ * on newItemsAllowed and change filtering mode (and also turn it off), but you\r
+ * can not turn on multi-select mode.\r
* \r
*/\r
public class ComboBox extends Select {\r
public ComboBox() {\r
setMultiSelect(false);\r
- setNewItemsAllowed(true);\r
+ setNewItemsAllowed(false);\r
}\r
\r
public ComboBox(String caption, Collection options) {\r
super(caption, options);\r
setMultiSelect(false);\r
- setNewItemsAllowed(true);\r
+ setNewItemsAllowed(false);\r
}\r
\r
public ComboBox(String caption, Container dataSource) {\r
super(caption, dataSource);\r
setMultiSelect(false);\r
- setNewItemsAllowed(true);\r
+ setNewItemsAllowed(false);\r
}\r
\r
public ComboBox(String caption) {\r
super(caption);\r
setMultiSelect(false);\r
- setNewItemsAllowed(true);\r
+ setNewItemsAllowed(false);\r
}\r
\r
public void setMultiSelect(boolean multiSelect) {\r