Class ResizeComposite

All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasVisibility, IsRenderable, IsWidget, RequiresResize
Direct Known Subclasses:
StackLayoutPanel, TabLayoutPanel

public abstract class ResizeComposite extends Composite implements RequiresResize
A Composite implementation that implements RequiresResize and automatically delegates that interface's methods to its wrapped widget, which must itself implement RequiresResize.
  • Constructor Details

    • ResizeComposite

      public ResizeComposite()
  • Method Details

    • initWidget

      protected void initWidget(Widget widget)
      Description copied from class: Composite
      Sets the widget to be wrapped by the composite. The wrapped widget must be set before calling any Widget methods on this object, or adding it to a panel. This method may only be called once for a given composite.
      Overrides:
      initWidget in class Composite
      Parameters:
      widget - the widget to be wrapped
    • onResize

      public void onResize()
      Description copied from interface: RequiresResize
      This method must be called whenever the implementor's size has been modified.
      Specified by:
      onResize in interface RequiresResize