BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200, 100, 300);
westData.setMargins(new Margins(5, 0, 5, 5));
westData.setCollapsible(true);
Portal portal = new Portal(3);
portal.setBorders(true);
portal.setStyleAttribute("backgroundColor", "white");
portal.setColumnWidth(0, .33);
portal.setColumnWidth(1, .33);
portal.setColumnWidth(2, .33);
Portlet portlet = new Portlet();
portlet.setHeading("Grid in a Portlet");
configPanel(portlet);
portlet.setLayout(new FitLayout());
portlet.add(createGrid());
portlet.setHeight(250);
portal.add(portlet, 0);
portlet = new Portlet();
portlet.setHeading("Another Panel 1");
configPanel(portlet);
portlet.addText(getBogusText());
portal.add(portlet, 0);
portlet = new Portlet();
portlet.setHeading("Panel 2");
configPanel(portlet);
portlet.addText(getBogusText());
portal.add(portlet, 1);
portlet = new Portlet();
portlet.setHeading("Another Panel 2");
configPanel(portlet);
portlet.addText(getBogusText());
portal.add(portlet, 1);
portlet = new Portlet();
portlet.setHeading("Panel 3");
configPanel(portlet);
portlet.addText(getBogusText());
portal.add(portlet, 2);
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins(5));
add(north, northData);