aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2007-11-19 14:03:05 +0000
committerMarc Englund <marc.englund@itmill.com>2007-11-19 14:03:05 +0000
commitf2e3722df9676436680afc0f1991e91e1696fb99 (patch)
tree6f255ff78abaf96f1e71a1f2c9ecd3b66647f4a2 /src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java
parent93291f532db9d545cf2a8dd98e2671f27cd197b0 (diff)
downloadvaadin-framework-f2e3722df9676436680afc0f1991e91e1696fb99.tar.gz
vaadin-framework-f2e3722df9676436680afc0f1991e91e1696fb99.zip
MASS REFORMAT.
According to http://toolkit.intra.itmill.com/trac/itmilltoolkit/wiki/CodingConventions svn changeset:2864/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java')
-rw-r--r--src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java121
1 files changed, 64 insertions, 57 deletions
diff --git a/src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java b/src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java
index 0165f617d2..63b8235543 100644
--- a/src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java
+++ b/src/com/itmill/toolkit/tests/featurebrowser/FeatureGridLayout.java
@@ -30,64 +30,71 @@ package com.itmill.toolkit.tests.featurebrowser;
import java.util.Date;
-import com.itmill.toolkit.ui.*;
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Component;
+import com.itmill.toolkit.ui.DateField;
+import com.itmill.toolkit.ui.Form;
+import com.itmill.toolkit.ui.GridLayout;
+import com.itmill.toolkit.ui.OrderedLayout;
+import com.itmill.toolkit.ui.TextField;
public class FeatureGridLayout extends Feature {
- public FeatureGridLayout() {
- super();
- }
-
- protected Component getDemoComponent() {
-
- OrderedLayout l = new OrderedLayout();
-
- GridLayout gl = new GridLayout(3, 3);
- DateField cal = new DateField("Test component 1", new Date());
- cal.setStyle("calendar");
- gl.addComponent(cal, 1, 0, 2, 1);
- for (int i = 2; i < 7; i++)
- gl.addComponent(new TextField("Test component " + i));
- l.addComponent(gl);
-
- // Properties
- propertyPanel = new PropertyPanel(gl);
- Form ap = propertyPanel.createBeanPropertySet(new String[] { "width",
- "height" });
- ap.addField("new line", new Button("New Line", gl, "newLine"));
- ap.addField("space", new Button("Space", gl, "space"));
- propertyPanel.addProperties("GridLayout Features", ap);
- propertyPanel.getField("height").dependsOn(
- propertyPanel.getField("add component"));
-
- setJavadocURL("ui/GridLayout.html");
-
- return l;
- }
-
- protected String getExampleSrc() {
- return "GridLayout gl = new GridLayout(2,2);\n"
- + "gl.addComponent(new Label(\"Label 1 in GridLayout\"));\n"
- + "gl.addComponent(new Label(\"Label 2 in GridLayout\"));\n"
- + "gl.addComponent(new Label(\"Label 3 in GridLayout\"));\n"
- + "gl.addComponent(new Label(\"Label 4 in GridLayout\"));\n";
- }
-
- /**
- * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
- */
- protected String getDescriptionXHTML() {
- return "This feature provides a container that lays out components "
- + "into a grid of given width and height."
- + "<br /><br />On the demo tab you can try out how the different "
- + "properties affect the presentation of the component.";
- }
-
- protected String getImage() {
- return "icon_demo.png";
- }
-
- protected String getTitle() {
- return "GridLayout";
- }
+ public FeatureGridLayout() {
+ super();
+ }
+
+ protected Component getDemoComponent() {
+
+ OrderedLayout l = new OrderedLayout();
+
+ GridLayout gl = new GridLayout(3, 3);
+ DateField cal = new DateField("Test component 1", new Date());
+ cal.setStyle("calendar");
+ gl.addComponent(cal, 1, 0, 2, 1);
+ for (int i = 2; i < 7; i++) {
+ gl.addComponent(new TextField("Test component " + i));
+ }
+ l.addComponent(gl);
+
+ // Properties
+ propertyPanel = new PropertyPanel(gl);
+ Form ap = propertyPanel.createBeanPropertySet(new String[] { "width",
+ "height" });
+ ap.addField("new line", new Button("New Line", gl, "newLine"));
+ ap.addField("space", new Button("Space", gl, "space"));
+ propertyPanel.addProperties("GridLayout Features", ap);
+ propertyPanel.getField("height").dependsOn(
+ propertyPanel.getField("add component"));
+
+ setJavadocURL("ui/GridLayout.html");
+
+ return l;
+ }
+
+ protected String getExampleSrc() {
+ return "GridLayout gl = new GridLayout(2,2);\n"
+ + "gl.addComponent(new Label(\"Label 1 in GridLayout\"));\n"
+ + "gl.addComponent(new Label(\"Label 2 in GridLayout\"));\n"
+ + "gl.addComponent(new Label(\"Label 3 in GridLayout\"));\n"
+ + "gl.addComponent(new Label(\"Label 4 in GridLayout\"));\n";
+ }
+
+ /**
+ * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
+ */
+ protected String getDescriptionXHTML() {
+ return "This feature provides a container that lays out components "
+ + "into a grid of given width and height."
+ + "<br /><br />On the demo tab you can try out how the different "
+ + "properties affect the presentation of the component.";
+ }
+
+ protected String getImage() {
+ return "icon_demo.png";
+ }
+
+ protected String getTitle() {
+ return "GridLayout";
+ }
} \ No newline at end of file