public interface MDIAction
Modifier and Type | Method and Description |
---|---|
void |
endAction()
Performed after the action has ended, if necessary.
|
MDIActionHandler |
getActionHandler()
Return the MDIActionHandler interface
|
default java.lang.Object |
getActionResult()
Return the action result.
|
java.lang.String |
getLongDescription()
Return a long description of the action.
|
java.lang.String |
getMessage()
Return a message that will be presented in the application Message area.
|
java.lang.String |
getShortDescription()
Return a short description of the action.
|
void |
run()
Run the action.
|
void |
setActionHandler(MDIActionHandler handler)
Set the MDIActionHandler interface which can be used when custom particular operations must be perform at the end
of a MDIAction.
|
void run() throws java.lang.Exception
ThreadQueue
, the
exception will be swallowed by the framework, and presented in an error panel after. Note that this method will be performed in a background Thread.java.lang.Exception
- if an Exception is encountered while running the Actionvoid setActionHandler(MDIActionHandler handler)
endAction()
method, such action handlers can be associated to any action
at will.handler
- the handlerMDIActionHandler getActionHandler()
setActionHandler(MDIActionHandler)
void endAction()
java.lang.String getShortDescription()
java.lang.String getLongDescription()
java.lang.String getMessage()
default java.lang.Object getActionResult()