Package eu.webtoolkit.jwt
Interface WLayoutItem
- All Known Implementing Classes:
WBorderLayout
,WBoxLayout
,WFitLayout
,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
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.
-
Method Details
-
findWidgetItem
Finds the widget item corresponding to the given widgetThe widget is searched for recursively inside nested layouts.
-
getLayout
WLayout getLayout()Returns the layout that implements thisWLayoutItem
.This implements a type-safe upcasting mechanism to a
WLayout
. -
getWidget
WWidget getWidget()Returns the widget that is held by thisWLayoutItem
.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
Internal method. -
setParentLayout
Internal method.
-