本文整理汇总了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);
}
}