@Api public class ActionDefinition extends WorkflowComponent
Constructor and Description |
---|
ActionDefinition(String id,
LocalizedString name) |
ActionDefinition(String id,
String documentationLink,
LocalizedString name,
LocalizedString description,
Icon icon,
List<Category> categories,
List<ActionDestination> destinations,
List<ParameterDefinition<?>> parameters,
List<ContextVariable<?>> contextVariables) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
fragmentSupported(ActionUIFragment fragment) |
ActionDestination |
getDestination(ActionTarget actionTarget)
Returns action destination that matches declared action target.
|
List<ActionDestination> |
getDestinations()
Form areas affected by the action.
|
List<ActionDestination.Type> |
getDestinationsTypes()
Form areas affected by the action.
|
ActionUIFragment[] |
getFragments() |
int |
hashCode() |
void |
setFragments(ActionUIFragment[] fragments) |
boolean |
targetSupported(ActionTarget actionTarget)
Returns true if this action can be used on specified target.
|
getCategories, getContextVariables, getDescription, getDocumentationLink, getIcon, getId, getName, getParameter, getParameters, getSource, isDeprecated, setDeprecated, setSource
public ActionDefinition(String id, LocalizedString name)
public ActionDefinition(String id, String documentationLink, LocalizedString name, LocalizedString description, Icon icon, List<Category> categories, List<ActionDestination> destinations, List<ParameterDefinition<?>> parameters, List<ContextVariable<?>> contextVariables)
public List<ActionDestination> getDestinations()
ActionDestination.Type
.public List<ActionDestination.Type> getDestinationsTypes()
ActionDestination.Type
.public ActionDestination getDestination(ActionTarget actionTarget)
public boolean targetSupported(ActionTarget actionTarget)
actionTarget
- action targetpublic ActionUIFragment[] getFragments()
public void setFragments(ActionUIFragment[] fragments)
public boolean fragmentSupported(ActionUIFragment fragment)
public boolean equals(Object obj)
equals
in class ComponentDefinition
public int hashCode()
hashCode
in class ComponentDefinition
Copyright © 2019 Suncode. All rights reserved.