diff options
author | Marko Gronroos <magi@vaadin.com> | 2016-07-25 00:00:36 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-05 10:19:47 +0300 |
commit | 4a4d05b0354829df86c4f106868d421dca349b34 (patch) | |
tree | db70be8fce2298dbf427775f07b1146e82c66e33 /documentation/components/components-progressbar.asciidoc | |
parent | 3ea6a0087b140a13ed0685afa2ffe08a45b82719 (diff) | |
download | vaadin-framework-4a4d05b0354829df86c4f106868d421dca349b34.tar.gz vaadin-framework-4a4d05b0354829df86c4f106868d421dca349b34.zip |
Rescaled images in layout chapter. Various small formatting fixes. Updated history and other matters in introduction.
Change-Id: I0d5e76f7fb07f967dd04941a23e79dfb30049731
Diffstat (limited to 'documentation/components/components-progressbar.asciidoc')
-rw-r--r-- | documentation/components/components-progressbar.asciidoc | 15 |
1 files changed, 5 insertions, 10 deletions
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(); |