Class ComponentTask
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.ComponentTask
- All Implemented Interfaces:
- HasHandlers
- Direct Known Subclasses:
- AddScreenTask,- FetchRelatedDataTask,- FormClearValuesTask,- FormDisableFieldTask,- FormEditNewRecordTask,- FormEditSelectedTask,- FormResetValuesTask,- FormSaveDataTask,- FormSetFieldValueTask,- FormSetValuesTask,- FormValidateValuesTask,- GetPropertiesTask,- GridEditRecordTask,- GridExportClientDataTask,- GridExportDataTask,- GridFetchDataTask,- GridRemoveSelectedDataTask,- GridSaveAllEditsTask,- GridSelectRecordsTask,- GridSetEditValueTask,- GridTransferDataTask,- GridViewSelectedDataTask,- NavigateSplitPaneTask,- PrintCanvasTask,- SetPropertiesTask,- SetScreenDataTask,- SetTitleTask,- ShowComponentTask,- ShowHideTask,- ShowNextToComponentTask
Base class for tasks that target SmartGWT UI-specific operations. 
Note: This task is not for direct use - use one of the subclasses instead.
- 
Field SummaryFields inherited from class com.smartgwt.client.core.BaseClassconfig, configOnly, factoryCreated, factoryProperties, id, scClassName
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate()Base class of components that this task targets.String[]Base class of components that this task targets.ID of component targeted by this task.Must target components of this task have a DataSource?static ComponentTaskgetOrCreateRef(JavaScriptObject jsObj) Base class of components and any required or optional scope that this task targets.String[]Base class of components and any required or optional scope that this task targets.voidgetTargetComponent(Process process) Returns the actual component specified bycomponentIdfor this task.voidgetTargetComponent(Process process, Boolean skipValidation) Returns the actual component specified bycomponentIdfor this task.The default message to be reported withgetInvalidTaskMessage()when a target component type is not supported for the task.setComponentBaseClass(String componentBaseClass) Base class of components that this task targets.setComponentBaseClass(String... componentBaseClass) Base class of components that this task targets.setComponentId(String componentId) ID of component targeted by this task.setComponentRequiresDataSource(Boolean componentRequiresDataSource) Must target components of this task have a DataSource?setTargetBaseClass(String targetBaseClass) Base class of components and any required or optional scope that this task targets.setTargetBaseClass(String... targetBaseClass) Base class of components and any required or optional scope that this task targets.setUnsupportedComponentMessage(String unsupportedComponentMessage) The default message to be reported withgetInvalidTaskMessage()when a target component type is not supported for the task.Methods inherited from class com.smartgwt.client.util.workflow.ProcessElementcompleteElement, convertToJavaScriptArray, executeElement, getBindOutput, getClassDescription, getComponentReferences, getDescription, getDynamicValue, getEditorType, getElementDescription, getForceSingle, getID, getInvalidTaskMessage, getJsObj, getMockMode, getNextElement, getOrCreateJsObj, getPassThruOutput, getProcessElements, getSupportsMultipleInputRecords, getTextFormulaValue, getTypeTitle, getUndefinedComponentMessage, getUnresolvedComponentMessage, getWaitDuration, getWaitFor, getWaitLocator, isCreated, isValid, objectReferencesLastTaskOutput, onInit, reset, setAttribute, setBindOutput, setClassDescription, setDescription, setEditorType, setForceSingle, setID, setJavaScriptObject, setMockMode, setNextElement, setPassThruOutput, setSupportsMultipleInputRecords, setTypeTitle, setUndefinedComponentMessage, setUnresolvedComponentMessage, setWaitDuration, setWaitFor, setWaitLocator, updateGlobalIDInCriteria, updateGlobalIDInTextFormula, updateGlobalIDInValueProperty, updateGlobalIDInValues, updateGlobalIDReferences, updateLastElementBindingReferences, updateLastElementInCriteria, updateLastElementInValueProperty, updateLastElementInValuesMethods inherited from class com.smartgwt.client.core.BaseClassaddDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
- 
Constructor Details- 
ComponentTaskpublic ComponentTask()
- 
ComponentTask
 
- 
- 
Method Details- 
getOrCreateRef
- 
create- Overrides:
- createin class- ProcessElement
 
