summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-15 11:06:18 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-15 14:00:58 +0300
commit6b8412033e680ce6e5c7827ac504adf132305726 (patch)
tree0df05d16c324b285610af8910c126b58f4c490c5 /uitest/src/com/vaadin/tests/tickets/Ticket2242.java
parent9192b0bb5e5e699b506b3d3e7df4cf295fbea44a (diff)
downloadvaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.tar.gz
vaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.zip
Build uitest war with maven
Change-Id: I32625901ca27a282253df44c6e776cf9632bacda
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2242.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2242.java82
1 files changed, 0 insertions, 82 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2242.java b/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
deleted file mode 100644
index d100f61e30..0000000000
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2242.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.vaadin.tests.tickets;
-
-import com.vaadin.data.Item;
-import com.vaadin.data.Property.ValueChangeEvent;
-import com.vaadin.data.Property.ValueChangeListener;
-import com.vaadin.data.util.IndexedContainer;
-import com.vaadin.data.util.ObjectProperty;
-import com.vaadin.server.LegacyApplication;
-import com.vaadin.ui.AbstractOrderedLayout;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.Button.ClickListener;
-import com.vaadin.ui.LegacyWindow;
-import com.vaadin.ui.Table;
-
-public class Ticket2242 extends LegacyApplication implements
- ValueChangeListener {
-
- private Object tableValue = null;
- private Table t;
- private String valueDataSource = "-";
- private ObjectProperty<String> prop;
-
- @Override
- public void init() {
- LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
- setMainWindow(w);
- // setTheme("tests-tickets");
- createUI((AbstractOrderedLayout) w.getContent());
- }
-
- private void createUI(AbstractOrderedLayout layout) {
- Button b = new Button("Change container datasource",
- new ClickListener() {
-
- @Override
- public void buttonClick(ClickEvent event) {
- for (int i = 0; i < 5; i++) {
- t.setContainerDataSource(createContainer());
- // prop.setValue("ipsum");
- }
- }
-
- });
-
- layout.addComponent(b);
-
- t = new Table("A table");
- prop = new ObjectProperty<String>(valueDataSource);
- t.setPropertyDataSource(prop);
- t.setSelectable(true);
- t.setImmediate(true);
- t.setPageLength(5);
- t.setContainerDataSource(createContainer());
- tableValue = t.getValue();
- t.addListener(this);
-
- layout.addComponent(t);
- }
-
- private IndexedContainer createContainer() {
- IndexedContainer ic = new IndexedContainer();
- ic.addContainerProperty("a", String.class, null);
-
- for (String s : new String[] { "Lorem", "ipsum", "dolor", "sit",
- "amet", "consectetuer" }) {
- Item item = ic.addItem(s);
- item.getItemProperty("a").setValue(s);
-
- }
-
- return ic;
- }
-
- @Override
- public void valueChange(ValueChangeEvent event) {
- System.out.println("Value change from " + tableValue + " to "
- + t.getValue());
- tableValue = t.getValue();
- }
-
-}