aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/features/buttons/ButtonPushExample.java
diff options
context:
space:
mode:
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);
- }
-}