diff options
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);
|