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 Summary
Modifier and TypeMethodDescriptiondefault boolean
onCancel
(ComponentPopupSupport<T> source) The Cancel button has been pressedboolean
onOK
(ComponentPopupSupport<T> source) The OK button has been presseddefault void
onPopupShown
(ComponentPopupSupport<T> source) Called after the popup is shown.default void
onWillBecomeVisible
(ComponentPopupSupport<T> source) Called before the popup is shown.
-
Method Details
-
onOK
The OK button has been pressed- Returns:
- true if the popup should be hidden
-
onCancel
The Cancel button has been pressed- Returns:
- true if the popup should be hidden
-
onWillBecomeVisible
Called before the popup is shown. -
onPopupShown
Called after the popup is shown.
-