From 60cf69071233b906bbb52cd3c0a3785d075f4a54 Mon Sep 17 00:00:00 2001
From: Johannes Dahlström <johannesd@vaadin.com>
Date: Tue, 19 Jul 2016 15:34:25 +0300
Subject: BoV: Components/ListSelect,NativeSelect,OptionGroup: Small API
 changes

Change-Id: Id057e602ed286025a80afbd69ecd44f770158297
---
 documentation/components/components-listselect.asciidoc | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'documentation/components/components-listselect.asciidoc')

diff --git a/documentation/components/components-listselect.asciidoc b/documentation/components/components-listselect.asciidoc
index 261b68db46..88343ee606 100644
--- a/documentation/components/components-listselect.asciidoc
+++ b/documentation/components/components-listselect.asciidoc
@@ -22,12 +22,10 @@ visually identical in both modes.
 [source, java]
 ----
 // Create the selection component
-ListSelect select = new ListSelect("The List");
+ListSelect<String> select = new ListSelect<>("The List");
 
-// Add some items (here by the item ID as the caption)
-select.addItems("Mercury", "Venus", "Earth", ...);
-
-select.setNullSelectionAllowed(false);
+// Add some items
+select.setItems("Mercury", "Venus", "Earth", ...);
 
 // Show 5 items and a scrollbar if there are more
 select.setRows(5);
-- 
cgit v1.2.3

