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

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

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

Panel.setWidth介绍

暂无

代码示例

代码示例来源: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/drools-wb

@Override
  public void onResize( final ResizeEvent event ) {
    final int width = event.getWidth();
    panel.setWidth( width + "px" );
  }
} );

代码示例来源:origin: kiegroup/appformer

@Override
public void setWidth(int width) {
  super.setWidth(width + "px");
  mainPanel.setWidth(width + "px");
  listBox.setWidth(width + "px");
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

@Override
public void setWidth(int width) {
  super.setWidth(width + "px");
  mainPanel.setWidth(width + "px");
  listBox.setWidth(width + "px");
}

代码示例来源:origin: kiegroup/appformer

public void setResizable(int maxWidth, int maxHeight) {
  displayerPanel.setWidth("100%");
  displayerPanel.getElement().getStyle().setProperty("maxWidth", maxWidth + "px");
  displayerPanel.getElement().getStyle().setProperty("maxHeight", maxHeight + "px");
  registerMutationObserver();
}

代码示例来源: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: net.sf.advanced-gwt/advanced-gwt

scrollPanel.setWidth(width);
} else if (!enabled && isScrollable()) {
  Element parent = DOM.getParent(scrollPanel.getElement());

代码示例来源:origin: GwtMaterialDesign/gwt-material-table

xScrollPanel.setWidth((innerScroll.asElement().getScrollWidth() + frozenMarginLeft) + "px");

代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material-table

xScrollPanel.setWidth((innerScroll.asElement().getScrollWidth() + frozenMarginLeft) + "px");

代码示例来源:origin: GwtMaterialDesign/gwt-material-table

xScrollPanel.setWidth((innerScroll.asElement().getScrollWidth() + frozenMarginLeft) + "px");
  return true;
});
    xScrollPanel.setWidth((el.getScrollWidth() + frozenMarginLeft) + "px");

代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material-table

xScrollPanel.setWidth((innerScroll.asElement().getScrollWidth() + frozenMarginLeft) + "px");
  return true;
});
    xScrollPanel.setWidth((el.getScrollWidth() + frozenMarginLeft) + "px");

相关文章