当前位置: 首页>>代码示例>>Java>>正文


Java SplitLayoutPanel.add方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.SplitLayoutPanel.add方法的典型用法代码示例。如果您正苦于以下问题:Java SplitLayoutPanel.add方法的具体用法?Java SplitLayoutPanel.add怎么用?Java SplitLayoutPanel.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.SplitLayoutPanel的用法示例。


在下文中一共展示了SplitLayoutPanel.add方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setInitialFolderManagementView

import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入方法依赖的package包/类
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();
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:27,代码来源:FolderManagementView.java

示例2: split

import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入方法依赖的package包/类
@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);
}
 
开发者ID:eclipse,项目名称:che,代码行数:20,代码来源:SplitEditorPartViewImpl.java

示例3: DataSourceCoveragePreview

import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入方法依赖的package包/类
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);
    }

}
 
开发者ID:lsst,项目名称:firefly,代码行数:24,代码来源:DataSourceCoveragePreview.java

示例4: TestResultViewImpl

import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入方法依赖的package包/类
@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();
}
 
开发者ID:eclipse,项目名称:che,代码行数:38,代码来源:TestResultViewImpl.java

示例5: SplitLayoutPanelView

import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入方法依赖的package包/类
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);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:12,代码来源:SplitLayoutPanelView.java

示例6: onInitialize

import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入方法依赖的package包/类
/**
 * 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;
}
 
开发者ID:Peergos,项目名称:Peergos,代码行数:33,代码来源:CwSplitLayoutPanel.java

示例7: GwtThreeComponentSplitLayout

import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入方法依赖的package包/类
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);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:16,代码来源:GwtThreeComponentSplitLayout.java

示例8: onModuleLoad

import com.google.gwt.user.client.ui.SplitLayoutPanel; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:amritbhat786,项目名称:DocIT,代码行数:29,代码来源:GwtTree.java


注:本文中的com.google.gwt.user.client.ui.SplitLayoutPanel.add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。