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