Class ActionConfig
java.lang.Object
com.inductiveautomation.perspective.common.config.ActionConfig
ActionConfig holds the configuration of a single action. These are held as part of the collection of actions
 that may respond to an event. See 
EventConfig
 Note that we also define all of the IDs of inductive automation's built-in action types here on this class, because it is a convenient place in common scope to define them.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic classSpecial gson adapter to avoid extra fields when enabled is true or when the permissions are at their defaults.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal com.inductiveautomation.ignition.common.gson.JsonObjectfinal BooleanIf null, action is enabled.final PermissionsConfigfinal BooleanIf null, preventDefault is disabled.final ActionConfig.ActionScopestatic final Stringfinal BooleanIf null, stopPropagation is disabled.final String
- 
Constructor SummaryConstructorsConstructorDescriptionActionConfig(ActionConfig.ActionScope scope, String type, boolean enabled, boolean stopPropagation, boolean preventDefault, com.inductiveautomation.ignition.common.gson.JsonObject config, PermissionsConfig permissions) 
- 
Method Summary
- 
Field Details- 
SCRIPT_ACTION_ID- See Also:
 
- 
scope
- 
type
- 
configpublic final com.inductiveautomation.ignition.common.gson.JsonObject config
- 
enabledIf null, action is enabled.
- 
stopPropagationIf null, stopPropagation is disabled.
- 
preventDefaultIf null, preventDefault is disabled.
- 
permissions
 
- 
- 
Constructor Details- 
ActionConfigpublic ActionConfig(ActionConfig.ActionScope scope, String type, boolean enabled, boolean stopPropagation, boolean preventDefault, com.inductiveautomation.ignition.common.gson.JsonObject config, PermissionsConfig permissions) 
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()
- 
isPropagationStoppedpublic boolean isPropagationStopped()
- 
isDefaultPreventedpublic boolean isDefaultPrevented()
- 
getPermissions
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-