summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-10-01 11:34:04 +0000
committerVaadin Code Review <review@vaadin.com>2012-10-01 11:34:04 +0000
commit8336413bc008831159c9f96cb0ecf5134d267de9 (patch)
tree8fce4359ea26246830cf18d0a5b6e3d48f9c44ac /uitest/src/com/vaadin/tests/components
parent9d348da520096bc73681bd648ae68cb8d14800e4 (diff)
parentfb00d1e067cf9bb0d48a4edea1091a447b5a922c (diff)
downloadvaadin-framework-8336413bc008831159c9f96cb0ecf5134d267de9.tar.gz
vaadin-framework-8336413bc008831159c9f96cb0ecf5134d267de9.zip
Merge "CRLF -> LF"
Diffstat (limited to 'uitest/src/com/vaadin/tests/components')
-rw-r--r--uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java114
1 files changed, 57 insertions, 57 deletions
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<String> p = new ObjectProperty<String>(
- "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<String> p = new ObjectProperty<String>(
+ "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