eu.webtoolkit.jwt
Interface WLayoutItem

All Known Implementing Classes:
WBorderLayout, WBoxLayout, WGridLayout, WHBoxLayout, WLayout, WVBoxLayout, WWidgetItem

public interface WLayoutItem

An abstract base class for items that can participate in a layout.

See Also:
WLayout

Method Summary
 WWidgetItem findWidgetItem(WWidget widget)
          Finds the widget item corresponding to the given widget.
 WLayoutItemImpl getImpl()
          Returns the implementation for this layout item.
 WLayout getLayout()
          Returns the layout that implements this WLayoutItem.
 WLayout getParentLayout()
          Returns the layout in which this item is contained.
 WWidget getWidget()
          Returns the widget that is held by this WLayoutItem.
 void setParentLayout(WLayout parentLayout)
          Internal method.
 void setParentWidget(WWidget parent)
          Internal method.
 

Method Detail

findWidgetItem

WWidgetItem findWidgetItem(WWidget widget)
Finds the widget item corresponding to the given widget.

The widget is searched for recursively inside nested layouts.


getLayout

WLayout getLayout()
Returns the layout that implements this WLayoutItem.

This implements a type-safe upcasting mechanism to a WLayout.


getWidget

WWidget getWidget()
Returns the widget that is held by this WLayoutItem.

This implements a type-safe upcasting mechanism to a WWidgetItem.


getParentLayout

WLayout getParentLayout()
Returns the layout in which this item is contained.


getImpl

WLayoutItemImpl getImpl()
Returns the implementation for this layout item.

The implementation of a layout item depends on the kind of container for which the layout does layout management.


setParentWidget

void setParentWidget(WWidget parent)
Internal method.


setParentLayout

void setParentLayout(WLayout parentLayout)
Internal method.