aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-10-09 06:12:02 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-10-09 06:12:02 +0000
commit5ba28731e951c06ddb3bb9eaa73bfbf207084958 (patch)
tree283027b45f0a1dc287c4e3e836ebb2bba00b227f /src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java
parentd5e956890c9a08915ecd0e0ebf9f59c42f7edd7c (diff)
downloadvaadin-framework-5ba28731e951c06ddb3bb9eaa73bfbf207084958.tar.gz
vaadin-framework-5ba28731e951c06ddb3bb9eaa73bfbf207084958.zip
Mass format based on eclipse build in formatting style.
svn changeset:2461/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java')
-rw-r--r--src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java49
1 files changed, 26 insertions, 23 deletions
diff --git a/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java b/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java
index afa51e18a1..1edbc0b83f 100644
--- a/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java
+++ b/src/com/itmill/toolkit/tests/TestForBasicApplicationLayout.java
@@ -17,48 +17,50 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
import com.itmill.toolkit.ui.Button.ClickListener;
public class TestForBasicApplicationLayout extends CustomComponent {
-
+
private Button click;
private Button click2;
private TabSheet tab;
-
+
public TestForBasicApplicationLayout() {
- OrderedLayout main = new OrderedLayout();
+ OrderedLayout main = new OrderedLayout();
setCompositionRoot(main);
-
+
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); // Width of left side area
-
+ sp.setSplitPosition(290, Sizeable.UNITS_PIXELS); // Width of left
+ // side area
+
SplitPanel sp2 = new SplitPanel(SplitPanel.ORIENTATION_VERTICAL);
- sp2.setSplitPosition(255, Sizeable.UNITS_PIXELS); // Height of right-top area
-
+ sp2.setSplitPosition(255, Sizeable.UNITS_PIXELS); // Height of
+ // right-top area
+
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.addComponent(new Label("Report tab"));
@@ -67,16 +69,17 @@ public class TestForBasicApplicationLayout extends CustomComponent {
report.addComponent(controls);
DateField cal = new DateField();
cal.setResolution(DateField.RESOLUTION_DAY);
- cal.setLocale(new Locale("en","US"));
+ cal.setLocale(new Locale("en", "US"));
report.addComponent(cal);
- ((ExpandLayout)report.getLayout()).expand(controls);
+ ((ExpandLayout) report.getLayout()).expand(controls);
report.setStyle("light");
report.setHeight(100);
report.setHeightUnits(Sizeable.UNITS_PERCENTAGE);
-
+
sp2.setFirstComponent(report);
-
- Table table = TestForTablesInitialColumnWidthLogicRendering.getTestTable(5,200);
+
+ Table table = TestForTablesInitialColumnWidthLogicRendering
+ .getTestTable(5, 200);
table.setPageLength(15);
table.setSelectable(true);
table.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);
@@ -89,17 +92,17 @@ public class TestForBasicApplicationLayout extends CustomComponent {
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);
-
+
main.addComponent(sp);
}
-
+
}