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

项目:ephesoft    文件:FolderManagementView.java   
public void setInitialFolderManagementView(FolderManagementController controller, String parentFolderPath, String baseFolderUrl,
        Map<String, String> batchClassesMap) {
    Label footer = new Label();
    folderTableView = new FolderTableView(footer);

    folderTablePresenter = new FolderTablePresenter(controller, folderTableView, parentFolderPath, baseFolderUrl);

    folderSystemTreeView = new FolderSystemTreeView();

    folderSystemTreePresenter = new FolderSystemTreePresenter(controller, folderSystemTreeView, parentFolderPath, footer);

    SplitLayoutPanel mainContentPanel = new SplitLayoutPanel();
    DockLayoutPanel leftLayoutPanel = new DockLayoutPanel(Unit.PCT);
    ScrollPanel treeScrollPanel = new ScrollPanel();
    treeScrollPanel.add(folderSystemTreeView);
    FolderSelectionWidget folderSelectionWidget = new FolderSelectionWidget(batchClassesMap, controller.getEventBus());
    leftLayoutPanel.addNorth(folderSelectionWidget, 10);
    leftLayoutPanel.add(treeScrollPanel);
    mainContentPanel.addWest(leftLayoutPanel, 200);
    DockLayoutPanel contentMainPanel = new DockLayoutPanel(Unit.PCT);
    contentMainPanel.add(folderTableView);
    contentMainPanel.addStyleName(FolderManagementConstants.WHITE_BACKGROUND);
    mainContentPanel.add(contentMainPanel);
    mainPanel.add(mainContentPanel);
    ScreenMaskUtility.unmaskScreen();
}
项目:che    文件:SplitEditorPartViewImpl.java   
@Override
public void split(IsWidget replicaWidget, Direction direction, double size) {
  this.direction = direction;
  splitLayoutPanel = new SplitLayoutPanel(SPLITTER_SIZE);
  specimenView = new SplitEditorPartViewImpl(specimenWidget, this);
  replicaView = new SplitEditorPartViewImpl(replicaWidget, this);

  if (direction == VERTICALLY) {
    splitVertically(size);
  } else if (direction == HORIZONTALLY) {
    splitHorizontally(size);
  }

  splitLayoutPanel.add(replicaView);
  rootPanel.remove(specimenWidget);
  rootPanel.add(splitLayoutPanel);

  tuneSplitter(splitLayoutPanel);
}
项目:che    文件:SplitEditorPartViewImpl.java   
/** Improves splitter visibility. */
private void tuneSplitter(SplitLayoutPanel splitLayoutPanel) {
  NodeList<Node> nodes = splitLayoutPanel.getElement().getChildNodes();
  for (int i = 0; i < nodes.getLength(); i++) {
    Node node = nodes.getItem(i);
    if (node.hasChildNodes()) {
      Element el = node.getFirstChild().cast();
      String className = el.getClassName();
      if (HORIZONTAL_DRAGGER_CLASS.equals(className)) {
        tuneVerticalSplitter(el);
      } else if (VERTICAL_DRAGGER_CLASS.equals(className)) {
        tuneHorizontalSplitter(el);
      }
    }
  }
}
项目:firefly    文件:DataSourceCoveragePreview.java   
public DataSourceCoveragePreview(DataSourceCoverageData covData) {
    super(covData.getTitle(),covData.getTip());
    _covData= covData;
    setName(covData.getTitle());
    String group= covData.getGroup();
    MiniPlotWidget mpw=   new MiniPlotWidget(group);
    mpw.setImageSelection(true);
    mpw.setRemoveOldPlot(false);
    _plotDeck= new DisableablePlotDeckPanel(_prop.getName("noplot"), mpw,true);
    if (covData.getEnableDetails()) {
        _detailsView = new ScrollPanel(_details);
        SplitLayoutPanel display = new SplitLayoutPanel();
        display.addSouth(_detailsView, 120);
        GwtUtil.setStyle(_detailsView,"borderTop", "1px solid gray");
        GwtUtil.setStyle(_detailsView,"paddingTop", "3px");
        display.add(_plotDeck);
        setDisplay(display);
    }
    else {
        setDisplay(_plotDeck);
    }

}
项目:plugin-datasource    文件:SqlRequestLauncherViewImpl.java   
@Inject
public SqlRequestLauncherViewImpl(final SqlRequestLauncherViewImplUiBinder uiBinder,
                                  final SqlRequestLauncherConstants constants,
                                  final DatasourceUiResources datasourceUiResources) {
    super();

    /* initialize provided fields */
    this.datasourceUiResources = datasourceUiResources;
    this.constants = constants;
    this.splitPanel = new SplitLayoutPanel(4);

    uiBinder.createAndBindUi(this);
    getContainer().add(this.launcherContainer);

    selectDatasourceLabel.setText(constants.selectDatasourceLabel());
    resultLimitLabel.setText(constants.resultLimitLabel());
    executionModeLabel.setText(constants.executionModeLabel());
    executeButton.setText(constants.executeButtonLabel());
    executeButton.ensureDebugId("dsExecuteButton");

    fillExecutionModeList(constants);
}
项目:gwtmockito    文件:GwtMockitoWidgetBaseClassesTest.java   
@Test
public void testPanels() throws Exception {
  invokeAllAccessibleMethods(new AbsolutePanel() {});
  invokeAllAccessibleMethods(new CellPanel() {});
  invokeAllAccessibleMethods(new ComplexPanel() {});
  invokeAllAccessibleMethods(new DeckLayoutPanel() {});
  invokeAllAccessibleMethods(new DeckPanel() {});
  invokeAllAccessibleMethods(new DecoratorPanel() {});
  invokeAllAccessibleMethods(new DockLayoutPanel(Unit.PX) {});
  invokeAllAccessibleMethods(new DockPanel() {});
  invokeAllAccessibleMethods(new FlowPanel() {});
  invokeAllAccessibleMethods(new FocusPanel() {});
  invokeAllAccessibleMethods(new HorizontalPanel() {});
  invokeAllAccessibleMethods(new HTMLPanel("") {});
  invokeAllAccessibleMethods(new LayoutPanel() {});
  invokeAllAccessibleMethods(new PopupPanel() {});
  invokeAllAccessibleMethods(new RenderablePanel("") {});
  invokeAllAccessibleMethods(new ResizeLayoutPanel() {});
  invokeAllAccessibleMethods(new SimpleLayoutPanel() {});
  invokeAllAccessibleMethods(new SimplePanel() {});
  invokeAllAccessibleMethods(new SplitLayoutPanel() {});
  invokeAllAccessibleMethods(new StackPanel() {});
  invokeAllAccessibleMethods(new VerticalPanel() {});
}
项目:che    文件:WorkBenchPartControllerImpl.java   
@Inject
public WorkBenchPartControllerImpl(
    @Assisted SplitLayoutPanel splitLayoutPanel, @Assisted SimplePanel widget) {
  this.splitLayoutPanel = splitLayoutPanel;
  this.widget = widget;

  splitLayoutPanel.setWidgetToggleDisplayAllowed(widget, true);
  splitLayoutPanel.setWidgetHidden(widget, true);
  splitLayoutPanel.forceLayout();
}
项目:che    文件:ProjectPerspectiveTest.java   
@Before
public void setUp() {

  when(view.getLeftPanel()).thenReturn(panel);
  when(view.getRightPanel()).thenReturn(panel);
  when(view.getBottomPanel()).thenReturn(panel);

  when(view.getSplitPanel()).thenReturn(layoutPanel);

  when(view.getNavigationPanel()).thenReturn(simplePanel);
  when(view.getInformationPanel()).thenReturn(simpleLayoutPanel);
  when(view.getToolPanel()).thenReturn(simplePanel);

  when(controllerFactory.createController(
          org.mockito.ArgumentMatchers.<SplitLayoutPanel>anyObject(),
          org.mockito.ArgumentMatchers.<SimplePanel>anyObject()))
      .thenReturn(workBenchController);

  when(partViewFactory.create(org.mockito.ArgumentMatchers.<FlowPanel>anyObject()))
      .thenReturn(partStackView);

  when(stackPresenterFactory.create(
          org.mockito.ArgumentMatchers.<PartStackView>anyObject(),
          org.mockito.ArgumentMatchers.<WorkBenchPartController>anyObject()))
      .thenReturn(partStackPresenter);

  perspective =
      new ProjectPerspective(
          view,
          editorMultiPartStackPresenter,
          stackPresenterFactory,
          partViewFactory,
          controllerFactory,
          eventBus,
          dynaProvider,
          projectExplorerPresenter,
          commandsExplorerPresenter,
          notificationManager,
          processesPanelPresenter);
}
项目:che    文件:AbstractPerspectivePersistenceTest.java   
@Before
public void setUp() throws Exception {
  when(view.getLeftPanel()).thenReturn(panel);
  when(view.getRightPanel()).thenReturn(panel);
  when(view.getBottomPanel()).thenReturn(panel);

  when(view.getSplitPanel()).thenReturn(layoutPanel);

  when(view.getNavigationPanel()).thenReturn(simplePanel);
  when(view.getInformationPanel()).thenReturn(simpleLayoutPanel);
  when(view.getToolPanel()).thenReturn(simplePanel);

  when(partStackPresenter.getPartStackState()).thenReturn(PartStack.State.NORMAL);

  when(controllerFactory.createController(
          org.mockito.ArgumentMatchers.<SplitLayoutPanel>anyObject(),
          org.mockito.ArgumentMatchers.<SimplePanel>anyObject()))
      .thenReturn(workBenchController);

  when(partStackViewFactory.create(org.mockito.ArgumentMatchers.<FlowPanel>anyObject()))
      .thenReturn(partStackView);

  when(stackPresenterFactory.create(
          org.mockito.ArgumentMatchers.<PartStackView>anyObject(),
          org.mockito.ArgumentMatchers.<WorkBenchPartController>anyObject()))
      .thenReturn(partStackPresenter);

  perspective =
      new AbstractPerspectiveTest.DummyPerspective(
          view,
          stackPresenterFactory,
          partStackViewFactory,
          controllerFactory,
          eventBus,
          null,
          partStackPresenter,
          dynaProvider);
  perspective.onActivePartChanged(new ActivePartChangedEvent(activePart));
}
项目:che    文件:AbstractPerspectiveTest.java   
@Before
public void setUp() throws Exception {
  when(view.getLeftPanel()).thenReturn(panel);
  when(view.getRightPanel()).thenReturn(panel);
  when(view.getBottomPanel()).thenReturn(panel);

  when(view.getSplitPanel()).thenReturn(layoutPanel);

  when(view.getNavigationPanel()).thenReturn(simplePanel);
  when(view.getInformationPanel()).thenReturn(simpleLayoutPanel);
  when(view.getToolPanel()).thenReturn(simplePanel);

  when(controllerFactory.createController(
          org.mockito.ArgumentMatchers.<SplitLayoutPanel>anyObject(),
          org.mockito.ArgumentMatchers.<SimplePanel>anyObject()))
      .thenReturn(workBenchController);

  when(partStackViewFactory.create(org.mockito.ArgumentMatchers.<FlowPanel>anyObject()))
      .thenReturn(partStackView);

  when(stackPresenterFactory.create(
          org.mockito.ArgumentMatchers.<PartStackView>anyObject(),
          org.mockito.ArgumentMatchers.<WorkBenchPartController>anyObject()))
      .thenReturn(partStackPresenter);

  perspective =
      new DummyPerspective(
          view,
          stackPresenterFactory,
          partStackViewFactory,
          controllerFactory,
          eventBus,
          extraPartStackPresenter,
          partStackPresenter,
          dynaProvider);
}
项目:che    文件:SplitterFancyUtil.java   
/** Improves splitter visibility. */
public void tuneSplitter(SplitLayoutPanel splitLayoutPanel) {
  NodeList<Node> nodes = splitLayoutPanel.getElement().getChildNodes();
  for (int i = 0; i < nodes.getLength(); i++) {
    Node node = nodes.getItem(i);
    if (node.hasChildNodes()) {
      com.google.gwt.dom.client.Element el = node.getFirstChild().cast();
      if ("gwt-SplitLayoutPanel-HDragger".equals(el.getClassName())) {
        tuneSplitter(el);
        return;
      }
    }
  }
}
项目:che    文件:TestResultViewImpl.java   
@Inject
public TestResultViewImpl(TestResultNodeFactory nodeFactory, PrinterOutputConsole outputConsole) {
  this.nodeFactory = nodeFactory;
  splitLayoutPanel = new SplitLayoutPanel(1);
  setContentWidget(UI_BINDER.createAndBindUi(this));
  splitLayoutPanel.add(outputConsole);

  NodeUniqueKeyProvider idProvider =
      new NodeUniqueKeyProvider() {
        @NotNull
        @Override
        public String getKey(@NotNull Node item) {
          return String.valueOf(item.hashCode());
        }
      };
  NodeStorage nodeStorage = new NodeStorage(idProvider);
  NodeLoader nodeLoader = new NodeLoader(Collections.emptySet());
  resultTree = new Tree(nodeStorage, nodeLoader);
  resultTree
      .getSelectionModel()
      .addSelectionHandler(
          event -> {
            Node methodNode = event.getSelectedItem();
            if (methodNode instanceof TestStateNode) {
              outputConsole.testSelected(((TestStateNode) methodNode).getTestState());
            }
          });

  resultTree.setAutoExpand(true);
  resultTree.getNodeLoader().setUseCaching(false);

  resultTree.getElement().getStyle().setWidth(100, Style.Unit.PCT);
  resultTree.getElement().getStyle().setHeight(100, Style.Unit.PCT);
  navigationPanel.add(resultTree);

  testRootState = new TestRootState();
}
项目:OpenTripPlanner-client-gwt    文件:PlannerWidgetImpl.java   
public PlannerWidgetImpl() {
    rootPanel = new DeckLayoutPanel();

    // Screen interaction widget
    screenWidget = new SplitLayoutPanel() {
        @Override
        public void onResize() {
            super.onResize();
            if (plannerMapWidget != null)
                plannerMapWidget.updateSize();
        }
    };
    screenWidget.setSize("100%", "100%");
    selectedItineraryWidget = null;

    plannerMapWidget = new OpenLayersPlannerMapWidget();
    plannerMapWidget.setMapListener(this);
    plannerFormWidget = new PlannerFormWidget();
    plannerFormWidget.setPlannerWidget(this);
    itineraryStackWidget = new ItineraryStackWidget();
    alertStackWidget = new AlertStackWidget();

    // Firefox/Opera hack: no scroll panel...
    boolean useScrollPanel = false;
    leftPanelWidget = new LeftPanelWidget(plannerFormWidget,
            itineraryStackWidget, alertStackWidget, useScrollPanel);
    screenWidget.insert(leftPanelWidget, Direction.WEST, 300, null);
    if (!useScrollPanel) {
        leftPanelWidget.getElement().getParentElement().getStyle()
                .setOverflow(Overflow.AUTO);
    }
    screenWidget.insert(plannerMapWidget.getAsWidget(), Direction.CENTER, 0,
            null);
    rootPanel.add(screenWidget);
    rootPanel.showWidget(screenWidget);
    rootPanel.setSize("100%", "100%");

    initWidget(rootPanel);
}
项目:firefly    文件:GwtUtil.java   
public static void hideWidget(SplitLayoutPanel splitPanel, Widget widget) {
    hideWidget((DockLayoutPanel) splitPanel, widget);
}
项目:appformer    文件:SplitLayoutPanelView.java   
public SplitLayoutPanelView() {
    layout = new SplitLayoutPanel(2);

    centerPanel = new LayoutPanel();
    westPanel = new LayoutPanel();

    // TODO (hbraun): the actual width should become meta data. i.e. passed through the position object
    layout.addWest(westPanel,
                   217);
    layout.add(centerPanel);
}
项目:Peergos    文件:CwSplitLayoutPanel.java   
/**
 * Initialize this example.
 */
