Class JavaScriptAction

  • All Implemented Interfaces:

    
    public final class JavaScriptAction
    extends Action
                        

    Action that should trigger execution of JavaScript embedded in it.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final String script
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getScript() Returns JavaScript code to be executed.
      ActionType getType() Returns type of action to make down-casting easier.
      int hashCode()
      boolean equals(Object o)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaScriptAction

        JavaScriptAction(String script)
        Constructs the JavaScript action with given script.
        Parameters:
        script - Script that should be executed when the action gets triggered.
      • JavaScriptAction

        JavaScriptAction(String script, List<Action> subActions)
        Constructs the JavaScript action with given script.
        Parameters:
        script - Script that should be executed when the action gets triggered.
        subActions - List of sub-actions of this action.