本文整理汇总了Java中com.google.gwt.user.client.ui.HorizontalSplitPanel类的典型用法代码示例。如果您正苦于以下问题:Java HorizontalSplitPanel类的具体用法?Java HorizontalSplitPanel怎么用?Java HorizontalSplitPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HorizontalSplitPanel类属于com.google.gwt.user.client.ui包,在下文中一共展示了HorizontalSplitPanel类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: LinksPanel
import com.google.gwt.user.client.ui.HorizontalSplitPanel; //导入依赖的package包/类
public LinksPanel() {
HorizontalSplitPanel mainPanel = new HorizontalSplitPanel();
initWidget(mainPanel);
//lst.setStyleName("link-list");
lst.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent ev) {
selectLink(lst.getLastClicked());
}
});
//linkPanel.add(lst);
deckPanel.setStyleName("content-panel");
//mainPanel.add(linkPanel);
mainPanel.add(lst);
mainPanel.setSplitPosition("25%");
mainPanel.add(deckPanel);
// mainPanel.setStyleName("links-panel");
}
开发者ID:lsst,项目名称:firefly,代码行数:21,代码来源:LinksPanel.java
示例2: SplitPanelExample
import com.google.gwt.user.client.ui.HorizontalSplitPanel; //导入依赖的package包/类
public SplitPanelExample() {
super("Split Panels");
HorizontalSplitPanel horiz = new HorizontalSplitPanel();
horiz.setWidth("250px");
horiz.setHeight("250px");
horiz.setLeftWidget(new Label("Left"));
horiz.setRightWidget(new Label("Right"));
// horiz.setSplitPosition("10px");
add(horiz);
VerticalSplitPanel vert = new VerticalSplitPanel();
vert.setWidth("250px");
vert.setHeight("250px");
vert.setTopWidget(new Label("Top"));
vert.setBottomWidget(new Label("Bottom"));
// vert.setSplitPosition("15px");
add(vert);
}
开发者ID:DavidWhitlock,项目名称:PortlandStateJava,代码行数:21,代码来源:SplitPanelExample.java
示例3: TrueHorizontalSplitPanel
import com.google.gwt.user.client.ui.HorizontalSplitPanel; //导入依赖的package包/类
public TrueHorizontalSplitPanel() {
panel = new HorizontalSplitPanel(new HorizontalPanelSplitter());
setSize("100%", "100%");
super.add(panel);
setCellHeight(panel, "100%");
setCellWidth(panel, "100%");
}
开发者ID:Antokolos,项目名称:iambookmaster,代码行数:8,代码来源:TrueHorizontalSplitPanel.java
示例4: setMainScreen
import com.google.gwt.user.client.ui.HorizontalSplitPanel; //导入依赖的package包/类
public void setMainScreen(GWT_CiBean account) {
this.account = account;
getHeaderScreen().setWidth("100%");
DockPanel outer = new DockPanel();
BaseScreen header = getHeaderScreen();
if (header instanceof HeaderScreen) {
((HeaderScreen)header).setAccount(account);
}
outer.add(header, DockPanel.NORTH);
//outer.add(getNavigationScreen()), DockPanel.WEST);
//outer.add(getMainPanel(), DockPanel.CENTER);
//navigationScroll = new ScrollPanel(getNavigationScreen());
//mainPanelScroll = new ScrollPanel(getMainPanel());
//navigationScroll.setAlwaysShowScrollBars(true);
//mainPanelScroll.setAlwaysShowScrollBars(true);
centerSplit = new HorizontalSplitPanel();
centerSplit.setLeftWidget(getNavigationScreen());
centerSplit.setRightWidget(getMainPanel());
getMainPanel().setStyleName("mdv-form");
centerSplit.setSplitPosition("35%");
//outer.add(navigationScroll, DockPanel.WEST);
//outer.add(mainPanelScroll, DockPanel.CENTER);
outer.add(centerSplit, DockPanel.CENTER);
getMainPanel().setSize("100%", "100%");
getNavigationScreen().setSize("100%", "100%");
if (getFooterScreen() != null) {
getFooterScreen().setWidth("100%");
getFooterScreen().setStyleName("mdv-form");
outer.add(getFooterScreen(), DockPanel.SOUTH);
}
outer.setWidth("100%");
outer.setWidth("100%");
outer.setSpacing(4);
//outer.setCellWidth(getMainPanel(), "100%");
//outer.setCellHeight(getMainPanel(), "100%");
outer.setCellWidth(centerSplit, "100%");
outer.setCellHeight(centerSplit, "100%");
RootPanel.get().clear();
RootPanel.get().add(outer);
// No main scrolls..
Window.enableScrolling(false);
// Call the window resized handler to get the initial sizes setup.
onWindowResized(Window.getClientWidth(), Window.getClientHeight());
showScreen(WELCOME_SCREEN);
}
开发者ID:luox12,项目名称:onecmdb,代码行数:55,代码来源:OneCMDBApplication.java
注:本文中的com.google.gwt.user.client.ui.HorizontalSplitPanel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论