diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-10-27 07:57:12 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-10-27 07:57:12 +0000 |
commit | 6a3c715dae922edd723c9423b4308d5d7948b74e (patch) | |
tree | 46a007274681a9803afccf135ace5554f3e01e3a /src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java | |
parent | 931d75fef69deb9b738fad97001cf5621de9f43e (diff) | |
download | vaadin-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/NativeSelectionExample.java')
-rw-r--r-- | src/com/vaadin/demo/sampler/features/selects/NativeSelectionExample.java | 38 |
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());
-
- }
-}
|