com.google.gwt.user.client.ui.Panel.getOffsetWidth()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(156)

本文整理了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

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();

相关文章