Class Action


  • public class Action
    extends java.lang.Object
    Represents an action of a layer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_VARIABLE_ID
      The maximum variable ID.
      static int MIN_VARIABLE_ID
      The minimum variable ID.
    • Constructor Summary

      Constructors 
      Constructor Description
      Action​(int type, int variableId, int app, java.lang.String url)
      Creates an action.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getApp()
      Returns the app of this action (see ActionApps, relevant only for launch app action type).
      int getType()
      Returns the type of this action.
      java.lang.String getUrl()
      Returns the URL of this action (relevant only for launch URL action type).
      int getVariableId()
      Returns the variable ID of this action (relevant only for variable action types).
      • Methods inherited from class java.lang.Object

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

      • MIN_VARIABLE_ID

        public static final int MIN_VARIABLE_ID
        The minimum variable ID.
        See Also:
        Constant Field Values
      • MAX_VARIABLE_ID

        public static final int MAX_VARIABLE_ID
        The maximum variable ID.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Action

        public Action​(int type,
                      int variableId,
                      int app,
                      java.lang.String url)
        Creates an action.
        Parameters:
        type - the type of the action (see ActionTypes).
        variableId - the variable ID of the action (relevant only for variable action types).
        app - the app of the action (see ActionApps, relevant only for launch app action type).
        url - the URL of the action (relevant only for launch URL action type).
    • Method Detail

      • getType

        public int getType()
        Returns the type of this action.
        Returns:
        the type of this action (see ActionTypes).
      • getVariableId

        public int getVariableId()
        Returns the variable ID of this action (relevant only for variable action types).
        Returns:
        the variable ID of this action.
      • getApp

        public int getApp()
        Returns the app of this action (see ActionApps, relevant only for launch app action type).
        Returns:
        the app of this action.
      • getUrl

        public java.lang.String getUrl()
        Returns the URL of this action (relevant only for launch URL action type).
        Returns:
        the URL of this action.