]> source.dussan.org Git - vaadin-framework.git/commitdiff
svn changeset:601/svn branch:toolkit
authorJani Laakso <jani.laakso@itmill.com>
Fri, 9 Feb 2007 12:27:17 +0000 (12:27 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Fri, 9 Feb 2007 12:27:17 +0000 (12:27 +0000)
src/com/itmill/toolkit/demo/features/FeatureCustomLayout.java

index a53979c9a09a92753fa89ea1ad5959966fc6098f..bd9b6058867fe6ad465b0b4f32cc95767d543992 100644 (file)
 
 package com.itmill.toolkit.demo.features;
 
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import com.itmill.toolkit.terminal.ExternalResource;
 import com.itmill.toolkit.ui.*;
 
 public class FeatureCustomLayout extends Feature {
@@ -68,27 +64,12 @@ public class FeatureCustomLayout extends Feature {
        protected Component getDemoComponent() {
                OrderedLayout l = new OrderedLayout();
 
-               // TODO doc change
-               l
-                               .addComponent(new Label(
-                                               "<p>For demonstration, see GO-Game example application. All of the "
-                                                               + "layouting done in the aplication is handled by CustomLayout with \"goroom\"-style "
-                                                               + "that is defined in \"gogame\"-theme. The theme is simply created by exteding "
-                                                               + "default theme trough theme-inheritance and adding couple of xsl-templates</p>",
-                                               Label.CONTENT_UIDL));
-
-               URL goUrl = null;
-               try {
-                       goUrl = new URL(getApplication().getURL(), "../go/");
-               } catch (MalformedURLException e) {
-               }
-
-               if (goUrl != null) {
-                       Link link = new Link("Start GO-Game", new ExternalResource(goUrl));
-                       link.setTargetName("gogame");
-                       link.setTargetBorder(Link.TARGET_BORDER_NONE);
-                       l.addComponent(link);
-               }
+               Label lab = new Label();
+               lab.setStyle("featurebrowser-none");
+               l.addComponent(lab);
+
+               // Properties
+               propertyPanel = null;
 
                return l;
        }