Package PamController.status
Class QuickRemedialAction
java.lang.Object
PamController.status.QuickRemedialAction
- All Implemented Interfaces:
RemedialAction
Quick remedial action. Can generally be used to wrap an existing menu item handler
- Author:
- dg50
-
Constructor Summary
ConstructorDescriptionQuickRemedialAction
(PamControlledUnit pamControlledUnit, String info, ActionListener action) -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()
Text based information about the action to take - might be displayed on screen, in a tooltip, etc.takeAction
(ModuleStatus currentStatus) Take remedial action - open a dialog, fix it directly, etc.
-
Constructor Details
-
QuickRemedialAction
-
-
Method Details
-
getInfo
Description copied from interface:RemedialAction
Text based information about the action to take - might be displayed on screen, in a tooltip, etc.- Specified by:
getInfo
in interfaceRemedialAction
- Returns:
- text information about the action.
-
takeAction
Description copied from interface:RemedialAction
Take remedial action - open a dialog, fix it directly, etc.- Specified by:
takeAction
in interfaceRemedialAction
- Parameters:
currentStatus
- current status - may contain information needed for the action- Returns:
- new status following the attempted action.
-