From 4a4d05b0354829df86c4f106868d421dca349b34 Mon Sep 17 00:00:00 2001
From: Marko Gronroos <magi@vaadin.com>
Date: Mon, 25 Jul 2016 00:00:36 +0300
Subject: Rescaled images in layout chapter. Various small formatting fixes.
 Updated history and other matters in introduction.

Change-Id: I0d5e76f7fb07f967dd04941a23e79dfb30049731
---
 documentation/components/components-progressbar.asciidoc | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

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

diff --git a/documentation/components/components-progressbar.asciidoc b/documentation/components/components-progressbar.asciidoc
index 202a48efb8..fa443d1b47 100644
--- a/documentation/components/components-progressbar.asciidoc
+++ b/documentation/components/components-progressbar.asciidoc
@@ -35,17 +35,13 @@ described in
 
 [source, java]
 ----
-final ProgressBar bar = new ProgressBar(0.0f);
+ProgressBar bar = new ProgressBar(0.0f);
 layout.addComponent(bar);
 
-layout.addComponent(new Button("Increase",
-    new ClickListener() {
-    @Override
-    public void buttonClick(ClickEvent event) {
-        float current = bar.getValue();
-        if (current < 1.0f)
-            bar.setValue(current + 0.10f);
-    }
+layout.addComponent(new Button("Increase", click -> {
+    float current = bar.getValue();
+    if (current < 1.0f)
+        bar.setValue(current + 0.10f);
 }));
 ----
 
@@ -56,7 +52,6 @@ In the indeterminate mode, a non-progressive indicator is displayed
 continuously. The indeterminate indicator is a circular wheel in the built-in
 themes. The progress value has no meaning in the indeterminate mode.
 
-
 [source, java]
 ----
 ProgressBar bar = new ProgressBar();
-- 
cgit v1.2.3

