Package eu.webtoolkit.jwt
Class WWidgetItem
java.lang.Object
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
Constructors Constructor Description WWidgetItem(WWidget widget)
Creates a new item for the given widget. -
Method Summary
Modifier and Type Method Description WWidgetItem
findWidgetItem(WWidget widget)
Finds the widget item corresponding to the given widgetWLayoutItemImpl
getImpl()
Returns the implementation for this layout item.WLayout
getLayout()
Returns the layout that implements thisWLayoutItem
.WLayout
getParentLayout()
Returns the layout in which this item is contained.WWidget
getWidget()
Returns the widget that is held by thisWLayoutItem
.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 Details
-
WWidgetItem
Creates a new item for the given widget.
-
-
Method Details
-
getWidget
Description copied from interface:WLayoutItem
Returns the widget that is held by thisWLayoutItem
.This implements a type-safe upcasting mechanism to a
WWidgetItem
.- Specified by:
getWidget
in interfaceWLayoutItem
-
getLayout
Description copied from interface:WLayoutItem
Returns the layout that implements thisWLayoutItem
.This implements a type-safe upcasting mechanism to a
WLayout
.- Specified by:
getLayout
in interfaceWLayoutItem
-
getParentLayout
Description copied from interface:WLayoutItem
Returns the layout in which this item is contained.- Specified by:
getParentLayout
in interfaceWLayoutItem
-
findWidgetItem
Description copied from interface:WLayoutItem
Finds the widget item corresponding to the given widgetThe widget is searched for recursively inside nested layouts.
- Specified by:
findWidgetItem
in interfaceWLayoutItem
-
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 interfaceWLayoutItem
-
setParentWidget
Description copied from interface:WLayoutItem
Internal method.- Specified by:
setParentWidget
in interfaceWLayoutItem
-
setParentLayout
Description copied from interface:WLayoutItem
Internal method.- Specified by:
setParentLayout
in interfaceWLayoutItem
-