Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.systemwideinterfaces.core.UserAction< R > Class Reference

Inherits CoreAction< R >.

List of all members.

Public Member Functions

 UserAction ()
 UserAction (IContext context)
final R execute () throws Exception
abstract R executeAction () throws Exception

Detailed Description

Abstract class for user actions
Usage:

  • extend this class (define R!)
  • implement the method executeAction()

    Example:
    public class ExampleAction extends UserAction<String>
    {
    private String param;

    public ExampleAction(String param)
    {
    super();
    this.param = param;
    }

    public String executeAction() throws Exception
    {
    return "Hello world! ("+this.param+")";
    }

    public String toString()
    {
    return "ExampleAction:: param="+this.param;
    }
    }

Constructor & Destructor Documentation

com.mendix.systemwideinterfaces.core.UserAction< R >.UserAction ( )
com.mendix.systemwideinterfaces.core.UserAction< R >.UserAction ( IContext  context)

Member Function Documentation

final R com.mendix.systemwideinterfaces.core.UserAction< R >.execute ( ) throws Exception

This, already implemented, method calls executeAction on execution of this Action

abstract R com.mendix.systemwideinterfaces.core.UserAction< R >.executeAction ( ) throws Exception [pure virtual]

Implement this method, this method will be called when this action is executed

Returns:
returns the result of the execution
Exceptions:
Exception

The documentation for this class was generated from the following file: