Class ActionDefinition
java.lang.Object
com.suncode.pwfl.component.ComponentDefinition
com.suncode.pwfl.workflow.component.WorkflowComponent
com.suncode.pwfl.workflow.form.action.ActionDefinition
Form action definition.
- Author:
- RafaĆ Nowacki 30 lis 2015
-
Constructor Summary
ConstructorsConstructorDescriptionActionDefinition
(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, List<DtButtonDefinition> dtButtons, LocalizedString deprecationDescription) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
fragmentSupported
(ActionUIFragment fragment) getDestination
(ActionTarget actionTarget) Returns action destination that matches declared action target.Form areas affected by the action.Form areas affected by the action.int
hashCode()
void
setFragments
(ActionUIFragment[] fragments) boolean
targetSupported
(ActionTarget actionTarget) Returns true if this action can be used on specified target.Methods inherited from class com.suncode.pwfl.component.ComponentDefinition
getCategories, getContextVariables, getDeprecationDescription, getDescription, getDocumentationLink, getIcon, getId, getName, getParameter, getParameters, getSource, isDeprecated, setDeprecated, setSource
-
Constructor Details
-
ActionDefinition
-
ActionDefinition
public ActionDefinition(String id, String documentationLink, LocalizedString name, LocalizedString description, Icon icon, List<Category> categories, List<ActionDestination> destinations, List<ParameterDefinition<?>> parameters, List<ContextVariable<?>> contextVariables, List<DtButtonDefinition> dtButtons, LocalizedString deprecationDescription)
-
-
Method Details
-
getDestinations
Form areas affected by the action. Possible types are available inActionDestination.Type
.- Returns:
- Form areas
-
getDestinationsTypes
Form areas affected by the action. Possible types are available inActionDestination.Type
.- Returns:
- Form areas
-
getDestination
Returns action destination that matches declared action target.- Returns:
- action destination
-
targetSupported
Returns true if this action can be used on specified target.- Parameters:
actionTarget
- action target- Returns:
- true if target is supported on this action
-
setFragments
-
fragmentSupported
-
equals
- Overrides:
equals
in classComponentDefinition
-
hashCode
public int hashCode()- Overrides:
hashCode
in classComponentDefinition
-