aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.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/buttons/ButtonPushExample.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/buttons/ButtonPushExample.java')
-rw-r--r--src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java b/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java
deleted file mode 100644
index c9e3943770..0000000000
--- a/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.vaadin.demo.sampler.features.buttons;
-
-import com.vaadin.terminal.ThemeResource;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.VerticalLayout;
-import com.vaadin.ui.Button.ClickEvent;
-
-@SuppressWarnings("serial")
-public class ButtonPushExample extends VerticalLayout implements
- Button.ClickListener {
-
- private static final String CAPTION = "Save";
- private static final String TOOLTIP = "Save changes";
- private static final ThemeResource ICON = new ThemeResource("../sampler/icons/action_save.gif");
- private static final String NOTIFICATION = "Changes have been saved";
-
- public ButtonPushExample() {
- setSpacing(true);
-
- // Button w/ text and tooltip
- Button b = new Button(CAPTION);
- b.setDescription(TOOLTIP);
- b.addListener(this); // react to clicks
- addComponent(b);
-
- // Button w/ text, icon and tooltip
- b = new Button(CAPTION);
- b.setDescription(TOOLTIP);
- b.setIcon(ICON);
- b.addListener(this); // react to clicks
- addComponent(b);
-
- // Button w/ icon and tooltip
- b = new Button();
- b.setDescription(TOOLTIP);
- b.setIcon(ICON);
- b.addListener(this); // react to clicks
- addComponent(b);
-
- }
-
- /*
- * Shows a notification when a button is clicked.
- */
- public void buttonClick(ClickEvent event) {
- getWindow().showNotification(NOTIFICATION);
- }
-}