Interface ComponentPopupSupport.Handler<T extends JComponent>

Enclosing class:
ComponentPopupSupport<T extends JComponent>

public static interface ComponentPopupSupport.Handler<T extends JComponent>
The handler for the popup. The handler is used to handle the OK and Cancel button presses as well as any other actions that need to be taken before or after the popup is shown.
  • Method Details

    • onOK

      boolean onOK(ComponentPopupSupport<T> source)
      The OK button has been pressed
      Returns:
      true if the popup should be hidden
    • onCancel

      default boolean onCancel(ComponentPopupSupport<T> source)
      The Cancel button has been pressed
      Returns:
      true if the popup should be hidden
    • onWillBecomeVisible

      default void onWillBecomeVisible(ComponentPopupSupport<T> source)
      Called before the popup is shown.
    • onPopupShown

      default void onPopupShown(ComponentPopupSupport<T> source)
      Called after the popup is shown.