@ShowcaseSource
@Override
public Widget onInitialize() {
  // Create a Split Panel
  SplitLayoutPanel splitPanel = new SplitLayoutPanel(5);
  splitPanel.ensureDebugId("cwSplitLayoutPanel");
  splitPanel.getElement().getStyle()
      .setProperty("border", "3px solid #e7e7e7");

  // Add text all around.
  splitPanel.addNorth(new Label(constants.cwSplitLayoutPanelNorth1()), 50);
  splitPanel.addSouth(new Label(constants.cwSplitLayoutPanelSouth1()), 50);
  splitPanel.addEast(new Label(constants.cwSplitLayoutPanelEast()), 100);
  splitPanel.addWest(new Label(constants.cwSplitLayoutPanelWest()), 100);
  splitPanel.addNorth(new Label(constants.cwSplitLayoutPanelNorth2()), 50);
  splitPanel.addSouth(new Label(constants.cwSplitLayoutPanelSouth2()), 50);

  // Add scrollable text to the center.
  String centerText = constants.cwSplitLayoutPanelCenter();
  for (int i = 0; i < 3; i++) {
    centerText += " " + centerText;
  }
  Label centerLabel = new Label(centerText);
  ScrollPanel centerScrollable = new ScrollPanel(centerLabel);
  splitPanel.add(centerScrollable);

  // Return the content
  return splitPanel;
}
项目:swarm    文件:CwSplitLayoutPanel.java   
/**
 * Initialize this example.
 */
