public SplitPanelExample() { super("Split Panels"); HorizontalSplitPanel horiz = new HorizontalSplitPanel(); horiz.setWidth("250px"); horiz.setHeight("250px"); horiz.setLeftWidget(new Label("Left")); horiz.setRightWidget(new Label("Right")); // horiz.setSplitPosition("10px"); add(horiz); VerticalSplitPanel vert = new VerticalSplitPanel(); vert.setWidth("250px"); vert.setHeight("250px"); vert.setTopWidget(new Label("Top")); vert.setBottomWidget(new Label("Bottom")); // vert.setSplitPosition("15px"); add(vert); }
public TrueVerticalSplitPanel() { panel = new VerticalSplitPanel(new VerticalPanelSplitter()); setSize("100%", "100%"); panel.setSize("100%", "100%"); super.add(panel); setCellHeight(panel, "100%"); setCellWidth(panel, "100%"); // panel.addStyleName(cursorStyle); }