本文整理了Java中com.google.gwt.user.client.ui.Panel.getOffsetWidth()
方法的一些代码示例,展示了Panel.getOffsetWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.getOffsetWidth()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Panel
类名称:Panel
方法名:getOffsetWidth
暂无
代码示例来源:origin: thothbot/parallax
@Override
public int getWidth() {
return root.getOffsetWidth();
}
代码示例来源:origin: org.jboss.errai/errai-workspaces
public int getWidthHint() {
return p.getOffsetWidth();
}
}
代码示例来源:origin: org.jboss.errai/errai-workspaces
public int getPanelWidth() {
return w == 0 ? super.getOffsetWidth() : w;
}
代码示例来源:origin: sk.seges.acris/acris-widgets-beantable
private void refreshWidth() {
// Now include borders into master.
width = container.getOffsetWidth();
if (width == 0) {
throw new IllegalStateException(
"The underlying content width cannot be 0. Please ensure that the .container css style has a fixed width");
}
if (getState() == State.EXPANDED) {
adjustmentsForExpandedState();
} else {
adjustmentsForCollapsedState();
// we don't know if we just moved the mouse outside of the
setPanelPos(0);
state = State.IS_HIDDEN;
}
}
代码示例来源:origin: thothbot/parallax
throw new ParallaxRuntimeException("Canvas not supported");
int width = root.getOffsetWidth();
int height = root.getOffsetHeight();
内容来源于网络,如有侵权,请联系作者删除!