@ShowcaseSource
@Override
public Widget onInitialize() {
  // Create a Split Panel
  SplitLayoutPanel splitPanel = new SplitLayoutPanel(5);
  splitPanel.ensureDebugId("cwSplitLayoutPanel");
  splitPanel.getElement().getStyle()
      .setProperty("border", "3px solid #e7e7e7");

  // Add text all around.
  splitPanel.addNorth(new Label(constants.cwSplitLayoutPanelNorth1()), 50);
  splitPanel.addSouth(new Label(constants.cwSplitLayoutPanelSouth1()), 50);
  splitPanel.addEast(new Label(constants.cwSplitLayoutPanelEast()), 100);
  splitPanel.addWest(new Label(constants.cwSplitLayoutPanelWest()), 100);
  splitPanel.addNorth(new Label(constants.cwSplitLayoutPanelNorth2()), 50);
  splitPanel.addSouth(new Label(constants.cwSplitLayoutPanelSouth2()), 50);

  // Add scrollable text to the center.
  String centerText = constants.cwSplitLayoutPanelCenter();
  for (int i = 0; i < 3; i++) {
    centerText += " " + centerText;
  }
  Label centerLabel = new Label(centerText);
  ScrollPanel centerScrollable = new ScrollPanel(centerLabel);
  splitPanel.add(centerScrollable);

  // Return the content
  return splitPanel;
}
项目:consulo    文件:GwtThreeComponentSplitLayout.java   
public GwtThreeComponentSplitLayout() {
  mySplitLayoutPanel = new SplitLayoutPanel(1);

  GwtUIUtil.fill(mySplitLayoutPanel);

  setWidget(mySplitLayoutPanel);

  mySplitLayoutPanel.addWest(myLeftPanel, 250);
  mySplitLayoutPanel.addEast(myRightPanel, 250);
  mySplitLayoutPanel.add(myCenterPanel);

  mySplitLayoutPanel.setWidgetHidden(myLeftPanel, true);
  mySplitLayoutPanel.setWidgetHidden(myRightPanel, true);
  mySplitLayoutPanel.setWidgetHidden(myCenterPanel, true);
}
项目:DocIT    文件:GwtTree.java   
/**
 * This is the entry point method.
 */
public void onModuleLoad() {
    SplitLayoutPanel mainPanel = new SplitLayoutPanel();



    mainPanel.setStylePrimaryName("main");

    treePanel = new TreePanel(this);
    contentPanel = new ScrollPanel();

    companyPanel = new CompanyPanel(treePanel);
    departmentPanel = new DepartmentPanel(treePanel, this);
    employeePanel = new EmployeePanel(treePanel, this);

    treePanel.refreshTree();

    ScrollPanel treeScroll = new ScrollPanel(treePanel);
    treeScroll.setStylePrimaryName("tree");

    mainPanel.addSouth(new ButtonPanel(this), 32);
    mainPanel.addWest(treeScroll, 350);
    mainPanel.add(contentPanel);

    RootPanel.get("content").add(mainPanel);
}
项目:che    文件:PerspectiveViewImpl.java   
/** Returns split panel. */
public SplitLayoutPanel getSplitPanel() {
  return splitPanel;
}
项目:che    文件:SubPanelViewImpl.java   
@Inject
public SubPanelViewImpl(
    SubPanelViewImplUiBinder uiBinder,
    TabItemFactory tabItemFactory,
    Menu menu,
    @Assisted ClosePaneAction closePaneAction,
    @Assisted RemoveAllWidgetsInPaneAction removeAllWidgetsInPaneAction,
    @Assisted SplitHorizontallyAction splitHorizontallyAction,
    @Assisted SplitVerticallyAction splitVerticallyAction) {
  this.tabItemFactory = tabItemFactory;
  this.menu = menu;

  closePaneMenuItem = new MenuItemActionWidget(closePaneAction);
  menu.addListItem(closePaneMenuItem);
  menu.addListItem(new MenuItemActionWidget(removeAllWidgetsInPaneAction));
  menu.addListItem(new MenuItemActionWidget(splitHorizontallyAction));
  menu.addListItem(new MenuItemActionWidget(splitVerticallyAction));

  menu.setDelegate(this);

  tabs2Widgets = new HashMap<>();
  widgets2Tabs = new HashMap<>();
  widgets2ListItems = new HashMap<>();
  eastSubPanels = new ArrayList<>();
  southSubPanels = new ArrayList<>();

  splitLayoutPanel = new SplitLayoutPanel(3);

  initWidget(uiBinder.createAndBindUi(this));

  menuPanel.add(menu);

  plusPanel.getElement().setInnerHTML(FontAwesome.PLUS);
  plusPanel.addDomHandler(
      new ClickHandler() {
        @Override
        public void onClick(ClickEvent clickEvent) {
          delegate.onAddTabButtonClicked(
              getAbsoluteLeft(plusPanel.getElement()) + POPUP_OFFSET,
              getAbsoluteTop(plusPanel.getElement()) + POPUP_OFFSET);
        }
      },
      ClickEvent.getType());

  widgetsPanel.ensureDebugId("process-output-panel-holder");
  widgetsPanel.addDomHandler(
      event -> delegate.onWidgetFocused(widgetsPanel.getVisibleWidget()), ClickEvent.getType());
}
项目:firefly    文件:GwtUtil.java   
public static void showWidget(SplitLayoutPanel splitPanel, Widget widget) {
    showWidget((DockLayoutPanel) splitPanel, widget);
}
项目:grails-console-charts    文件:ApplicationDesktopView.java   
@Inject
ApplicationDesktopView(final Binder binder) {
    container = new SplitLayoutPanel(3);

    initWidget(binder.createAndBindUi(this));
}
项目:opennmszh    文件:DefaultApplicationView.java   
private SplitLayoutPanel getSplitPanel() {
    return splitPanel;
}
项目:consulo    文件:CellBrowser.java   
protected <T> CellBrowser(Builder<T> builder) {
  super(builder.viewModel);
  if (template == null) {
    template = GWT.create(Template.class);
  }
  Resources resources = builder.resources();
  this.style = resources.cellBrowserStyle();
  this.style.ensureInjected();
  this.cellListResources = new CellListResourcesImpl(resources);
  this.loadingIndicator = builder.loadingIndicator;
  this.pagerFactory = builder.pagerFactory;
  this.pageSize = builder.pageSize;
  initWidget(new SplitLayoutPanel());
  getElement().getStyle().setOverflow(Overflow.AUTO);
  setStyleName(this.style.cellBrowserWidget());

  // Initialize the open and close images strings.
  ImageResource treeOpen = resources.cellBrowserOpen();
  ImageResource treeClosed = resources.cellBrowserClosed();
  openImageHtml = getImageHtml(treeOpen);
  closedImageHtml = getImageHtml(treeClosed);
  imageWidth = Math.max(treeOpen.getWidth(), treeClosed.getWidth());
  minWidth = imageWidth + 20;

  // Add a placeholder to maintain the scroll width.
  scrollLock = Document.get().createDivElement();
  scrollLock.getStyle().setPosition(Position.ABSOLUTE);
  scrollLock.getStyle().setVisibility(Visibility.HIDDEN);
  scrollLock.getStyle().setZIndex(-32767);
  scrollLock.getStyle().setTop(0, Unit.PX);
  if (LocaleInfo.getCurrentLocale().isRTL()) {
    scrollLock.getStyle().setRight(0, Unit.PX);
  } else {
    scrollLock.getStyle().setLeft(0, Unit.PX);
  }
  scrollLock.getStyle().setHeight(1, Unit.PX);
  scrollLock.getStyle().setWidth(1, Unit.PX);
  getElement().appendChild(scrollLock);

  // Associate the first view with the rootValue.
  appendTreeNode(getNodeInfo(builder.rootValue), builder.rootValue);

  // Catch scroll events.
  sinkEvents(Event.ONSCROLL);
}
项目:consulo    文件:CellBrowser.java   
/**
 * Create a new {@link TreeNodeImpl} and append it to the end of the
 * LayoutPanel.
 *
 * @param <C> the data type of the children
 * @param nodeInfo the info about the node
 * @param value the value of the open node
 */
