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


Java DockLayoutPanel.addSouth方法代码示例

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


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

示例1: layoutViews

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
private void layoutViews() {
	TermDetailsView termView = new TermDetailsView(eventBus, service);
	TermSynonymsView synonymsView = new TermSynonymsView(eventBus, service);
	RelatedTermsView relationshipsView = new RelatedTermsView(eventBus, service);
	SearchInputView searchInputView = new SearchInputView(eventBus, service);
	SearchOptionsView searchOptionsView = new SearchOptionsView(eventBus, service);
	SearchResultsView searchResultsView = new SearchResultsView(eventBus, service, searchOptionsView);
	SVGView svgView = new SVGView(eventBus, service);
	//CodeListView codelistView = new CodeListView(eventBus, service);
			
	DockLayoutPanel layoutPanel = new DockLayoutPanel(Unit.PX);
	HorizontalPanel southPanel = new HorizontalPanel();	
	southPanel.add(termView);
	southPanel.add(synonymsView);
	southPanel.add(relationshipsView);
	
	southPanel.setCellWidth(termView, "33.33%");
	southPanel.setCellWidth(synonymsView, "33.33%");
	southPanel.setCellWidth(relationshipsView, "33.33%");
	southPanel.setWidth("100%");
	
	FlowPanel eastPanel = new FlowPanel();										
	eastPanel.add(searchInputView);
	eastPanel.add(searchOptionsView);
	eastPanel.add(searchResultsView);
			
	layoutPanel.addNorth(menuBar, 30);
	layoutPanel.addSouth(southPanel, 197);		
	layoutPanel.addEast(eastPanel, 300);	
	layoutPanel.add(svgView);
			
	RootLayoutPanel.get().add(layoutPanel);
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:34,代码来源:OntoBrowser.java

示例2: addPreviewTab

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
protected void addPreviewTab() {
	DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
	Button b = new Button("Save!", new ClickHandler() {
	      public void onClick(ClickEvent event) {
	        Window.alert("This will save...");
	      }
	    });
	p.addNorth(new HTML("header"), 2);
	p.addSouth(new HTML("footer"), 2);
	p.addWest(b, 10);
	p.add(new HTML("Here we will display the preview"));
	p.setWidth(Window.getClientWidth()/5*4+"px");
	p.setHeight(Window.getClientHeight()/5*4+"px");
	main.add(p, "preview & save");
}
 
开发者ID:metafora-project,项目名称:CAVilLag,代码行数:16,代码来源:CAVilLag.java

示例3: ExtendedDockPanel

import com.google.gwt.user.client.ui.DockLayoutPanel; //导入方法依赖的package包/类
/**
 * Extended dock panel
 */
public ExtendedDockPanel() {
	dockPanel = new DockLayoutPanel(Unit.PX);
	folderSelectPopup = new FolderSelectPopup();
	enableKeyShorcuts();

	// Object initialization
	topPanel = new TopPanel();
	leftBorderPanel = new VerticalBorderPanel();
	rightBorderPanel = new VerticalBorderPanel();
	bottomPanel = new BottomPanel();

	// Desktop panels initialization
	desktop = new Desktop();

	// Search panels initialization
	search = new Search();

	// Dashboard panel initialization
	dashboard = new Dashboard();

	// Administration panel initialization
	administration = new Administration();

	// set inner component's size
	setWidgetsSize();

	actualView = UIDockPanelConstants.DESKTOP;

	// Creates the dockPanel
	dockPanel.addNorth(topPanel, TopPanel.PANEL_HEIGHT);
	dockPanel.addSouth(bottomPanel, BottomPanel.PANEL_HEIGHT);
	dockPanel.addWest(leftBorderPanel, VERTICAL_BORDER_PANEL_WIDTH);
	dockPanel.addEast(rightBorderPanel, VERTICAL_BORDER_PANEL_WIDTH);
	dockPanel.add(desktop);

	Window.addResizeHandler(new ResizeHandler() {
		@Override
		public void onResize(ResizeEvent event) {
			setWidgetsSize();
			Main.get().mainPanel.topPanel.toolBar.windowResized(); // splitter changes
		}
	});

	initWidget(dockPanel);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:49,代码来源:ExtendedDockPanel.java


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