From 69f703100ed57720672467e6e53319781cb8ebc9 Mon Sep 17 00:00:00 2001
From: Johannes Dahlström <johannesd@vaadin.com>
Date: Tue, 19 Jul 2016 14:57:05 +0300
Subject: BoV: Components/Button,CheckBox: Listener API updates

Change-Id: I266bf780d24e411b17d449ff5f9ce880fad53d36
---
 documentation/components/components-checkbox.asciidoc | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

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

diff --git a/documentation/components/components-checkbox.asciidoc b/documentation/components/components-checkbox.asciidoc
index 570a3ee083..cf00fd1b61 100644
--- a/documentation/components/components-checkbox.asciidoc
+++ b/documentation/components/components-checkbox.asciidoc
@@ -20,12 +20,10 @@ and check box groups with the [classname]#OptionGroup# component in multiple
 selection mode, as described in
 <<dummy/../../../framework/components/components-optiongroup#components.optiongroup,"OptionGroup">>.
 
-Clicking on a check box will change its state. The state is a
-[classname]#Boolean# property that you can set with the [methodname]#setValue()#
-method and obtain with the [methodname]#getValue()# method of the
-[classname]#Property# interface. Changing the value of a check box will cause a
-[classname]#ValueChangeEvent#, which can be handled by a
-[classname]#ValueChangeListener#.
+Clicking on a check box will change its state. The state is a [classname]#Boolean#
+property that you can set with the [methodname]#setValue()# method and obtain with
+the [methodname]#getValue()# method. Changing the value of a check box will cause
+a [classname]#ValueChangeEvent#, which can be handled by a [classname]#ValueChangeListener#.
 
 
 [source, java]
@@ -35,10 +33,10 @@ CheckBox checkbox2 = new CheckBox("Box with a Check");
 
 checkbox2.setValue(true);
 
-checkbox1.addValueChangeListener(event -> // Java 8
+checkbox1.addValueChangeListener(event ->
     checkbox2.setValue(! checkbox1.getValue()));
 
-checkbox2.addValueChangeListener(event -> // Java 8
+checkbox2.addValueChangeListener(event ->
     checkbox1.setValue(! checkbox2.getValue()));
 ----
 
-- 
cgit v1.2.3

