ResizableWidget (gCube Bundle Login Portlet 2.0.0-SNAPSHOT API)
Date: 2014-05-10

org.gcube.portlets.user.gcubelogin.client.commons

## Interface ResizableWidget

-     public interface ResizableWidget

  An interface that defines the methods required to support automatic resizing of the Widget element.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.google.gwt.user.client.Element` | `getElement()` Get the widget's element.
    `boolean` | `isAttached()` Check if this widget is attached to the page.
    `void` | `onResize(int width, int height)` This method is called when the dimensions of the parent element change.

- - ### Method Detail

    - #### getElement

          com.google.gwt.user.client.Element getElement()

      Get the widget's element.

    - #### isAttached

          boolean isAttached()

      Check if this widget is attached to the page.
      Returns:
        true if the widget is attached to the page

    - #### onResize

          void onResize(int width,
                      int height)

      This method is called when the dimensions of the parent element change. Subclasses should override this method as needed.
      Parameters:
        `width` - the new client width of the element
        `height` - the new client height of the element

Copyright © 2014. All Rights Reserved.