aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2008-03-11 10:00:47 +0000
committerJani Laakso <jani.laakso@itmill.com>2008-03-11 10:00:47 +0000
commita6bc3c7effbd7d3639161c0b545dcacf257ae8d8 (patch)
treec9bd563f168b1da37a0491de22308bd340e1edb8
parent66b2d72a09f406b7d0b4a9ed50dd31e58bb2afb5 (diff)
downloadvaadin-framework-a6bc3c7effbd7d3639161c0b545dcacf257ae8d8.tar.gz
vaadin-framework-a6bc3c7effbd7d3639161c0b545dcacf257ae8d8.zip
For bug #1486
svn changeset:4024/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java b/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java
index c6fddc4794..6bb378faba 100644
--- a/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java
+++ b/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java
@@ -95,7 +95,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
main.addComponent(eventListenerFeedback);
// //////////////////////////////////////////////////////////////////////////
- if (false) {
+ if (true) {
window = new Window("Components inside Window (TEST: Window)");
if (false) {
@@ -133,7 +133,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
}
// //////////////////////////////////////////////////////////////////////////
- if (false) {
+ if (true) {
target.addComponent(new Label(
"<hr /><h1>Components inside TabSheet</h3>",
Label.CONTENT_XHTML));
@@ -154,7 +154,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
}
// //////////////////////////////////////////////////////////////////////////
- if (false) {
+ if (true) {
target.addComponent(new Label(
"<hr /><h1>Components inside GridLayout</h3>",
Label.CONTENT_XHTML));
@@ -165,19 +165,20 @@ public class TestComponentsAndLayouts extends Application implements Listener,
}
// //////////////////////////////////////////////////////////////////////////
- if (false) {
+ if (true) {
target
.addComponent(new Label(
"<hr /><h1>Components inside ExpandLayout (height 250px)</h3>",
Label.CONTENT_XHTML));
final ExpandLayout el = new ExpandLayout();
el.setHeight(250, Component.UNITS_PIXELS);
+ el.expand(new Label("This label will expand on expand layout"));
populateLayout(el);
target.addComponent(el);
}
// //////////////////////////////////////////////////////////////////////////
- if (false) {
+ if (true) {
target.addComponent(new Label(
"<hr /><h1>Components inside Panel</h3>",
Label.CONTENT_XHTML));
@@ -187,7 +188,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
}
// //////////////////////////////////////////////////////////////////////////
- if (false) {
+ if (true) {
target
.addComponent(new Label(
"<hr /><h1>Components inside vertical SplitPanel (splitpanel is under 250height ExpandLayout)</h3>",
@@ -207,7 +208,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
}
// //////////////////////////////////////////////////////////////////////////
- if (false) {
+ if (true) {
target
.addComponent(new Label(
"<hr /><h1>Components inside horizontal SplitPanel (splitpanel is under 250px height ExpandLayout)</h3>",
@@ -373,9 +374,9 @@ public class TestComponentsAndLayouts extends Application implements Listener,
void setComponentProperties(Component c) {
// TWEAK these
// c.setEnabled(false);
- // c.setVisible(false);
+ c.setVisible(false);
c.setStyleName("testStyleName");
- c.setReadOnly(true);
+ // c.setReadOnly(true);
// try to add listener
try {
@@ -406,7 +407,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
c.setComponentError(errorMsg);
c.setIcon(res);
c.setImmediate(true);
- // c.addStyleName("addedTestStyleName");
+ c.addStyleName("addedTestStyleName");
// c.setStyleName("singleTestStyleName");
c.setDescription("Description here..");
}
@@ -441,7 +442,7 @@ public class TestComponentsAndLayouts extends Application implements Listener,
final String feedback = "eventCount=" + eventCount + ", class="
+ event.getClass() + ", source=" + event.getSource()
+ ", toString()=" + event.toString();
- // System.out.println("eventListenerFeedback: " + feedback);
+ System.out.println("eventListenerFeedback: " + feedback);
eventListenerFeedback.setValue("Events: " + eventCount);
}