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

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

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

  1. @Override
  2. public int getWidth() {
  3. return root.getOffsetWidth();
  4. }

代码示例来源:origin: org.jboss.errai/errai-workspaces

  1. public int getWidthHint() {
  2. return p.getOffsetWidth();
  3. }
  4. }

代码示例来源:origin: org.jboss.errai/errai-workspaces

  1. public int getPanelWidth() {
  2. return w == 0 ? super.getOffsetWidth() : w;
  3. }

代码示例来源:origin: sk.seges.acris/acris-widgets-beantable

  1. private void refreshWidth() {
  2. // Now include borders into master.
  3. width = container.getOffsetWidth();
  4. if (width == 0) {
  5. throw new IllegalStateException(
  6. "The underlying content width cannot be 0. Please ensure that the .container css style has a fixed width");
  7. }
  8. if (getState() == State.EXPANDED) {
  9. adjustmentsForExpandedState();
  10. } else {
  11. adjustmentsForCollapsedState();
  12. // we don't know if we just moved the mouse outside of the
  13. setPanelPos(0);
  14. state = State.IS_HIDDEN;
  15. }
  16. }

代码示例来源:origin: thothbot/parallax

  1. throw new ParallaxRuntimeException("Canvas not supported");
  2. int width = root.getOffsetWidth();
  3. int height = root.getOffsetHeight();

相关文章