diff options
author | Henri Sara <henri.sara@itmill.com> | 2009-05-25 09:09:58 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2009-05-25 09:09:58 +0000 |
commit | 2bc6c9decca4449717d52ddce428dc8f00769028 (patch) | |
tree | 1da2eb59b09be442663e3dbd4eed58135f8dde63 /src/com/vaadin/demo/reservation/ResourceSelectorPanel.java | |
parent | 18ae02885023f31a86d5e0216aa91a6d03e77bc8 (diff) | |
download | vaadin-framework-2bc6c9decca4449717d52ddce428dc8f00769028.tar.gz vaadin-framework-2bc6c9decca4449717d52ddce428dc8f00769028.zip |
#2643 fix some demo warnings (mostly serialization related)
svn changeset:7985/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/demo/reservation/ResourceSelectorPanel.java')
-rw-r--r-- | src/com/vaadin/demo/reservation/ResourceSelectorPanel.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/vaadin/demo/reservation/ResourceSelectorPanel.java b/src/com/vaadin/demo/reservation/ResourceSelectorPanel.java index d52f1ac84a..c73e287ef1 100644 --- a/src/com/vaadin/demo/reservation/ResourceSelectorPanel.java +++ b/src/com/vaadin/demo/reservation/ResourceSelectorPanel.java @@ -11,11 +11,13 @@ import java.util.LinkedList; import com.vaadin.data.Container;
import com.vaadin.data.Item;
import com.vaadin.ui.Button;
+import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.OrderedLayout;
import com.vaadin.ui.Panel;
+import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Button.ClickEvent;
+@SuppressWarnings("serial")
public class ResourceSelectorPanel extends Panel implements
Button.ClickListener {
private final HashMap categoryLayouts = new HashMap();
@@ -25,7 +27,7 @@ public class ResourceSelectorPanel extends Panel implements private LinkedList selectedResources = null;
public ResourceSelectorPanel(String caption) {
- super(caption, new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL));
+ super(caption, new HorizontalLayout());
addStyleName(Panel.STYLE_LIGHT);
setSizeUndefined();
setWidth("100%");
@@ -55,7 +57,7 @@ public class ResourceSelectorPanel extends Panel implements LinkedList resourceList = (LinkedList) categoryResources
.get(category);
if (resourceLayout == null) {
- resourceLayout = new OrderedLayout();
+ resourceLayout = new VerticalLayout();
resourceLayout.setSizeUndefined();
resourceLayout.setMargin(true);
addComponent(resourceLayout);
|