Package eu.webtoolkit.jwt
Class WWidgetItem
java.lang.Object
eu.webtoolkit.jwt.WWidgetItem
- All Implemented Interfaces:
WLayoutItem
A layout item that holds a single widget.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindWidgetItem
(WWidget widget) Finds the widget item corresponding to the given widgetgetImpl()
Returns the layout that implements thisWLayoutItem
.Returns the layout in which this item is contained.Returns the widget that is held by thisWLayoutItem
.void
iterateWidgets
(HandleWidgetMethod method) void
setParentLayout
(WLayout parentLayout) Internal method.void
setParentWidget
(WWidget parent) Internal method.
-
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
-
getParentWidget
- Specified by:
getParentWidget
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
- Specified by:
getImpl
in interfaceWLayoutItem
-
getTakeWidget
-
iterateWidgets
- Specified by:
iterateWidgets
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
-