Java Code Examples for com.google.gwt.user.client.ui.Widget#setSize()

The following examples show how to use com.google.gwt.user.client.ui.Widget#setSize() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MockWrapper.java    From appinventor-extensions with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the widget that is wrapped by the wrapper.
 */
protected final void initWrapper(Widget wrappedWidget) {
  // The wrapped widget should always fill up the wrapper.
  wrappedWidget.setSize("100%", "100%");
  wrapper.setWidget(wrappedWidget);
  initComponent(wrapper);
}
 
Example 2
Source File: GwtSplitLayoutImpl.java    From consulo with Apache License 2.0 5 votes vote down vote up
public void setFirstWidget(@Nullable Widget widget) {
  if (widget != null) {
    widget.setSize("100%", "100%");
  }
  myFirstWidget.clear();
  if (widget != null) {
    myFirstWidget.add(widget);
  }
  setWidgetToggleDisplayAllowed(myFirstWidget, widget != null);
}
 
Example 3
Source File: GwtSplitLayoutImpl.java    From consulo with Apache License 2.0 5 votes vote down vote up
public void setSecondWidget(@javax.annotation.Nullable Widget widget) {
  if (widget != null) {
    widget.setSize("100%", "100%");
  }
  mySecondWidget.clear();
  if (widget != null) {
    mySecondWidget.add(widget);
  }
}