aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.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/components/combobox/ComboFocusBlurEvents.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/components/combobox/ComboFocusBlurEvents.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java77
1 files changed, 0 insertions, 77 deletions
diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java b/uitest/src/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java
deleted file mode 100644
index 6393115c47..0000000000
--- a/uitest/src/com/vaadin/tests/components/combobox/ComboFocusBlurEvents.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package com.vaadin.tests.components.combobox;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import com.vaadin.data.util.ObjectProperty;
-import com.vaadin.event.FieldEvents;
-import com.vaadin.event.FieldEvents.BlurEvent;
-import com.vaadin.event.FieldEvents.FocusEvent;
-import com.vaadin.shared.ui.label.ContentMode;
-import com.vaadin.tests.components.TestBase;
-import com.vaadin.ui.ComboBox;
-import com.vaadin.ui.Label;
-import com.vaadin.ui.TextField;
-
-public class ComboFocusBlurEvents extends TestBase {
-
- private int counter = 0;
-
- @Override
- protected void setup() {
-
- List<String> list = new ArrayList<String>();
- for (int i = 0; i < 100; i++) {
- list.add("Item " + i);
- }
-
- ComboBox cb = new ComboBox("Combobox", list);
- cb.setImmediate(true);
- cb.setInputPrompt("Enter text");
- cb.setDescription("Some Combobox");
- addComponent(cb);
-
- final ObjectProperty<String> log = new ObjectProperty<String>("");
-
- cb.addListener(new FieldEvents.FocusListener() {
- @Override
- public void focus(FocusEvent event) {
- log.setValue(log.getValue().toString() + "<br>" + counter
- + ": Focus event!");
- counter++;
- }
- });
-
- cb.addListener(new FieldEvents.BlurListener() {
- @Override
- public void blur(BlurEvent event) {
- log.setValue(log.getValue().toString() + "<br>" + counter
- + ": Blur event!");
- counter++;
- }
- });
-
- TextField field = new TextField("Some textfield");
- field.setImmediate(true);
- addComponent(field);
-
- Label output = new Label(log);
- output.setCaption("Events:");
-
- output.setContentMode(ContentMode.HTML);
- addComponent(output);
-
- }
-
- @Override
- protected String getDescription() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- protected Integer getTicketNumber() {
- return 6536;
- }
-
-}