From: Artur Signell Date: Wed, 19 Sep 2012 15:14:01 +0000 (+0000) Subject: CRLF -> LF X-Git-Tag: 7.0.0.beta3~9^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F22%2F1;p=vaadin-framework.git CRLF -> LF Change-Id: Ib1a828ac5f423de8e05c4ad7c8f399ccaf0beb78 --- diff --git a/uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java b/uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java index d4ec16da4e..c1965ff92b 100644 --- a/uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java +++ b/uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java @@ -1,58 +1,58 @@ -package com.vaadin.tests.components.label; - -import com.vaadin.data.util.ObjectProperty; -import com.vaadin.server.VaadinRequest; -import com.vaadin.tests.components.AbstractTestUI; -import com.vaadin.ui.Button; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Button.ClickListener; -import com.vaadin.ui.Label; - -public class LabelPropertySourceValue extends AbstractTestUI { - private Label label; - - @Override - public void setup(VaadinRequest request) { - label = new Label("Hello Vaadin user"); - addComponent(label); - Button button = new Button("Give label a new property data source..."); - button.addClickListener(new ClickListener() { - @Override - public void buttonClick(ClickEvent event) { - ObjectProperty p = new ObjectProperty( - "This text should appear on the label after clicking the button."); - - label.setPropertyDataSource(p); - } - }); - addComponent(button); - button = new Button("Remove data source", new ClickListener() { - - @Override - public void buttonClick(ClickEvent event) { - label.setPropertyDataSource(null); - } - }); - addComponent(button); - - button = new Button("Set label value to 'foo'", new ClickListener() { - - @Override - public void buttonClick(ClickEvent event) { - label.setValue("foo"); - } - }); - addComponent(button); - } - - @Override - protected String getTestDescription() { - return "The value should change by clicking the button"; - } - - @Override - protected Integer getTicketNumber() { - return 9618; - } - +package com.vaadin.tests.components.label; + +import com.vaadin.data.util.ObjectProperty; +import com.vaadin.server.VaadinRequest; +import com.vaadin.tests.components.AbstractTestUI; +import com.vaadin.ui.Button; +import com.vaadin.ui.Button.ClickEvent; +import com.vaadin.ui.Button.ClickListener; +import com.vaadin.ui.Label; + +public class LabelPropertySourceValue extends AbstractTestUI { + private Label label; + + @Override + public void setup(VaadinRequest request) { + label = new Label("Hello Vaadin user"); + addComponent(label); + Button button = new Button("Give label a new property data source..."); + button.addClickListener(new ClickListener() { + @Override + public void buttonClick(ClickEvent event) { + ObjectProperty p = new ObjectProperty( + "This text should appear on the label after clicking the button."); + + label.setPropertyDataSource(p); + } + }); + addComponent(button); + button = new Button("Remove data source", new ClickListener() { + + @Override + public void buttonClick(ClickEvent event) { + label.setPropertyDataSource(null); + } + }); + addComponent(button); + + button = new Button("Set label value to 'foo'", new ClickListener() { + + @Override + public void buttonClick(ClickEvent event) { + label.setValue("foo"); + } + }); + addComponent(button); + } + + @Override + protected String getTestDescription() { + return "The value should change by clicking the button"; + } + + @Override + protected Integer getTicketNumber() { + return 9618; + } + } \ No newline at end of file