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/text/TextFieldInputPromptExample.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/text/TextFieldInputPromptExample.java')
-rw-r--r-- | src/com/vaadin/demo/sampler/features/text/TextFieldInputPromptExample.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/com/vaadin/demo/sampler/features/text/TextFieldInputPromptExample.java b/src/com/vaadin/demo/sampler/features/text/TextFieldInputPromptExample.java deleted file mode 100644 index 0889b07fa1..0000000000 --- a/src/com/vaadin/demo/sampler/features/text/TextFieldInputPromptExample.java +++ /dev/null @@ -1,50 +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 TextFieldInputPromptExample extends VerticalLayout implements
- Property.ValueChangeListener {
-
- public TextFieldInputPromptExample() {
- // add som 'air' to the layout
- setSpacing(true);
- setMargin(true, false, false, false);
-
- // Username field + input prompt
- TextField username = new TextField();
- username.setInputPrompt("Username");
- // configure & add to layout
- username.setImmediate(true);
- username.addListener(this);
- addComponent(username);
-
- // Password field + input prompt
- TextField password = new TextField();
- password.setInputPrompt("Password");
- // configure & add to layout
- password.setSecret(true);
- password.setImmediate(true);
- password.addListener(this);
- addComponent(password);
-
- // Comment field + input prompt
- TextField comment = new TextField();
- comment.setInputPrompt("Comment");
- // configure & add to layout
- comment.setRows(3);
- comment.setImmediate(true);
- comment.addListener(this);
- addComponent(comment);
-
- }
-
- public void valueChange(ValueChangeEvent event) {
- getWindow().showNotification("Received " + event.getProperty());
-
- }
-
-}
|