diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/tree/TreeFocusGaining.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/tree/TreeFocusGaining.java | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/uitest/src/com/vaadin/tests/components/tree/TreeFocusGaining.java b/uitest/src/com/vaadin/tests/components/tree/TreeFocusGaining.java deleted file mode 100644 index dd407fd62a..0000000000 --- a/uitest/src/com/vaadin/tests/components/tree/TreeFocusGaining.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.vaadin.tests.components.tree; - -import com.vaadin.data.Property; -import com.vaadin.data.Property.ValueChangeEvent; -import com.vaadin.event.ItemClickEvent; -import com.vaadin.tests.components.TestBase; -import com.vaadin.tests.util.Log; -import com.vaadin.ui.TextField; -import com.vaadin.ui.Tree; - -@SuppressWarnings("serial") -public class TreeFocusGaining extends TestBase { - - @Override - protected void setup() { - final Log log = new Log(5); - - TextField textField = new TextField( - "My value should get to server when tree is clicked"); - addComponent(textField); - textField.addListener(new Property.ValueChangeListener() { - - @Override - public void valueChange(ValueChangeEvent event) { - log.log("TF value now:" + event.getProperty().getValue()); - } - }); - - Tree tree = new Tree("Simple selectable tree (immediate)"); - tree.addItem("Item1"); - addComponent(tree); - tree.addListener(new Property.ValueChangeListener() { - - @Override - public void valueChange(ValueChangeEvent event) { - log.log("Tree value now:" + event.getProperty().getValue()); - } - }); - tree.setImmediate(true); - - tree = new Tree("Simple tree with itemm click listener"); - tree.addItem("Item1"); - tree.addListener(new ItemClickEvent.ItemClickListener() { - @Override - public void itemClick(ItemClickEvent event) { - log.log("Item click event"); - } - }); - addComponent(tree); - - addComponent(log); - - } - - @Override - protected String getDescription() { - return "Tree should get focus before sending variables to server."; - } - - @Override - protected Integer getTicketNumber() { - return 6374; - } - -} |