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 Summary

    Modifier and Type Method Description
    void action()
    Real action code.
    void done()
    Executed when action ended with success.
    void fail​(Exception error)
    Executed when action failed.
    boolean prepare()
    Before executing the action.
  • Method Details

    • 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