- 
setComponentBaseClassBase class of components that this task targets. ThecomponentIdmust be an instance of one of the classes.- Parameters:
- componentBaseClass- New componentBaseClass value. Default value is null
- Returns:
- ComponentTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getComponentBaseClassBase class of components that this task targets. ThecomponentIdmust be an instance of one of the classes.- Returns:
- Current componentBaseClass value. Default value is null
 
- 
setComponentBaseClasspublic ComponentTask setComponentBaseClass(String... componentBaseClass) throws IllegalStateException Base class of components that this task targets. ThecomponentIdmust be an instance of one of the classes.- Parameters:
- componentBaseClass- New componentBaseClass value. Default value is null
- Returns:
- ComponentTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getComponentBaseClassAsStringArrayBase class of components that this task targets. ThecomponentIdmust be an instance of one of the classes.- Returns:
- Current componentBaseClass value. Default value is null
 
- 
setComponentIdID of component targeted by this task.- Parameters:
- componentId- New componentId value. Default value is null
- Returns:
- ComponentTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
- See Also:
 
- 
getComponentIdID of component targeted by this task.- Returns:
- Current componentId value. Default value is null
- See Also:
 
- 
setComponentRequiresDataSourcepublic ComponentTask setComponentRequiresDataSource(Boolean componentRequiresDataSource) throws IllegalStateException Must target components of this task have a DataSource?- Parameters:
- componentRequiresDataSource- New componentRequiresDataSource value. Default value is null
- Returns:
- ComponentTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getComponentRequiresDataSourceMust target components of this task have a DataSource?- Returns:
- Current componentRequiresDataSource value. Default value is null
 
- 
setTargetBaseClassBase class of components and any required or optional scope that this task targets. ThecomponentIdmay not be an instance itself but when combined with the additional scope (targetFieldName, targetSectionName, ...) the actual target must be an instance of one of the classes.This can be used by an editor to limit or verify the user's selection. - Parameters:
- targetBaseClass- New targetBaseClass value. Default value is null
- Returns:
- ComponentTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getTargetBaseClassBase class of components and any required or optional scope that this task targets. ThecomponentIdmay not be an instance itself but when combined with the additional scope (targetFieldName, targetSectionName, ...) the actual target must be an instance of one of the classes.This can be used by an editor to limit or verify the user's selection. - Returns:
- Current targetBaseClass value. Default value is null
 
- 
setTargetBaseClassBase class of components and any required or optional scope that this task targets. ThecomponentIdmay not be an instance itself but when combined with the additional scope (targetFieldName, targetSectionName, ...) the actual target must be an instance of one of the classes.This can be used by an editor to limit or verify the user's selection. - Parameters:
- targetBaseClass- New targetBaseClass value. Default value is null
- Returns:
- ComponentTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getTargetBaseClassAsStringArrayBase class of components and any required or optional scope that this task targets. ThecomponentIdmay not be an instance itself but when combined with the additional scope (targetFieldName, targetSectionName, ...) the actual target must be an instance of one of the classes.This can be used by an editor to limit or verify the user's selection. - Returns:
- Current targetBaseClass value. Default value is null
 
- 
setUnsupportedComponentMessagepublic ComponentTask setUnsupportedComponentMessage(String unsupportedComponentMessage) throws IllegalStateException The default message to be reported withgetInvalidTaskMessage()when a target component type is not supported for the task.- Parameters:
- unsupportedComponentMessage- New unsupportedComponentMessage value. Default value is "${propertyName} '${id}' is not a supported type for this task"
- Returns:
- ComponentTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getUnsupportedComponentMessageThe default message to be reported withgetInvalidTaskMessage()when a target component type is not supported for the task.- Returns:
- Current unsupportedComponentMessage value. Default value is "${propertyName} '${id}' is not a supported type for this task"
 
- 
getTargetComponentReturns the actual component specified bycomponentIdfor this task. UnlessskipValidationis true, the component type is validated againstcomponentBaseClassand only returned if it matches. Null is returned otherwise.- Parameters:
- process- the process that is handling the workflow
 
- 
getTargetComponentReturns the actual component specified bycomponentIdfor this task. UnlessskipValidationis true, the component type is validated againstcomponentBaseClassand only returned if it matches. Null is returned otherwise.- Parameters:
- process- the process that is handling the workflow
- skipValidation- skip validation against componentBaseClass?
 
 
-