Package ca.phon.app.hooks
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
HookableAction
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterAction
(A action, ActionEvent ae) Method called afteer theHookableAction.hookableActionPerformed(ActionEvent)
method is called.boolean
beforeAction
(A action, ActionEvent ae) Method called before theHookableAction.hookableActionPerformed(ActionEvent)
method is called.Return the action type.
-
Method Details
-
getActionType
Return the action type.- Returns:
- hookable action class
-
beforeAction
Method called before theHookableAction.hookableActionPerformed(ActionEvent)
method is called. This method may pre-empt the action by returningtrue
.- Parameters:
action
-ae
-- Returns:
true
if the action should be cancelled,false
otherwise
-
afterAction
Method called afteer theHookableAction.hookableActionPerformed(ActionEvent)
method is called.- Parameters:
action
-ae
-
-