org.gcube.portlets.user.joinnew.client.commons
Interface ResizableWidget


public interface ResizableWidget

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


Method Summary
 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 © 2013. All Rights Reserved.