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 Detail

      • prepare

        boolean prepare()
        Before executing the action. This code is executed in the Swing thread
        Returns:
        true if action can be execute, false otherwise.
      • 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