diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-10-27 07:57:12 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-10-27 07:57:12 +0000 |
commit | 6a3c715dae922edd723c9423b4308d5d7948b74e (patch) | |
tree | 46a007274681a9803afccf135ace5554f3e01e3a /src/com/vaadin/tests/TestForExpandLayout2.java | |
parent | 931d75fef69deb9b738fad97001cf5621de9f43e (diff) | |
download | vaadin-framework-6a3c715dae922edd723c9423b4308d5d7948b74e.tar.gz vaadin-framework-6a3c715dae922edd723c9423b4308d5d7948b74e.zip |
Split demo and tests files to own source folders, for #3298
svn changeset:9390/svn branch:6.2
Diffstat (limited to 'src/com/vaadin/tests/TestForExpandLayout2.java')
-rw-r--r-- | src/com/vaadin/tests/TestForExpandLayout2.java | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/com/vaadin/tests/TestForExpandLayout2.java b/src/com/vaadin/tests/TestForExpandLayout2.java deleted file mode 100644 index 5c6ff7955b..0000000000 --- a/src/com/vaadin/tests/TestForExpandLayout2.java +++ /dev/null @@ -1,64 +0,0 @@ -/*
-@ITMillApache2LicenseForJavaFiles@
- */
-
-package com.vaadin.tests;
-
-import com.vaadin.ui.Button;
-import com.vaadin.ui.CustomComponent;
-import com.vaadin.ui.ExpandLayout;
-import com.vaadin.ui.Label;
-import com.vaadin.ui.Panel;
-
-/**
- *
- * @author IT Mill Ltd.
- */
-public class TestForExpandLayout2 extends CustomComponent {
-
- ExpandLayout main;
-
- public TestForExpandLayout2() {
- createNewView();
- setCompositionRoot(main);
- }
-
- public void createNewView() {
- main = new ExpandLayout(ExpandLayout.ORIENTATION_HORIZONTAL);
-
- Panel left = new Panel("Left column");
- left.setHeight(100, Panel.UNITS_PERCENTAGE);
- left.setWidth(150);
- main.addComponent(left);
-
- ExpandLayout center = new ExpandLayout();
- center.addComponent(new Label("header"));
- Panel mainContent = new Panel();
- center.addComponent(mainContent);
- center.expand(mainContent);
- mainContent.setSizeFull();
-
- ExpandLayout buttons = new ExpandLayout(
- ExpandLayout.ORIENTATION_HORIZONTAL);
- buttons.setHeight(30, ExpandLayout.UNITS_PIXELS);
- Button b1 = new Button("Save");
- Button b2 = new Button("Cancel");
- Button b3 = new Button("Logout");
- buttons.addComponent(b1);
- buttons.setComponentAlignment(b1, ExpandLayout.ALIGNMENT_RIGHT,
- ExpandLayout.ALIGNMENT_TOP);
- buttons.addComponent(b2);
- buttons.addComponent(b3);
- center.addComponent(buttons);
-
- main.addComponent(center);
- main.expand(center);
-
- Panel right = new Panel("Right column");
- right.setHeight(100, Panel.UNITS_PERCENTAGE);
- right.setWidth(200);
-
- main.addComponent(right);
-
- }
-}
|