aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/featurebrowser/FeatureLabel.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/FeatureLabel.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/FeatureLabel.java')
-rw-r--r--src/com/itmill/toolkit/tests/featurebrowser/FeatureLabel.java123
1 files changed, 63 insertions, 60 deletions
diff --git a/src/com/itmill/toolkit/tests/featurebrowser/FeatureLabel.java b/src/com/itmill/toolkit/tests/featurebrowser/FeatureLabel.java
index 7afb65604b..4f1febb783 100644
--- a/src/com/itmill/toolkit/tests/featurebrowser/FeatureLabel.java
+++ b/src/com/itmill/toolkit/tests/featurebrowser/FeatureLabel.java
@@ -28,68 +28,71 @@
package com.itmill.toolkit.tests.featurebrowser;
-import com.itmill.toolkit.ui.*;
+import com.itmill.toolkit.ui.Component;
+import com.itmill.toolkit.ui.Form;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.OrderedLayout;
public class FeatureLabel extends Feature {
- public FeatureLabel() {
- super();
- }
-
- protected Component getDemoComponent() {
-
- OrderedLayout l = new OrderedLayout();
-
- Label lab = new Label("Label text");
- l.addComponent(lab);
-
- // Properties
- propertyPanel = new PropertyPanel(lab);
- Form ap = propertyPanel.createBeanPropertySet(new String[] {
- "contentMode", "value" });
- ap.replaceWithSelect("contentMode", new Object[] {
- new Integer(Label.CONTENT_PREFORMATTED),
- new Integer(Label.CONTENT_TEXT),
- new Integer(Label.CONTENT_UIDL),
- new Integer(Label.CONTENT_XHTML),
- new Integer(Label.CONTENT_XML) },
- new Object[] { "Preformatted", "Text", "UIDL (Must be valid)",
- "XHTML Fragment(Must be valid)",
- "XML (Subtree with namespace)" });
- propertyPanel.addProperties("Label Properties", ap);
-
- setJavadocURL("ui/Label.html");
-
- return l;
- }
-
- protected String getExampleSrc() {
- return "Label l = new Label(\"Caption\");\n";
- }
-
- /**
- * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
- */
- protected String getDescriptionXHTML() {
- return "Labels components are for captions and plain text. "
- + "By default, it is a light-weight component for presenting "
- + "text content in application, but it can be also used to present "
- + "formatted information and even XML."
- + "<br /><br />"
- + "Label can also be directly associated with data property to display "
- + "information from different data sources automatically. This makes it "
- + "trivial to present the current user in the corner of applications main window. "
- + "<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 "Label";
- }
+ public FeatureLabel() {
+ super();
+ }
+
+ protected Component getDemoComponent() {
+
+ OrderedLayout l = new OrderedLayout();
+
+ Label lab = new Label("Label text");
+ l.addComponent(lab);
+
+ // Properties
+ propertyPanel = new PropertyPanel(lab);
+ Form ap = propertyPanel.createBeanPropertySet(new String[] {
+ "contentMode", "value" });
+ ap.replaceWithSelect("contentMode", new Object[] {
+ new Integer(Label.CONTENT_PREFORMATTED),
+ new Integer(Label.CONTENT_TEXT),
+ new Integer(Label.CONTENT_UIDL),
+ new Integer(Label.CONTENT_XHTML),
+ new Integer(Label.CONTENT_XML) },
+ new Object[] { "Preformatted", "Text", "UIDL (Must be valid)",
+ "XHTML Fragment(Must be valid)",
+ "XML (Subtree with namespace)" });
+ propertyPanel.addProperties("Label Properties", ap);
+
+ setJavadocURL("ui/Label.html");
+
+ return l;
+ }
+
+ protected String getExampleSrc() {
+ return "Label l = new Label(\"Caption\");\n";
+ }
+
+ /**
+ * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
+ */
+ protected String getDescriptionXHTML() {
+ return "Labels components are for captions and plain text. "
+ + "By default, it is a light-weight component for presenting "
+ + "text content in application, but it can be also used to present "
+ + "formatted information and even XML."
+ + "<br /><br />"
+ + "Label can also be directly associated with data property to display "
+ + "information from different data sources automatically. This makes it "
+ + "trivial to present the current user in the corner of applications main window. "
+ + "<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 "Label";
+ }
}