private <C> TreeNode appendTreeNode(final NodeInfo<C> nodeInfo, Object value) {
  // Create the list view.
  final int level = treeNodes.size();
  final BrowserCellList<C> view = createDisplay(nodeInfo, level);

  // Create a pager and wrap the components in a scrollable container. Set the
  // tabIndex to -1 so the user can tab between lists without going through
  // the scrollable.
  ScrollPanel scrollable = new ScrollPanel();
  scrollable.getElement().setTabIndex(-1);
  final Widget pager = createPager(view);
  if (pager != null) {
    FlowPanel flowPanel = new FlowPanel();
    flowPanel.add(view);
    flowPanel.add(pager);
    scrollable.setWidget(flowPanel);
  } else {
    scrollable.setWidget(view);
  }
  scrollable.setStyleName(style.cellBrowserColumn());
  if (level == 0) {
    scrollable.addStyleName(style.cellBrowserFirstColumn());
  }

  // Create a TreeNode.
  TreeNodeImpl<C> treeNode = new TreeNodeImpl<C>(nodeInfo, value, view, scrollable);
  treeNodes.add(treeNode);

  /*
   * Attach the view to the selection model and node info. Nullify the default
   * selection manager because it is provided by the node info.
   */
  view.setSelectionModel(nodeInfo.getSelectionModel(), null);
  nodeInfo.setDataDisplay(view);

  // Add the view to the LayoutPanel.
  SplitLayoutPanel splitPanel = getSplitLayoutPanel();
  splitPanel.insertLineStart(scrollable, defaultWidth, null);
  splitPanel.setWidgetMinSize(scrollable, minWidth);
  splitPanel.forceLayout();

  // Scroll to the right.
  animation.scrollToEnd();
  return treeNode;
}
项目:gwtmockito    文件:GwtMockitoTestRunner.java   
/**
 * Returns a collection of classes whose non-abstract methods should always be replaced with
 * no-ops. By default, this list includes {@link Composite}, {@link DOM} {@link UIObject},
 * {@link Widget}, {@link Image}, and most subclasses of {@link Panel}. It will also include any
 * classes specified via the {@link WithClassesToStub} annotation on the test class. This makes
 * it much safer to test code that uses or extends these types.
 * <p>
 * This list can be customized via {@link WithClassesToStub} or by defining a new test runner
 * extending {@link GwtMockitoTestRunner} and overriding this method. This allows users to
 * explicitly stub out particular classes that are causing problems in tests. If you override this
 * method, you will probably want to retain the classes that are stubbed here by doing something
 * like this:
 *
 * <pre>
 * &#064;Override
 * protected Collection&lt;Class&lt;?&gt;&gt; getClassesToStub() {
 *   Collection&lt;Class&lt;?&gt;&gt; classes = super.getClassesToStub();
 *   classes.add(MyBaseWidget.class);
 *   return classes;
 * }
 * </pre>
 *
 * @return a collection of classes whose methods should be stubbed with no-ops while running tests
 */
