Search in sources :

Example 1 with SolutionTreeWrapper

use of org.pentaho.mantle.client.solutionbrowser.tree.SolutionTreeWrapper in project pentaho-platform by pentaho.

the class SolutionBrowserPanel method buildUI.

private void buildUI() {
    FlowPanel topPanel = new FlowPanel();
    SimplePanel toolbarWrapper = new SimplePanel();
    toolbarWrapper.setWidget(new BrowserToolbar());
    // $NON-NLS-1$
    toolbarWrapper.setStyleName("files-toolbar");
    topPanel.add(toolbarWrapper);
    topPanel.add(new SolutionTreeWrapper(solutionTree));
    solutionNavigatorPanel.setStyleName("puc-vertical-split-panel");
    solutionNavigatorPanel.setWidth("100%");
    solutionNavigatorPanel.addNorth(topPanel, 500);
    solutionNavigatorPanel.add(filesListPanel);
    navigatorAndContentSplit.setStyleName("puc-horizontal-split-panel");
    navigatorAndContentSplit.addWest(solutionNavigatorPanel, 300);
    navigatorAndContentSplit.add(contentTabPanel);
    navigatorAndContentSplit.getElement().setAttribute("id", "solutionNavigatorAndContentPanel");
    Window.addResizeHandler(new ResizeHandler() {

        @Override
        public void onResize(ResizeEvent event) {
            adjustContentPanelSize();
        }
    });
    solutionNavigatorPanel.getElement().getParentElement().addClassName("puc-navigator-panel");
    solutionNavigatorPanel.getElement().getParentElement().removeAttribute("style");
    // $NON-NLS-1$
    setStyleName("panelWithTitledToolbar");
    // $NON-NLS-1$
    setHeight("100%");
    // $NON-NLS-1$
    setWidth("100%");
    add(navigatorAndContentSplit);
    sinkEvents(Event.MOUSEEVENTS);
    navigatorAndContentSplit.getWidget(1).setWidth("100%");
    navigatorAndContentSplit.getElement().getStyle().setHeight(1, Unit.PX);
    contentTabPanel.getElement().getStyle().setHeight(1, Unit.PX);
}
Also used : BrowserToolbar(org.pentaho.mantle.client.solutionbrowser.toolbars.BrowserToolbar) ResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler) FlowPanel(com.google.gwt.user.client.ui.FlowPanel) SimplePanel(com.google.gwt.user.client.ui.SimplePanel) SolutionTreeWrapper(org.pentaho.mantle.client.solutionbrowser.tree.SolutionTreeWrapper) ResizeEvent(com.google.gwt.event.logical.shared.ResizeEvent)

Aggregations

ResizeEvent (com.google.gwt.event.logical.shared.ResizeEvent)1 ResizeHandler (com.google.gwt.event.logical.shared.ResizeHandler)1 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)1 SimplePanel (com.google.gwt.user.client.ui.SimplePanel)1 BrowserToolbar (org.pentaho.mantle.client.solutionbrowser.toolbars.BrowserToolbar)1 SolutionTreeWrapper (org.pentaho.mantle.client.solutionbrowser.tree.SolutionTreeWrapper)1