Hello, i am newbie on vaadin and I met some difficulties… I am trying to add scrollbar on my Layout which are on a Panel.
I have 1 panel, 1 horizontal split and 2 Layout which each contains, 2 tables. (excuse me for my language :p)
[code]
pan = new Panel();
testPanel = new HorizontalSplitPanel();
testPanel.setWidth(100, Unit.PERCENTAGE);
testPanel.setSplitPosition(50, Unit.PERCENTAGE);
h1 = new VerticalLayout();
h1.setSizeFull();
h2 = new VerticalLayout();
h2.setSizeFull();
tableDose = new Table();
tableDose.setWidth(600, Unit.PIXELS);
tableDose.setSelectable(true);
tableDose.setImmediate(true);
tableDose.setCaption("Liste : ");
tableDose.addContainerProperty("Nom de l'accident type", String.class, null);
tableDose.addContainerProperty("Point de rejet", String.class, null);
tableDose.addContainerProperty("Rejet", String.class, null);
tableDose.addContainerProperty("Défaut", String.class, null);
tableDose.setPageLength(4);
table1 = new Table();
table1.setSelectable(true);
table1.setImmediate(true);
table1.setCaption("Liste : ");
table1.addContainerProperty("Nom de l'accident type", String.class, null);
table1.addContainerProperty("Point de rejet", String.class, null);
table1.addContainerProperty("Rejet", String.class, null);
table1.addContainerProperty("Défaut", String.class, null);
table1.setPageLength(6);
b1 = new Button();
b2 = new Button();
this.setSizeFull();
this.addComponent(pan);
pan.setContent(testPanel);
testPanel.setFirstComponent(l1);
testPanel.setSecondComponent(l2);
h1.addComponents(tableDose, b1);
h2.addComponents(table1, b2);
[/code]With this code, when I move my horizontal split on the left or right, I don’t have scrollbar on my layout, so I can’t see all my tables… How can I do ?
examples on pictures :
http://www.hostingpics.net/viewer.php?id=381893401.jpg
http://www.hostingpics.net/viewer.php?id=432976242.jpg