本文整理了Java中com.google.gwt.user.client.ui.Panel.setHeight()
方法的一些代码示例,展示了Panel.setHeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.setHeight()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Panel
类名称:Panel
方法名:setHeight
暂无
代码示例来源:origin: org.jboss.errai/errai-bus
private void resize() {
contentPanel.setWidth(Window.getClientWidth() * 0.90 + "px");
contentPanel.setHeight(Window.getClientHeight() * 0.90 + "px");
contentPanel.getElement().getStyle().setProperty("overflow", "auto");
}
}
代码示例来源:origin: kiegroup/jbpm-wb
@Override
public void setDisplayerHeight(int h) {
displayerPanel.setHeight((h + 25) + "px");
}
代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client
@Override
public void setHeight(int height) {
super.setHeight(height + "px");
mainPanel.setHeight(height + "px");
listBox.setWidth(height + "px");
}
代码示例来源:origin: kiegroup/appformer
@Override
public void setHeight(int height) {
super.setHeight(height + "px");
mainPanel.setHeight(height + "px");
listBox.setWidth(height + "px");
}
代码示例来源:origin: net.sf.advanced-gwt/advanced-gwt
/**
* Getter for property 'scrollPanel'.
*
* @return Value for property 'scrollPanel'.
*/
protected Panel getScrollPanel() {
if (scrollPanel == null) {
scrollPanel = new RowsScrollPanel();
scrollPanel.setHeight(getOffsetHeight() + "px");
((ScrollPanel) scrollPanel).setAlwaysShowScrollBars(false);
}
return scrollPanel;
}
代码示例来源:origin: errai/errai
private void resize() {
contentPanel.setWidth(Window.getClientWidth() * 0.90 + "px");
contentPanel.setHeight(Window.getClientHeight() * 0.90 + "px");
contentPanel.getElement().getStyle().setProperty("overflow", "auto");
}
}
代码示例来源:origin: geogebra/geogebra
@Override
public void setTeXIcon(TeXIcon icon) {
this.lastIcon = icon;
double height = computeHeight(icon);
if (ctx == null || height < 0) {
return;
}
ctx.getCanvas().getStyle().setHeight(height, Unit.PX);
ctx.getCanvas().getStyle().setWidth(roundUp(icon.getIconWidth() + 30),
Unit.PX);
parent.setHeight(height + "px");
parent.getElement().getStyle().setVerticalAlign(VerticalAlign.TOP);
repaintWeb();
}
代码示例来源:origin: net.sf.advanced-gwt/advanced-gwt
scrollPanel.setHeight(height);
scrollPanel.setWidth(width);
} else if (!enabled && isScrollable()) {
内容来源于网络,如有侵权,请联系作者删除!