Java 类com.google.gwt.user.client.ui.VerticalSplitPanel 实例源码

项目:PortlandStateJava    文件:SplitPanelExample.java   
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);

  }
项目:iambookmaster    文件:TrueVerticalSplitPanel.java   
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);
    }