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:
  • Method Details

    • 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.
    • getParentWidget

      WWidget getParentWidget()
    • getImpl

      WLayoutItemImpl getImpl()
    • iterateWidgets

      void iterateWidgets(HandleWidgetMethod method)
    • setParentWidget

      void setParentWidget(WWidget parent)
      Internal method.
    • setParentLayout

      void setParentLayout(WLayout parentLayout)
      Internal method.