Interface Composite

All Known Subinterfaces:
BasePane, Border, Window
All Known Implementing Classes:
AbstractBasePane, AbstractBasePane.ContentHolder, AbstractBorder, AbstractComposite, AbstractWindow, ActionListDialog, BasicWindow, Borders.DoubleLine, Borders.SingleLine, Borders.StandardBorder, ComboBox.PopupWindow, DialogWindow, DirectoryDialog, FileDialog, ListSelectDialog, MenuPopupWindow, MessageDialog, TextInputDialog, WaitingDialog

public interface Composite
A Composite is a Container that contains only one (or zero) component. Normally it is a kind of decorator, like a border, that wraps a single component for visualization purposes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the component that this Composite is wrapping
    void
    Sets the component which is inside this Composite.
  • Method Details

    • getComponent

      Component getComponent()
      Returns the component that this Composite is wrapping
      Returns:
      Component the composite is wrapping
    • setComponent

      void setComponent(Component component)
      Sets the component which is inside this Composite. If you call this method with null, it removes the component wrapped by this Composite.
      Parameters:
      component - Component to wrap