Browse Source

svn changeset:601/svn branch:toolkit

tags/6.7.0.beta1
Jani Laakso 17 years ago
parent
commit
6192230511
1 changed files with 6 additions and 25 deletions
  1. 6
    25
      src/com/itmill/toolkit/demo/features/FeatureCustomLayout.java

+ 6
- 25
src/com/itmill/toolkit/demo/features/FeatureCustomLayout.java View File

@@ -28,10 +28,6 @@

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;
}

Loading…
Cancel
Save