本文整理汇总了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;
}
示例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);
}