Interface ApplicationAction
public interface ApplicationAction
Contract of an application action.
Created on 11/23/13.
- Since:
- 2.8
- Author:
- Tony Chemit - chemit@codelutin.com
-
Method Details
-
prepare
boolean prepare()Before executing the action. This code is executed in the Swing thread- Returns:
trueif action can be execute,falseotherwise.
-
action
void action()Real action code. This code is not executed, you can't then touch to any models or components of UI. -
done
void done()Executed when action ended with success. This code is executed in the Swing thread, you can here update -
fail
Executed when action failed.- Parameters:
error- failure exception
-