eu.webtoolkit.jwt
Class WWidgetItem

java.lang.Object
  extended by eu.webtoolkit.jwt.WWidgetItem
All Implemented Interfaces:
WLayoutItem

public class WWidgetItem
extends java.lang.Object
implements WLayoutItem

A layout item that holds a single widget.

See Also:
WLayout.addWidget(WWidget w)

Constructor Summary
WWidgetItem(WWidget widget)
          Creates a new item for the given widget.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WWidgetItem

public WWidgetItem(WWidget widget)
Creates a new item for the given widget.

Method Detail

getWidget

public WWidget getWidget()
Description copied from interface: WLayoutItem
Returns the widget that is held by this WLayoutItem.

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

Specified by:
getWidget in interface WLayoutItem

getLayout

public WLayout getLayout()
Description copied from interface: WLayoutItem
Returns the layout that implements this WLayoutItem.

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

Specified by:
getLayout in interface WLayoutItem

getParentLayout

public WLayout getParentLayout()
Description copied from interface: WLayoutItem
Returns the layout in which this item is contained.

Specified by:
getParentLayout in interface WLayoutItem

findWidgetItem

public WWidgetItem findWidgetItem(WWidget widget)
Description copied from interface: WLayoutItem
Finds the widget item corresponding to the given widget.

The widget is searched for recursively inside nested layouts.

Specified by:
findWidgetItem in interface WLayoutItem

getImpl

public WLayoutItemImpl getImpl()
Description copied from interface: WLayoutItem
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.

Specified by:
getImpl in interface WLayoutItem

setParentWidget

public void setParentWidget(WWidget parent)
Description copied from interface: WLayoutItem
Internal method.

Specified by:
setParentWidget in interface WLayoutItem

setParentLayout

public void setParentLayout(WLayout parentLayout)
Description copied from interface: WLayoutItem
Internal method.

Specified by:
setParentLayout in interface WLayoutItem