aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/featurebrowser/FeatureButton.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/FeatureButton.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/FeatureButton.java')
-rw-r--r--src/com/itmill/toolkit/tests/featurebrowser/FeatureButton.java108
1 files changed, 56 insertions, 52 deletions
diff --git a/src/com/itmill/toolkit/tests/featurebrowser/FeatureButton.java b/src/com/itmill/toolkit/tests/featurebrowser/FeatureButton.java
index b572870be1..b3038a76ef 100644
--- a/src/com/itmill/toolkit/tests/featurebrowser/FeatureButton.java
+++ b/src/com/itmill/toolkit/tests/featurebrowser/FeatureButton.java
@@ -28,60 +28,64 @@
package com.itmill.toolkit.tests.featurebrowser;
-import com.itmill.toolkit.ui.*;
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Component;
+import com.itmill.toolkit.ui.Form;
+import com.itmill.toolkit.ui.OrderedLayout;
+import com.itmill.toolkit.ui.Select;
public class FeatureButton extends Feature {
- public FeatureButton() {
- super();
- }
-
- protected Component getDemoComponent() {
-
- OrderedLayout l = new OrderedLayout();
-
- Button b = new Button("Caption");
- l.addComponent(b);
-
- // Properties
- propertyPanel = new PropertyPanel(b);
- Select themes = (Select) propertyPanel.getField("style");
- themes.addItem("link").getItemProperty(
- themes.getItemCaptionPropertyId()).setValue("link");
- Form ap = propertyPanel
- .createBeanPropertySet(new String[] { "switchMode" });
- propertyPanel.addProperties("Button Properties", ap);
-
- setJavadocURL("ui/Button.html");
-
- return l;
- }
-
- protected String getExampleSrc() {
- return "Button b = new Button(\"Caption\");\n";
-
- }
-
- /**
- * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
- */
- protected String getDescriptionXHTML() {
- return "In IT Mill Toolkit, boolean input values are represented by buttons. "
- + "Buttons may function either as a push buttons or switches. (checkboxes)<br/><br/>"
- + "Button can be directly connected to any method of an object, which "
- + "is an easy way to trigger events: <code> new Button(\"Play\", myPiano \"playIt\")</code>. "
- + "Or in checkbox-mode they can be bound to a boolean proterties and create "
- + " simple selectors.<br /><br /> "
- + "See the demo and try out how the different properties affect "
- + "the presentation of the component.";
- }
-
- protected String getImage() {
- return "icon_demo.png";
- }
-
- protected String getTitle() {
- return "Button";
- }
+ public FeatureButton() {
+ super();
+ }
+
+ protected Component getDemoComponent() {
+
+ OrderedLayout l = new OrderedLayout();
+
+ Button b = new Button("Caption");
+ l.addComponent(b);
+
+ // Properties
+ propertyPanel = new PropertyPanel(b);
+ Select themes = (Select) propertyPanel.getField("style");
+ themes.addItem("link").getItemProperty(
+ themes.getItemCaptionPropertyId()).setValue("link");
+ Form ap = propertyPanel
+ .createBeanPropertySet(new String[] { "switchMode" });
+ propertyPanel.addProperties("Button Properties", ap);
+
+ setJavadocURL("ui/Button.html");
+
+ return l;
+ }
+
+ protected String getExampleSrc() {
+ return "Button b = new Button(\"Caption\");\n";
+
+ }
+
+ /**
+ * @see com.itmill.toolkit.tests.featurebrowser.Feature#getDescriptionXHTML()
+ */
+ protected String getDescriptionXHTML() {
+ return "In IT Mill Toolkit, boolean input values are represented by buttons. "
+ + "Buttons may function either as a push buttons or switches. (checkboxes)<br/><br/>"
+ + "Button can be directly connected to any method of an object, which "
+ + "is an easy way to trigger events: <code> new Button(\"Play\", myPiano \"playIt\")</code>. "
+ + "Or in checkbox-mode they can be bound to a boolean proterties and create "
+ + " simple selectors.<br /><br /> "
+ + "See the demo and try out how the different properties affect "
+ + "the presentation of the component.";
+ }
+
+ protected String getImage() {
+ return "icon_demo.png";
+ }
+
+ protected String getTitle() {
+ return "Button";
+ }
}