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

x33g5p2x  于2022-02-02 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(154)

本文整理了Java中com.google.gwt.user.client.ui.Widget.getOffsetHeight()方法的一些代码示例,展示了Widget.getOffsetHeight()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.getOffsetHeight()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Widget
类名称:Widget
方法名:getOffsetHeight

Widget.getOffsetHeight介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

@Override
 protected int getTargetSize() {
  return target.getOffsetHeight();
 }
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

@Override
 protected int getTargetSize() {
  return target.getOffsetHeight();
 }
}

代码示例来源:origin: com.allen-sauer.gwt.dnd/gwt-dnd

public Draggable(Widget widget) {
  this.widget = widget;
  offsetWidth = widget.getOffsetWidth();
  offsetHeight = widget.getOffsetHeight();
 }
}

代码示例来源:origin: com.google.gwt/gwt-servlet

int contentHeight = (w == null) ? 0 : w.getOffsetHeight();
int contentWidth = (w == null) ? 0 : w.getOffsetWidth();

代码示例来源:origin: com.googlecode.mgwt/mgwt

private void checkDOMChanges() {
 if (moved || zoomed || animating || (Math.abs(scrollerWidth - scroller.getOffsetWidth() * scale) < 0.01 && Math.abs(scrollerHeight - scroller.getOffsetHeight() * scale) < 0.01)) {
  return;
 }
 refresh();
}

代码示例来源:origin: org.drools/drools-wb-dsl-text-editor-client

@Override
  public void onResize() {
    int height = getParent().getOffsetHeight();
//        int width = getParent().getOffsetWidth();
//        setPixelSize( width,
//                      height );
    editor.setHeight( height + "px" );
    editor.redisplay();
  }

代码示例来源:origin: org.jbpm/jbpm-gwt-form-api

public MovablePanel(Widget widget, Widget oldContainer) {
  super();
  this.mainWidget = widget;
  this.oldContainer = oldContainer;
  setPixelSize(this.mainWidget.getOffsetWidth(), this.mainWidget.getOffsetHeight());
  add(this.mainWidget, 0, 0);
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-project-client

@Override
public void onResize() {
  final Widget parent = getParent();
  if (parent != null) {
    final double w = parent.getOffsetWidth();
    final double h = parent.getOffsetHeight();
    setPixelSize((int) w, (int) h);
  }
  editorPanel.onResize();
}

代码示例来源:origin: org.uberfire/widgets-commons

@Override
public void onResize() {
  int height = getParent().getOffsetHeight();
  int width = getParent().getOffsetWidth();
  setPixelSize( width,
         height );
}

代码示例来源:origin: org.uberfire/uberfire-widgets-core-client

@Override
  public void onResize() {
    int height = getParent().getOffsetHeight();
    int width = getParent().getOffsetWidth();
    frame.setPixelSize(width,
              height);
  }
}

代码示例来源:origin: org.drools/drools-wb-workitems-editor-client

@Override
  public void onResize() {
    final int height = getParent().getOffsetHeight() - VERTICAL_MARGIN;
    row.setHeight((height > 0 ? height : 0) + "px");
    editorContainer.setHeight(((height > 0 ? height : 0) + SCROLL_BAR_SIZE) + "px");
    workItemWidget.onResize();
  }
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

@Override
public void onResize() {
  final Widget parent = getParent();
  if (parent != null) {
    final int width = parent.getOffsetWidth();
    final int height = parent.getOffsetHeight();
    sp.setPixelSize(width,
            height);
  }
  super.onResize();
}

代码示例来源:origin: com.googlecode.mgwt/mgwt

@Override
public void adjust(Widget main, FlowPanel container) {
 int widgetCount = container.getWidgetCount();
 double scaleFactor = 100d / widgetCount;
 for (int i = 0; i < widgetCount; i++) {
  Widget w = container.getWidget(i);
  w.setWidth(scaleFactor + "%");
  w.getElement().getStyle().setLeft(i * scaleFactor, Unit.PCT);
 }
 container.setWidth((widgetCount * 100) + "%");
 container.getElement().getStyle().setHeight(main.getOffsetHeight(), Unit.PX);
}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-common-ui

@Override
public void onResize() {
  int height = getParent().getOffsetHeight();
  int width = getParent().getOffsetWidth();
  setPixelSize( width,
         height );
  drlEditor.onResize();
}

代码示例来源:origin: org.kie.guvnor/guvnor-test-scenario-editor-client

@Override
public void onResize() {
  dataGrid.setPixelSize((int) (getParent().getOffsetWidth() * 0.60),
      getParent().getOffsetHeight());
  dataGrid.onResize();
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

@Test
  public void testOnResize() {
    when(parent.getOffsetWidth()).thenReturn(WIDTH);
    when(parent.getOffsetHeight()).thenReturn(HEIGHT);

    ((ResizeFlowPanel) view.asWidget()).onResize();

    verify(panel).setPixelSize(WIDTH, HEIGHT);
    verify(panel).doSuperOnResize();
  }
}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-common-ui

@Override
public void onResize() {
  int height = getParent().getOffsetHeight();
  int width = getParent().getOffsetWidth();
  setPixelSize( width,
         height );
  editor.setHeight( height + "px" );
  editor.redisplay();
}

代码示例来源:origin: org.optaplanner/optaplanner-wb-solver-editor-client

@Override
public void onResize() {
  int height = getParent().getOffsetHeight();
  int width = getParent().getOffsetWidth();
  setPixelSize(width,
         height);
  editor.setHeight(height + "px");
  editor.redisplay();
}

代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

private int calculateFormHeight() {
  int formHeight = dialog.getOffsetHeight();
  formHeight -= getDialogHeaderOuterHeight() + getDialogFooterOuterHeight();
  formHeight -= getDialogMargin()[TOP];
  formHeight -= getDialogContentMargin()[TOP] - getDialogContentMargin()[BOTTOM];
  formHeight -= getDialogDesErrorOuterHeight();
  return formHeight;
}

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

public void execute() {
  if (getParent().isVisible())
   setPixelSize(getParent().getOffsetWidth(), getParent().getOffsetHeight());
 }
});

相关文章