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

项目:firefly    文件:LinksPanel.java   
public LinksPanel() {
        HorizontalSplitPanel mainPanel = new HorizontalSplitPanel();
        initWidget(mainPanel);
        //lst.setStyleName("link-list");
        lst.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent ev) {
                selectLink(lst.getLastClicked());
            }

        });

        //linkPanel.add(lst);
        deckPanel.setStyleName("content-panel");

        //mainPanel.add(linkPanel);
        mainPanel.add(lst);
        mainPanel.setSplitPosition("25%");
        mainPanel.add(deckPanel);
//        mainPanel.setStyleName("links-panel");
    }
项目: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    文件:TrueHorizontalSplitPanel.java   
public TrueHorizontalSplitPanel() {
    panel = new HorizontalSplitPanel(new HorizontalPanelSplitter());
    setSize("100%", "100%");
    super.add(panel);
    setCellHeight(panel, "100%");
    setCellWidth(panel, "100%");
}
项目:onecmdb    文件:OneCMDBApplication.java   
public void setMainScreen(GWT_CiBean account) {
    this.account = account;
    getHeaderScreen().setWidth("100%");
    DockPanel outer = new DockPanel();
    BaseScreen header = getHeaderScreen();
    if (header instanceof HeaderScreen) {
        ((HeaderScreen)header).setAccount(account);
    }
    outer.add(header, DockPanel.NORTH);

    //outer.add(getNavigationScreen()), DockPanel.WEST);
    //outer.add(getMainPanel(), DockPanel.CENTER);

    //navigationScroll = new ScrollPanel(getNavigationScreen());
    //mainPanelScroll = new ScrollPanel(getMainPanel());
    //navigationScroll.setAlwaysShowScrollBars(true);
    //mainPanelScroll.setAlwaysShowScrollBars(true);

    centerSplit = new HorizontalSplitPanel();
    centerSplit.setLeftWidget(getNavigationScreen());
    centerSplit.setRightWidget(getMainPanel());
    getMainPanel().setStyleName("mdv-form");
    centerSplit.setSplitPosition("35%");
    //outer.add(navigationScroll, DockPanel.WEST);
    //outer.add(mainPanelScroll, DockPanel.CENTER);
    outer.add(centerSplit, DockPanel.CENTER);
    getMainPanel().setSize("100%", "100%");
    getNavigationScreen().setSize("100%", "100%");

    if (getFooterScreen() != null) {
        getFooterScreen().setWidth("100%");
        getFooterScreen().setStyleName("mdv-form");
        outer.add(getFooterScreen(), DockPanel.SOUTH);
    }

    outer.setWidth("100%");
    outer.setWidth("100%");
    outer.setSpacing(4);
    //outer.setCellWidth(getMainPanel(), "100%");
    //outer.setCellHeight(getMainPanel(), "100%");
    outer.setCellWidth(centerSplit, "100%");
    outer.setCellHeight(centerSplit, "100%");

    RootPanel.get().clear();
    RootPanel.get().add(outer);

    // No main scrolls..

    Window.enableScrolling(false);
    // Call the window resized handler to get the initial sizes setup.
    onWindowResized(Window.getClientWidth(), Window.getClientHeight());

    showScreen(WELCOME_SCREEN);
}
项目:OneCMDBwithMaven    文件:OneCMDBApplication.java   
public void setMainScreen(GWT_CiBean account) {
    this.account = account;
    getHeaderScreen().setWidth("100%");
    DockPanel outer = new DockPanel();
    BaseScreen header = getHeaderScreen();
    if (header instanceof HeaderScreen) {
        ((HeaderScreen)header).setAccount(account);
    }
    outer.add(header, DockPanel.NORTH);

    //outer.add(getNavigationScreen()), DockPanel.WEST);
    //outer.add(getMainPanel(), DockPanel.CENTER);

    //navigationScroll = new ScrollPanel(getNavigationScreen());
    //mainPanelScroll = new ScrollPanel(getMainPanel());
    //navigationScroll.setAlwaysShowScrollBars(true);
    //mainPanelScroll.setAlwaysShowScrollBars(true);

    centerSplit = new HorizontalSplitPanel();
    centerSplit.setLeftWidget(getNavigationScreen());
    centerSplit.setRightWidget(getMainPanel());
    getMainPanel().setStyleName("mdv-form");
    centerSplit.setSplitPosition("35%");
    //outer.add(navigationScroll, DockPanel.WEST);
    //outer.add(mainPanelScroll, DockPanel.CENTER);
    outer.add(centerSplit, DockPanel.CENTER);
    getMainPanel().setSize("100%", "100%");
    getNavigationScreen().setSize("100%", "100%");

    if (getFooterScreen() != null) {
        getFooterScreen().setWidth("100%");
        getFooterScreen().setStyleName("mdv-form");
        outer.add(getFooterScreen(), DockPanel.SOUTH);
    }

    outer.setWidth("100%");
    outer.setWidth("100%");
    outer.setSpacing(4);
    //outer.setCellWidth(getMainPanel(), "100%");
    //outer.setCellHeight(getMainPanel(), "100%");
    outer.setCellWidth(centerSplit, "100%");
    outer.setCellHeight(centerSplit, "100%");

    RootPanel.get().clear();
    RootPanel.get().add(outer);

    // No main scrolls..

    Window.enableScrolling(false);
    // Call the window resized handler to get the initial sizes setup.
    onWindowResized(Window.getClientWidth(), Window.getClientHeight());

    showScreen(WELCOME_SCREEN);
}