當前位置: 首頁>>代碼示例>>Java>>正文


Java Grid.setHeight方法代碼示例

本文整理匯總了Java中com.google.gwt.user.client.ui.Grid.setHeight方法的典型用法代碼示例。如果您正苦於以下問題:Java Grid.setHeight方法的具體用法?Java Grid.setHeight怎麽用?Java Grid.setHeight使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.google.gwt.user.client.ui.Grid的用法示例。


在下文中一共展示了Grid.setHeight方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: buildBannerTable

import com.google.gwt.user.client.ui.Grid; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public HTMLTable buildBannerTable(final int rows, final int cols) {

	final Grid gridLayout = new Grid(rows, cols);
	gridLayout.addStyleName(ProjectView.STYLE_HEADER_BANNER_FLEX);
	gridLayout.setCellPadding(0);
	gridLayout.setCellSpacing(0);
	gridLayout.setWidth("100%");
	gridLayout.setHeight("100%");

	for (int i = 0; i < gridLayout.getColumnCount() - 1; i++) {
		gridLayout.getColumnFormatter().setWidth(i, "325px");
	}

	return gridLayout;
}
 
開發者ID:sigmah-dev,項目名稱:sigmah,代碼行數:20,代碼來源:ProjectView.java

示例2: createProjectBannerPanel

import com.google.gwt.user.client.ui.Grid; //導入方法依賴的package包/類
/**
 * Creates the project banner panel.
 *
 * @return The project banner panel.
 */
private Component createProjectBannerPanel() {

	// Main panel.
	projectBannerPanel = Panels.content(I18N.CONSTANTS.loading()); // Temporary title.

	// Main grid.
	projectBannerGrid = new Grid(1, 2);
	projectBannerGrid.addStyleName(STYLE_HEADER_BANNER);
	projectBannerGrid.setCellPadding(0);
	projectBannerGrid.setCellSpacing(0);
	projectBannerGrid.setWidth("100%");
	projectBannerGrid.setHeight("100%");

	// Logo cell style.
	projectBannerGrid.getCellFormatter().setStyleName(HEADER_BANNER_LOGO_CELL.left, HEADER_BANNER_LOGO_CELL.right, STYLE_HEADER_BANNER_LOGO);

	projectBannerPanel.add(projectBannerGrid);

	return projectBannerPanel;
}
 
開發者ID:sigmah-dev,項目名稱:sigmah,代碼行數:26,代碼來源:ProjectView.java

示例3: createOrgUnitBannerPanel

import com.google.gwt.user.client.ui.Grid; //導入方法依賴的package包/類
/**
 * Creates the OrgUnit banner panel.
 * 
 * @return The OrgUnit banner panel.
 */
private Component createOrgUnitBannerPanel() {

	// Main panel.
	orgUnitBannerPanel = Panels.content(I18N.CONSTANTS.orgunit()); // Temporary title.

	// Main grid.
	orgUnitBannerGrid = new Grid(1, 2);
	orgUnitBannerGrid.addStyleName(ProjectView.STYLE_HEADER_BANNER);
	orgUnitBannerGrid.setCellPadding(0);
	orgUnitBannerGrid.setCellSpacing(0);
	orgUnitBannerGrid.setWidth("100%");
	orgUnitBannerGrid.setHeight("100%");

	// Logo cell.
	orgUnitBannerGrid.getCellFormatter().setStyleName(HEADER_BANNER_LOGO_CELL.left, HEADER_BANNER_LOGO_CELL.right, ProjectView.STYLE_HEADER_BANNER_LOGO);
	orgUnitBannerGrid.setWidget(HEADER_BANNER_LOGO_CELL.left, HEADER_BANNER_LOGO_CELL.right, OrgUnitImageBundle.ICONS.orgUnitLarge().createImage());

	orgUnitBannerPanel.add(orgUnitBannerGrid);

	return orgUnitBannerPanel;
}
 
開發者ID:sigmah-dev,項目名稱:sigmah,代碼行數:27,代碼來源:OrgUnitView.java

示例4: SlideBar

import com.google.gwt.user.client.ui.Grid; //導入方法依賴的package包/類
public SlideBar() {
	Element element = getElement();
	this.setWidth("100%");
	this.setHeight("100%");
	this.setStylePrimaryName(BAR_CLASS_NAME);
	DOM.setStyleAttribute(element, "overflow", "hidden");
	BrowserUtils.setStyleAttributeAllBrowsers(element, "boxSizing", "border-box");
	
	track = new Grid();

	track.setWidth("100%");
	track.setHeight("100%");
	track.setStylePrimaryName(TRACK_CLASS_NAME);

	BrowserUtils.setStyleAttributeAllBrowsers(track.getElement(), "boxSizing", "border-box");
	minTrack = new TrackMinMax();
	minTrack.setHeight("100%");
	minTrack.setWidth("100%");
	minTrack.setStylePrimaryName(TRACK_CLASS_NAME + "Min");
	BrowserUtils.setStyleAttributeAllBrowsers(minTrack.getElement(), "boxSizing", "border-box");
	maxTrack = new TrackMinMax();
	maxTrack.setHeight("100%");
	maxTrack.setWidth("100%");
	maxTrack.setStylePrimaryName(TRACK_CLASS_NAME + "Max");
	BrowserUtils.setStyleAttributeAllBrowsers(maxTrack.getElement(), "boxSizing", "border-box");
	
	this.add(track,0,0);
	
	if (!isPassive)
	{
		this.addStyleName(INTERACTIVE_CLASS_NAME);
	}
}
 
開發者ID:openremote,項目名稱:WebConsole,代碼行數:34,代碼來源:SliderComponent.java


注:本文中的com.google.gwt.user.client.ui.Grid.setHeight方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。