aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.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/notifications/NotificationHumanizedExample.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/notifications/NotificationHumanizedExample.java')
-rw-r--r--src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.java b/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.java
deleted file mode 100644
index 69c1bf59c4..0000000000
--- a/src/com/vaadin/demo/sampler/features/notifications/NotificationHumanizedExample.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.vaadin.demo.sampler.features.notifications;
-
-import com.vaadin.ui.Alignment;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.TextField;
-import com.vaadin.ui.VerticalLayout;
-import com.vaadin.ui.Button.ClickEvent;
-
-@SuppressWarnings("serial")
-public class NotificationHumanizedExample extends VerticalLayout {
-
- public NotificationHumanizedExample() {
- setSpacing(true);
- setWidth(null); // layout will grow with content
-
- final TextField caption = new TextField("Caption", "Document saved");
- caption.setWidth("200px");
- addComponent(caption);
-
- final TextField description = new TextField("Description",
- "Invoices-2008.csv");
- description.setWidth("300px");
- addComponent(description);
-
- Button show = new Button("Show notification",
- new Button.ClickListener() {
- public void buttonClick(ClickEvent event) {
- getWindow().showNotification(
- (String) caption.getValue(),
- (String) description.getValue());
-
- }
- });
- addComponent(show);
- setComponentAlignment(show, Alignment.MIDDLE_RIGHT);
-
- }
-}