diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2007-12-13 10:11:49 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2007-12-13 10:11:49 +0000 |
commit | c4dbcb707ce15346c1c6e297eaa2e42bbe186d8c (patch) | |
tree | 88f7e72df4492c5c3ada45dd1d4368459ab1d300 /src/com/itmill/toolkit/demo/featurebrowser/TableExample.java | |
parent | f5f2e1116704d9019c99e17691889f70621e6b4c (diff) | |
download | vaadin-framework-c4dbcb707ce15346c1c6e297eaa2e42bbe186d8c.tar.gz vaadin-framework-c4dbcb707ce15346c1c6e297eaa2e42bbe186d8c.zip |
Major layout API changes: Sizeable is now deprecated. Use HasSize-interface instead in combination with Size object (see ExpandLayout.java for example). OrderedLayout is no longer sizable. Table and Panel implement compatibility methods to proxy old size calls to the new Size object.
svn changeset:3228/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/TableExample.java')
-rw-r--r-- | src/com/itmill/toolkit/demo/featurebrowser/TableExample.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/TableExample.java b/src/com/itmill/toolkit/demo/featurebrowser/TableExample.java index 29c55f224d..e42d50bebb 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/TableExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/TableExample.java @@ -57,7 +57,7 @@ public class TableExample extends CustomComponent implements Action.Handler, // "source" table with bells & whistlesenabled
source = new Table("All creatures");
source.setPageLength(7);
- source.setWidth(550);
+ source.getSize().setWidth(550);
source.setColumnCollapsingAllowed(true);
source.setColumnReorderingAllowed(true);
source.setSelectable(true);
@@ -92,7 +92,7 @@ public class TableExample extends CustomComponent implements Action.Handler, // "saved" table, minimalistic
saved = new Table("Saved creatures");
saved.setPageLength(5);
- saved.setWidth(550);
+ saved.getSize().setWidth(550);
saved.setSelectable(false);
saved.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
saved.setRowHeaderMode(Table.ROW_HEADER_MODE_ID);
|