Package com.google.gwt.user.client.ui
Interface ProvidesResize
- All Known Implementing Classes:
CellBrowser
,CustomScrollPanel
,DeckLayoutPanel
,DockLayoutPanel
,LayoutPanel
,ResizeLayoutPanel
,RootLayoutPanel
,ScrollPanel
,SimpleLayoutPanel
,SplitLayoutPanel
,StackLayoutPanel
,TabLayoutPanel
public interface ProvidesResize
This tag interface specifies that the implementing widget will call
RequiresResize.onResize()
on its children whenever their size may
have changed.
With limited exceptions (such as RootLayoutPanel
), widgets that
implement this interface will also implement RequiresResize
. A typical
widget will implement RequiresResize.onResize()
like this:
public void onResize() {
for (Widget child : getChildren()) {
if (child instanceof RequiresResize) {
((RequiresResize) child).onResize();
}
}
}