Package com.microej.facer.model
Class Action
- java.lang.Object
-
- com.microej.facer.model.Action
-
public class Action extends java.lang.ObjectRepresents an action of a layer.
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_VARIABLE_IDThe maximum variable ID.static intMIN_VARIABLE_IDThe 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 intgetApp()Returns the app of this action (seeActionApps, relevant only for launch app action type).intgetType()Returns the type of this action.java.lang.StringgetUrl()Returns the URL of this action (relevant only for launch URL action type).intgetVariableId()Returns the variable ID of this action (relevant only for variable action types).
-
-
-
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 (seeActionTypes).variableId- the variable ID of the action (relevant only for variable action types).app- the app of the action (seeActionApps, 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 (seeActionApps, 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.
-
-