Package swingtree

Interface WindowDelegate<W extends Window,E>

Type Parameters:
W - The type of the window.
E - The type of the event.

public interface WindowDelegate<W extends Window,E>
A delegate for any kind of Swing window, usually a JFrame or a JDialog, which is passed to the event handlers in the SwingTree API.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    This method allows you to access the underlying window instance of this delegate.
    @Nullable E
    Allows you to access the delegated event instance.
  • Method Details

    • get

      W get()
      This method allows you to access the underlying window instance of this delegate. See getEvent() for the event instance.
      Returns:
      The window which is wrapped by this delegate.
    • getEvent

      @Nullable E getEvent()
      Allows you to access the delegated event instance. See get() for the window instance.
      Returns:
      The event which is wrapped by this delegate.