當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。