protected Collection<Class<?>> getClassesToStub() {
  Collection<Class<?>> classes = new LinkedList<Class<?>>();
  classes.add(Composite.class);
  classes.add(DOM.class);
  classes.add(UIObject.class);
  classes.add(Widget.class);

  classes.add(DataGrid.class);
  classes.add(HTMLTable.class);
  classes.add(Image.class);

  classes.add(AbsolutePanel.class);
  classes.add(CellList.class);
  classes.add(CellPanel.class);
  classes.add(CellTable.class);
  classes.add(ComplexPanel.class);
  classes.add(DeckLayoutPanel.class);
  classes.add(DeckPanel.class);
  classes.add(DecoratorPanel.class);
  classes.add(DockLayoutPanel.class);
  classes.add(DockPanel.class);
  classes.add(FlowPanel.class);
  classes.add(FocusPanel.class);
  classes.add(HorizontalPanel.class);
  classes.add(HTMLPanel.class);
  classes.add(LayoutPanel.class);
  classes.add(Panel.class);
  classes.add(PopupPanel.class);
  classes.add(RenderablePanel.class);
  classes.add(ResizeLayoutPanel.class);
  classes.add(SimpleLayoutPanel.class);
  classes.add(SimplePanel.class);
  classes.add(SplitLayoutPanel.class);
  classes.add(StackPanel.class);
  classes.add(VerticalPanel.class);
  classes.add(ValueListBox.class);

  WithClassesToStub annotation = unitTestClass.getAnnotation(WithClassesToStub.class);
  if (annotation != null) {
    classes.addAll(Arrays.asList(annotation.value()));
  }

  return classes;
}
项目:OpenNMS    文件:DefaultApplicationView.java   
private SplitLayoutPanel getSplitPanel() {
    return splitPanel;
}
项目:document-management-system    文件:VerticalSplitLayoutExtended.java   
/**
 * getSplitPanel
 *
 * @return
 */
public SplitLayoutPanel getSplitPanel() {
    return this;
}
项目:che    文件:WorkBenchControllerFactory.java   
/**
 * Creates special controller using throwing parameters.
 *
 * @param parentPanel parent panel
 * @param simplePanel child panel,changes of which should be controlled
 * @return an instance of {@link WorkBenchPartController}
 */
WorkBenchPartController createController(
    @NotNull SplitLayoutPanel parentPanel, @NotNull SimplePanel simplePanel);
项目:consulo    文件:CellBrowser.java   
/**
 * Get the {@link SplitLayoutPanel} used to lay out the views.
 *
 * @return the {@link SplitLayoutPanel}
 */
private SplitLayoutPanel getSplitLayoutPanel() {
  return (SplitLayoutPanel) getWidget();
}