Interface ContainerWithComponent<C extends Component>

  • Type Parameters:
    C - the type of component
    All Known Implementing Classes:
    ReportContainer

    public interface ContainerWithComponent<C extends Component>
    Interface for Containers that also store a Swing component associated with the payload.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • hasComponent

        boolean hasComponent()
        Checks whether a component is stored.
        Returns:
        true if a component is available
      • setComponent

        void setComponent​(C value)
        Sets the component to associate.
        Parameters:
        value - the component
      • getComponent

        C getComponent()
        Returns the stored component.
        Returns:
        the component, null if none available