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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
static class
Special gson adapter to avoid extra fields when enabled is true or when the permissions are at their defaults. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.inductiveautomation.ignition.common.gson.JsonObject
final Boolean
If null, action is enabled.final PermissionsConfig
final Boolean
If null, preventDefault is disabled.final ActionConfig.ActionScope
static final String
final Boolean
If null, stopPropagation is disabled.final String
-
Constructor Summary
ConstructorsConstructorDescriptionActionConfig
(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
-
config
public final com.inductiveautomation.ignition.common.gson.JsonObject config -
enabled
If null, action is enabled. -
stopPropagation
If null, stopPropagation is disabled. -
preventDefault
If null, preventDefault is disabled. -
permissions
-
-
Constructor Details
-
ActionConfig
public ActionConfig(ActionConfig.ActionScope scope, String type, boolean enabled, boolean stopPropagation, boolean preventDefault, com.inductiveautomation.ignition.common.gson.JsonObject config, PermissionsConfig permissions)
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
isPropagationStopped
public boolean isPropagationStopped() -
isDefaultPrevented
public boolean isDefaultPrevented() -
getPermissions
-
toString
-
equals
-
hashCode
public int hashCode()
-