aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.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/TestForBasicApplicationLayout.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/TestForBasicApplicationLayout.java')
-rw-r--r--src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java166
1 files changed, 83 insertions, 83 deletions
diff --git a/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java b/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java
index e7712ecaaa..945035b3f9 100644
--- a/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java
+++ b/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java
@@ -18,88 +18,88 @@ import com.itmill.toolkit.ui.Button.ClickListener;
public class TestForBasicApplicationLayout extends CustomComponent {
- private Button click;
- private Button click2;
- private TabSheet tab;
-
- public TestForBasicApplicationLayout() {
-
- click = new Button("Set height -1", new ClickListener() {
-
- public void buttonClick(ClickEvent event) {
- tab.setHeight(-1);
- }
-
- });
-
- click2 = new Button("Set height 100%", new ClickListener() {
-
- public void buttonClick(ClickEvent event) {
- tab.setHeight(100);
- tab.setHeightUnits(Sizeable.UNITS_PERCENTAGE);
- }
-
- });
-
- SplitPanel sp = new SplitPanel(SplitPanel.ORIENTATION_HORIZONTAL);
- sp.setSplitPosition(290, Sizeable.UNITS_PIXELS);
-
- SplitPanel sp2 = new SplitPanel(SplitPanel.ORIENTATION_VERTICAL);
- sp2.setSplitPosition(255, Sizeable.UNITS_PIXELS);
-
- Panel p = new Panel("Accordion Panel");
- p.setHeight(100);
- p.setHeightUnits(Panel.UNITS_PERCENTAGE);
-
- tab = new TabSheet();
- tab.setWidth(100);
- tab.setWidthUnits(Sizeable.UNITS_PERCENTAGE);
- tab.setHeight(740);
- tab.setHeightUnits(Sizeable.UNITS_PIXELS);
-
- Panel report = new Panel("Monthly Program Runs", new ExpandLayout());
- OrderedLayout controls = new OrderedLayout();
- controls.setMargin(true);
- controls.addComponent(new Label("Report tab"));
- controls.addComponent(click);
- controls.addComponent(click2);
- report.addComponent(controls);
- DateField cal = new DateField();
- cal.setResolution(DateField.RESOLUTION_DAY);
- cal.setLocale(new Locale("en", "US"));
- report.addComponent(cal);
- ((ExpandLayout) report.getLayout()).expand(controls);
- report.addStyleName(Panel.STYLE_LIGHT);
- report.setHeight(100);
- report.setHeightUnits(Sizeable.UNITS_PERCENTAGE);
-
- sp2.setFirstComponent(report);
-
- Table table = TestForTablesInitialColumnWidthLogicRendering
- .getTestTable(5, 200);
- table.setPageLength(15);
- table.setSelectable(true);
- table.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);
- table.setColumnCollapsingAllowed(true);
- table.setColumnReorderingAllowed(true);
- table.setSortDisabled(false);
- table.setWidth(100);
- table.setWidthUnits(Sizeable.UNITS_PERCENTAGE);
- table.setHeight(100);
- table.setHeightUnits(Sizeable.UNITS_PERCENTAGE);
- table.addStyleName("table-inline");
- sp2.setSecondComponent(table);
-
- tab.addTab(new Label("Tab1"), "Summary", null);
- tab.addTab(sp2, "Reports", null);
- tab.addTab(new Label("Tab 3"), "Statistics", null);
- tab.addTab(new Label("Tab 4"), "Error Tracking", null);
- tab.setSelectedTab(sp2);
-
- sp.setFirstComponent(p);
- sp.setSecondComponent(tab);
-
- setCompositionRoot(sp);
- }
+ private Button click;
+ private Button click2;
+ private TabSheet tab;
+
+ public TestForBasicApplicationLayout() {
+
+ click = new Button("Set height -1", new ClickListener() {
+
+ public void buttonClick(ClickEvent event) {
+ tab.setHeight(-1);
+ }
+
+ });
+
+ click2 = new Button("Set height 100%", new ClickListener() {
+
+ public void buttonClick(ClickEvent event) {
+ tab.setHeight(100);
+ tab.setHeightUnits(Sizeable.UNITS_PERCENTAGE);
+ }
+
+ });
+
+ SplitPanel sp = new SplitPanel(SplitPanel.ORIENTATION_HORIZONTAL);
+ sp.setSplitPosition(290, Sizeable.UNITS_PIXELS);
+
+ SplitPanel sp2 = new SplitPanel(SplitPanel.ORIENTATION_VERTICAL);
+ sp2.setSplitPosition(255, Sizeable.UNITS_PIXELS);
+
+ Panel p = new Panel("Accordion Panel");
+ p.setHeight(100);
+ p.setHeightUnits(Sizeable.UNITS_PERCENTAGE);
+
+ tab = new TabSheet();
+ tab.setWidth(100);
+ tab.setWidthUnits(Sizeable.UNITS_PERCENTAGE);
+ tab.setHeight(740);
+ tab.setHeightUnits(Sizeable.UNITS_PIXELS);
+
+ Panel report = new Panel("Monthly Program Runs", new ExpandLayout());
+ OrderedLayout controls = new OrderedLayout();
+ controls.setMargin(true);
+ controls.addComponent(new Label("Report tab"));
+ controls.addComponent(click);
+ controls.addComponent(click2);
+ report.addComponent(controls);
+ DateField cal = new DateField();
+ cal.setResolution(DateField.RESOLUTION_DAY);
+ cal.setLocale(new Locale("en", "US"));
+ report.addComponent(cal);
+ ((ExpandLayout) report.getLayout()).expand(controls);
+ report.addStyleName(Panel.STYLE_LIGHT);
+ report.setHeight(100);
+ report.setHeightUnits(Sizeable.UNITS_PERCENTAGE);
+
+ sp2.setFirstComponent(report);
+
+ Table table = TestForTablesInitialColumnWidthLogicRendering
+ .getTestTable(5, 200);
+ table.setPageLength(15);
+ table.setSelectable(true);
+ table.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);
+ table.setColumnCollapsingAllowed(true);
+ table.setColumnReorderingAllowed(true);
+ table.setSortDisabled(false);
+ table.setWidth(100);
+ table.setWidthUnits(Sizeable.UNITS_PERCENTAGE);
+ table.setHeight(100);
+ table.setHeightUnits(Sizeable.UNITS_PERCENTAGE);
+ table.addStyleName("table-inline");
+ sp2.setSecondComponent(table);
+
+ tab.addTab(new Label("Tab1"), "Summary", null);
+ tab.addTab(sp2, "Reports", null);
+ tab.addTab(new Label("Tab 3"), "Statistics", null);
+ tab.addTab(new Label("Tab 4"), "Error Tracking", null);
+ tab.setSelectedTab(sp2);
+
+ sp.setFirstComponent(p);
+ sp.setSecondComponent(tab);
+
+ setCompositionRoot(sp);
+ }
}