aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java')
-rw-r--r--src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java b/src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java
deleted file mode 100644
index f1798f0a83..0000000000
--- a/src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.vaadin.demo.sampler.features.selects;
-
-import com.vaadin.data.Property;
-import com.vaadin.data.Property.ValueChangeEvent;
-import com.vaadin.ui.NativeSelect;
-import com.vaadin.ui.VerticalLayout;
-
-@SuppressWarnings("serial")
-public class NativeSelectionExample extends VerticalLayout implements
- Property.ValueChangeListener {
-
- private static final String[] cities = new String[] { "Berlin", "Brussels",
- "Helsinki", "Madrid", "Oslo", "Paris", "Stockholm" };
-
- public NativeSelectionExample() {
- setSpacing(true);
-
- NativeSelect l = new NativeSelect("Please select a city");
- for (int i = 0; i < cities.length; i++) {
- l.addItem(cities[i]);
- }
-
- l.setNullSelectionAllowed(false);
- l.setValue("Berlin");
- l.setImmediate(true);
- l.addListener(this);
-
- addComponent(l);
- }
-
- /*
- * Shows a notification when a selection is made.
- */
- public void valueChange(ValueChangeEvent event) {
- getWindow().showNotification("Selected city: " + event.getProperty());
-
- }
-}