diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2008-09-10 10:57:45 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2008-09-10 10:57:45 +0000 |
commit | 17d8e2a2f890ee4da41484bd78ae62d49d483a14 (patch) | |
tree | 6a20649c79a197d868383b15b978c929f21597e9 /src | |
parent | 68559ee7f22500154409949dc957b6ba58987bc7 (diff) | |
download | vaadin-framework-17d8e2a2f890ee4da41484bd78ae62d49d483a14.tar.gz vaadin-framework-17d8e2a2f890ee4da41484bd78ae62d49d483a14.zip |
Removed deprecated method references.
svn changeset:5379/svn branch:trunk
Diffstat (limited to 'src')
3 files changed, 5 insertions, 5 deletions
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java b/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java index 810b5728f8..0bcaac2804 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java @@ -34,7 +34,7 @@ public class ComboBoxExample extends CustomComponent { // starts-with filter final ComboBox s1 = new ComboBox("Select with starts-with filter"); s1.setFilteringMode(Filtering.FILTERINGMODE_STARTSWITH); - s1.setColumns(20); + s1.setWidth("20em"); Random r = new Random(5); for (int i = 0; i < 105; i++) { s1 @@ -48,7 +48,7 @@ public class ComboBoxExample extends CustomComponent { // contains filter final ComboBox s2 = new ComboBox("Select with contains filter"); s2.setFilteringMode(Filtering.FILTERINGMODE_CONTAINS); - s2.setColumns(20); + s2.setWidth("20em"); for (int i = 0; i < 500; i++) { s2 .addItem(firstnames[(int) (r.nextDouble() * (firstnames.length - 1))] @@ -60,7 +60,7 @@ public class ComboBoxExample extends CustomComponent { // initially empty final ComboBox s3 = new ComboBox("Initially empty; enter your own"); - s3.setColumns(20); + s3.setWidth("20em"); s3.setImmediate(true); s3.setNewItemsAllowed(true); main.addComponent(s3); diff --git a/src/com/itmill/toolkit/demo/featurebrowser/SelectExample.java b/src/com/itmill/toolkit/demo/featurebrowser/SelectExample.java index 084d14f149..00f5675780 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/SelectExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/SelectExample.java @@ -72,7 +72,7 @@ public class SelectExample extends CustomComponent { single.addComponent(sel);
// combobox
sel = new ComboBox("ComboBox");
- ((ComboBox) sel).setColumns(15);
+ ((ComboBox) sel).setWidth("15em");
initSelect(sel);
single.addComponent(sel);
// "twin column" select
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java b/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java index 215bb88ba0..bea28035e4 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java @@ -45,7 +45,7 @@ public class TreeExample extends CustomComponent implements Action.Handler, // Panel w/ Tree Panel p = new Panel("Select item"); p.setStyleName(Panel.STYLE_LIGHT); - p.setWidth(250); + p.setWidth("250px"); // Description p.addComponent(new Label(desc)); // Tree with a few items |