aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-10-27 07:57:12 +0000
committerArtur Signell <artur.signell@itmill.com>2009-10-27 07:57:12 +0000
commit6a3c715dae922edd723c9423b4308d5d7948b74e (patch)
tree46a007274681a9803afccf135ace5554f3e01e3a /src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java
parent931d75fef69deb9b738fad97001cf5621de9f43e (diff)
downloadvaadin-framework-6a3c715dae922edd723c9423b4308d5d7948b74e.tar.gz
vaadin-framework-6a3c715dae922edd723c9423b4308d5d7948b74e.zip
Split demo and tests files to own source folders, for #3298
svn changeset:9390/svn branch:6.2
Diffstat (limited to 'src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java')
-rw-r--r--src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java b/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java
deleted file mode 100644
index b9a0469127..0000000000
--- a/src/com/vaadin/demo/sampler/features/selects/ComboBoxInputPromptExample.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.vaadin.demo.sampler.features.selects;
-
-import com.vaadin.data.Property;
-import com.vaadin.data.Property.ValueChangeEvent;
-import com.vaadin.ui.ComboBox;
-import com.vaadin.ui.VerticalLayout;
-
-@SuppressWarnings("serial")
-public class ComboBoxInputPromptExample extends VerticalLayout implements
- Property.ValueChangeListener {
-
- private static final String[] cities = new String[] { "Berlin", "Brussels",
- "Helsinki", "Madrid", "Oslo", "Paris", "Stockholm" };
-
- public ComboBoxInputPromptExample() {
- setMargin(true, false, false, false); // for looks: more 'air'
-
- // Create & set input prompt
- ComboBox l = new ComboBox();
- l.setInputPrompt("Please select a city");
-
- // configure & load content
- l.setImmediate(true);
- l.addListener(this);
- for (int i = 0; i < cities.length; i++) {
- l.addItem(cities[i]);
- }
-
- // add to the layout
- addComponent(l);
- }
-
- /*
- * Shows a notification when a selection is made.
- */
- public void valueChange(ValueChangeEvent event) {
- getWindow().showNotification("Selected city: " + event.getProperty());
-
- }
-}