]> source.dussan.org Git - vaadin-framework.git/commitdiff
removed support to open link to Toolkit Window
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 1 Aug 2007 06:52:53 +0000 (06:52 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 1 Aug 2007 06:52:53 +0000 (06:52 +0000)
svn changeset:1927/svn branch:trunk

src/com/itmill/toolkit/ui/Link.java

index 03f02a20c7946984a5304a84ef09bdfd20a9c4dc..8945931f002420ead4588e2095fbccecd8570c26 100644 (file)
@@ -35,10 +35,6 @@ import com.itmill.toolkit.terminal.Resource;
 /**
  * Link is used to create external or internal URL links.
  * 
- * Internal links can be used to create action items, which change the state to
- * application to one of the predefined states. For example, a link can be
- * created for existing MenuTree items.
- * 
  * @author IT Mill Ltd.
  * @version
  * @VERSION@
@@ -149,9 +145,7 @@ public class Link extends AbstractComponent {
         */
        public void paintContent(PaintTarget target) throws PaintException {
 
-               if (window != null)
-                       target.addAttribute("src", window.getURL().toString());
-               else if (resource != null)
+               if (resource != null)
                        target.addAttribute("src", resource);
                else
                        return;
@@ -294,19 +288,4 @@ public class Link extends AbstractComponent {
                }
                requestRepaint();
        }
-
-       /**
-        * Sets the window this link opens.
-        * 
-        * @param window
-        *            the window to set.
-        */
-       public void setWindow(Window window) {
-               this.window = window;
-               if (window != null) {
-                       this.resource = null;
-               }
-               requestRepaint();
-       }
-
 }