Interface ActionHook<A extends HookableAction>
- Record Components:
A- the action type being hooked
- All Known Implementing Classes:
BackupCommandHook
public interface ActionHook<A extends HookableAction>
Interface used for
HookableActions.-
Method Summary
Modifier and TypeMethodDescriptionvoidafterAction(A action, ActionEvent ae) Method called afteer theHookableAction.hookableActionPerformed(ActionEvent)method is called.booleanbeforeAction(A action, ActionEvent ae) Method called before theHookableAction.hookableActionPerformed(ActionEvent)method is called.Return the action type.
-
Method Details
-
getActionType
-
beforeAction
Method called before theHookableAction.hookableActionPerformed(ActionEvent)method is called. This method may pre-empt the action by returningtrue.- Parameters:
action-ae-- Returns:
trueif the action should be cancelled,falseotherwise
-
afterAction
Method called afteer theHookableAction.hookableActionPerformed(ActionEvent)method is called.- Parameters:
action-ae-
-