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


Java SplitLayoutPanel.addEast方法代码示例

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


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

示例1: 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

示例2: 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


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