aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java')
-rw-r--r--src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java b/src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java
deleted file mode 100644
index 209cdc3429..0000000000
--- a/src/com/vaadin/demo/sampler/features/text/TextFieldSingleExample.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.vaadin.demo.sampler.features.text;
-
-import com.vaadin.data.Property;
-import com.vaadin.data.Property.ValueChangeEvent;
-import com.vaadin.ui.TextField;
-import com.vaadin.ui.VerticalLayout;
-
-@SuppressWarnings("serial")
-public class TextFieldSingleExample extends VerticalLayout implements
- Property.ValueChangeListener {
-
- private final TextField editor = new TextField("Echo this:");
-
- public TextFieldSingleExample() {
- setSpacing(true);
-
- editor.addListener(this);
- editor.setImmediate(true);
- // editor.setColumns(5); // guarantees that at least 5 chars fit
-
- addComponent(editor);
- }
-
- /*
- * Catch the valuechange event of the textfield and update the value of the
- * label component
- */
- public void valueChange(ValueChangeEvent event) {
- // Show the new value we received
- getWindow().showNotification((String) editor.getValue());
- }
-}