diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2007-11-30 07:42:24 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2007-11-30 07:42:24 +0000 |
commit | 91e871a42829e9f916f7bbadfcc71a626be61421 (patch) | |
tree | aa840f1a3b3e1653849ee652e62049e07984b159 /src/com/itmill/toolkit/ui/Link.java | |
parent | 49bd9c0cdb9685359783d704b791bc0a69351d83 (diff) | |
download | vaadin-framework-91e871a42829e9f916f7bbadfcc71a626be61421.tar.gz vaadin-framework-91e871a42829e9f916f7bbadfcc71a626be61421.zip |
removed broken code related historical features
svn changeset:3053/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/Link.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/Link.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/com/itmill/toolkit/ui/Link.java b/src/com/itmill/toolkit/ui/Link.java index db9d6a7239..6e12c67a31 100644 --- a/src/com/itmill/toolkit/ui/Link.java +++ b/src/com/itmill/toolkit/ui/Link.java @@ -53,8 +53,6 @@ public class Link extends AbstractComponent { private Resource resource = null; - private Window window = null; - private String targetName; private int targetBorder = TARGET_BORDER_DEFAULT; @@ -71,23 +69,6 @@ public class Link extends AbstractComponent { } /** - * Creates a new link to a window. - */ - public Link(Window window) { - - // Sets the link caption to match window caption - setCaption(window.getCaption()); - - // Sets the target - setTargetName(window.getName()); - - setTargetName(window.getName()); - setTargetWidth(window.getWidth()); - setTargetHeight(window.getHeight()); - setTargetBorder(window.getBorder()); - } - - /** * Creates a new instance of Link. * * @param caption @@ -271,15 +252,6 @@ public class Link extends AbstractComponent { } /** - * Returns the window this link opens. - * - * @return the Window. - */ - public Window getWindow() { - return window; - } - - /** * Sets the resource this link opens. * * @param resource @@ -287,9 +259,6 @@ public class Link extends AbstractComponent { */ public void setResource(Resource resource) { this.resource = resource; - if (resource != null) { - window = null; - } requestRepaint(); } } |