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() . These examples are extracted from open source projects. 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
/**
 * 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 Project: consulo   File: GwtSplitLayoutImpl.java    License: 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 Project: consulo   File: GwtSplitLayoutImpl.java    License: 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);
  }
}