Interface ApplicationAction
-
public interface ApplicationActionContract of an application action. Created on 11/23/13.- Since:
- 2.8
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaction()Real action code.voiddone()Executed when action ended with success.voidfail(Exception error)Executed when action failed.booleanprepare()Before executing the action.
-
-
-
Method Detail
-
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
void fail(Exception error)
Executed when action failed.- Parameters:
error- failure exception
-
-