From fb00d1e067cf9bb0d48a4edea1091a447b5a922c Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 19 Sep 2012 15:14:01 +0000 Subject: CRLF -> LF Change-Id: Ib1a828ac5f423de8e05c4ad7c8f399ccaf0beb78 --- .../components/label/LabelPropertySourceValue.java | 114 ++++++++++----------- 1 file changed, 57 insertions(+), 57 deletions(-) (limited to 'uitest/src/com') 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 -- cgit v1.2.3