Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityEditPanel.Confirmer
- Enclosing class:
- EntityEditPanel
public static interface EntityEditPanel.Confirmer
Handles displaying confirmation messages for common actions to the user.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EntityEditPanel.Confirmer
A convenience instance indicating no confirmation is needed. -
Method Summary
Modifier and TypeMethodDescriptionboolean
confirm
(JComponent dialogOwner) Returns true if the action is confirmed, presents an OK/Cancel confirm dialog to the user if required.default boolean
confirm
(JComponent dialogOwner, String message, String title) Shows a confirmation dialog
-
Field Details
-
NONE
A convenience instance indicating no confirmation is needed.
-
-
Method Details
-
confirm
Returns true if the action is confirmed, presents an OK/Cancel confirm dialog to the user if required.- Parameters:
dialogOwner
- the owner for the dialog- Returns:
- true if the action is confirmed
-
confirm
Shows a confirmation dialog- Parameters:
dialogOwner
- the dialog ownermessage
- the dialog messagetitle
- the dialog title- Returns:
- true if OK was pressed
-