aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java')
-rw-r--r--src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java b/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java
deleted file mode 100644
index 855fb0ab93..0000000000
--- a/src/com/vaadin/demo/sampler/features/link/LinkCurrentWindowExample.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.vaadin.demo.sampler.features.link;
-
-import com.vaadin.terminal.ExternalResource;
-import com.vaadin.terminal.ThemeResource;
-import com.vaadin.ui.Link;
-import com.vaadin.ui.VerticalLayout;
-
-@SuppressWarnings("serial")
-public class LinkCurrentWindowExample extends VerticalLayout {
-
- private static final String CAPTION = "Open Google";
- private static final String TOOLTIP = "http://www.google.com";
- private static final ThemeResource ICON = new ThemeResource("../sampler/icons/icon_world.gif");
-
- public LinkCurrentWindowExample() {
- setSpacing(true);
-
- // Link w/ text and tooltip
- Link l = new Link(CAPTION,
- new ExternalResource("http://www.google.com"));
- l.setDescription(TOOLTIP);
- addComponent(l);
-
- // Link w/ text, icon and tooltip
- l = new Link(CAPTION, new ExternalResource("http://www.google.com"));
- l.setDescription(TOOLTIP);
- l.setIcon(ICON);
- addComponent(l);
-
- // Link w/ icon and tooltip
- l = new Link();
- l.setResource(new ExternalResource("http://www.google.com"));
- l.setDescription(TOOLTIP);
- l.setIcon(ICON);
- addComponent(l);
-
- }
-}