aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/featurebrowser/FeatureContainers.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/FeatureContainers.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/FeatureContainers.java')
-rw-r--r--src/com/itmill/toolkit/tests/featurebrowser/FeatureContainers.java144
1 files changed, 72 insertions, 72 deletions
diff --git a/src/com/itmill/toolkit/tests/featurebrowser/FeatureContainers.java b/src/com/itmill/toolkit/tests/featurebrowser/FeatureContainers.java
index 4f02c5313b..62d2a5753f 100644
--- a/src/com/itmill/toolkit/tests/featurebrowser/FeatureContainers.java
+++ b/src/com/itmill/toolkit/tests/featurebrowser/FeatureContainers.java
@@ -37,77 +37,77 @@ import com.itmill.toolkit.ui.Select;
public class FeatureContainers extends Feature {
- private static final String INTRO_TEXT = ""
- + "Container is the most advanced of the data "
- + "model supported by IT Mill Toolkit. It provides a very flexible "
- + "way of managing set of items that share common properties. Each "
- + "item is identified by an item id. "
- + "Properties can be requested from container with item "
- + "and property ids. Other way of accessing properties is to first "
- + "request an item from container and then request its properties "
- + "from it."
- + "<br /><br />Container interface was designed with flexibility and "
- + "efficiency in mind. It contains inner interfaces for ordering "
- + "the items sequentially, indexing the items and accessing them "
- + "hierarchically. Those ordering models provide basis for "
- + "Table, Tree and Select UI components. As with other data "
- + "models, the containers support events for notifying about the "
- + "changes."
- + "<br /><br />Set of utilities for converting between container models by "
- + "adding external indexing or hierarchy into existing containers. "
- + "In memory containers implementing indexed and hierarchical "
- + "models provide easy to use tools for setting up in memory data "
- + "storages. There is even a hierarchical container for direct "
- + "file system access.";
-
- public FeatureContainers() {
- super();
- }
-
- protected Component getDemoComponent() {
-
- OrderedLayout l = new OrderedLayout();
-
- Panel panel = new Panel();
- panel.setCaption("Containers");
- l.addComponent(panel);
-
- Label label = new Label();
- panel.addComponent(label);
-
- label.setContentMode(Label.CONTENT_XHTML);
- label.setValue(INTRO_TEXT);
-
- // Properties
- propertyPanel = new PropertyPanel(panel);
- Form ap = propertyPanel.createBeanPropertySet(new String[] { "width",
- "height" });
- Select themes = (Select) propertyPanel.getField("style");
- themes.addItem("light").getItemProperty(
- themes.getItemCaptionPropertyId()).setValue("light");
- themes.addItem("strong").getItemProperty(
- themes.getItemCaptionPropertyId()).setValue("strong");
- propertyPanel.addProperties("Panel Properties", ap);
-
- setJavadocURL("data/Container.html");
-
- return l;
- }
-
- protected String getExampleSrc() {
- return null;
- }
-
- protected String getDescriptionXHTML() {
- return null;
- }
-
- protected String getImage() {
- return null;
- }
-
- protected String getTitle() {
- return null;
- }
+ private static final String INTRO_TEXT = ""
+ + "Container is the most advanced of the data "
+ + "model supported by IT Mill Toolkit. It provides a very flexible "
+ + "way of managing set of items that share common properties. Each "
+ + "item is identified by an item id. "
+ + "Properties can be requested from container with item "
+ + "and property ids. Other way of accessing properties is to first "
+ + "request an item from container and then request its properties "
+ + "from it."
+ + "<br /><br />Container interface was designed with flexibility and "
+ + "efficiency in mind. It contains inner interfaces for ordering "
+ + "the items sequentially, indexing the items and accessing them "
+ + "hierarchically. Those ordering models provide basis for "
+ + "Table, Tree and Select UI components. As with other data "
+ + "models, the containers support events for notifying about the "
+ + "changes."
+ + "<br /><br />Set of utilities for converting between container models by "
+ + "adding external indexing or hierarchy into existing containers. "
+ + "In memory containers implementing indexed and hierarchical "
+ + "models provide easy to use tools for setting up in memory data "
+ + "storages. There is even a hierarchical container for direct "
+ + "file system access.";
+
+ public FeatureContainers() {
+ super();
+ }
+
+ protected Component getDemoComponent() {
+
+ OrderedLayout l = new OrderedLayout();
+
+ Panel panel = new Panel();
+ panel.setCaption("Containers");
+ l.addComponent(panel);
+
+ Label label = new Label();
+ panel.addComponent(label);
+
+ label.setContentMode(Label.CONTENT_XHTML);
+ label.setValue(INTRO_TEXT);
+
+ // Properties
+ propertyPanel = new PropertyPanel(panel);
+ Form ap = propertyPanel.createBeanPropertySet(new String[] { "width",
+ "height" });
+ Select themes = (Select) propertyPanel.getField("style");
+ themes.addItem("light").getItemProperty(
+ themes.getItemCaptionPropertyId()).setValue("light");
+ themes.addItem("strong").getItemProperty(
+ themes.getItemCaptionPropertyId()).setValue("strong");
+ propertyPanel.addProperties("Panel Properties", ap);
+
+ setJavadocURL("data/Container.html");
+
+ return l;
+ }
+
+ protected String getExampleSrc() {
+ return null;
+ }
+
+ protected String getDescriptionXHTML() {
+ return null;
+ }
+
+ protected String getImage() {
+ return null;
+ }
+
+ protected String getTitle() {
+ return null;
+ }
}