aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java')
-rw-r--r--src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java b/src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java
deleted file mode 100644
index f328c3dfac..0000000000
--- a/src/com/vaadin/demo/sampler/features/buttons/ButtonLinkExample.java
+++ /dev/null
@@ -1,51 +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 ButtonLinkExample extends VerticalLayout implements
- Button.ClickListener {
-
- private static final String CAPTION = "Help";
- private static final String TOOLTIP = "Show help";
- private static final ThemeResource ICON = new ThemeResource("../sampler/icons/icon_info.gif");
- private static final String NOTIFICATION = "Help clicked";
-
- public ButtonLinkExample() {
- setSpacing(true);
-
- // Button w/ text and tooltip
- Button b = new Button(CAPTION);
- b.setStyleName(Button.STYLE_LINK);
- b.setDescription(TOOLTIP);
- b.addListener(this); // react to clicks
- addComponent(b);
-
- // Button w/ text, icon and tooltip
- b = new Button(CAPTION);
- b.setStyleName(Button.STYLE_LINK);
- b.setDescription(TOOLTIP);
- b.setIcon(ICON);
- b.addListener(this); // react to clicks
- addComponent(b);
-
- // Button w/ icon and tooltip
- b = new Button();
- b.setStyleName(Button.STYLE_LINK);
- 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);
- }
-}