|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.Task
com.smartgwt.client.util.workflow.UserTask
public class UserTask
A task that involves showing a user interface to the end user allowing the user to view and input data and press a button (or do some other UI gesture) to complete the task.
A UserTask takes the following steps:
targetView DynamicForm designated as the
targetForm or to a ValuesManager designated as the targetVM, via setValues SubmitItem is pressed in either the targetForm or any form
that is a member of the targetVM. Likewise a CancelItem
triggers cancellation. Direct calls to DynamicForm.cancelEditing or DynamicForm.completeEditing achieve the same result. cancelElement
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.BaseClass |
|---|
config, id, scClassName |
| Constructor Summary | |
|---|---|
UserTask()
|
|
UserTask(JavaScriptObject jsObj)
|
|
UserTask(String ID)
|
|
| Method Summary | |
|---|---|
void |
cancelEditing()
Revert any changes made in a form and finish this userTask execution. |
void |
completeEditing()
Finish editing and store edited values in process state. |
JavaScriptObject |
create()
|
String |
getCancelElement()
Next element to proceed to if the task is cancelled because the targetForm or targetVM had cancelEditing() called on it. |
static UserTask |
getOrCreateRef(JavaScriptObject jsObj)
|
DynamicForm |
getTargetForm()
DynamicForm that should be populated with data and that should provide the data for the task outputs. |
Canvas |
getTargetView()
Optional widget that should be shown to allow user input. |
ValuesManager |
getTargetVM()
Optional ValuesManager which will receive task inputs and provide task outputs. |
void |
setCancelElement(String cancelElement)
Next element to proceed to if the task is cancelled because the targetForm or targetVM had cancelEditing() called on it. |
void |
setTargetForm(DynamicForm targetForm)
DynamicForm that should be populated with data and that should provide the data for the task outputs. |
void |
setTargetView(Canvas targetView)
Optional widget that should be shown to allow user input. |
void |
setTargetView(String targetView)
Optional widget that should be shown to allow user input. |
void |
setTargetVM(String targetVM)
Optional ValuesManager which will receive task inputs and provide task outputs. |
void |
setTargetVM(ValuesManager targetVM)
Optional ValuesManager which will receive task inputs and provide task outputs. |
| Methods inherited from class com.smartgwt.client.util.workflow.Task |
|---|
getInputField, getInputFields, getOutputField, getOutputFields, setInputField, setInputFields, setOutputField, setOutputFields |
| Methods inherited from class com.smartgwt.client.util.workflow.ProcessElement |
|---|
convertToJavaScriptArray, getID, getJsObj, getNextElement, getOrCreateJsObj, getProcessElements, isCreated, setAttribute, setID, setNextElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserTask()
public UserTask(JavaScriptObject jsObj)
public UserTask(String ID)
| Method Detail |
|---|
public static UserTask getOrCreateRef(JavaScriptObject jsObj)
public JavaScriptObject create()
create in class Task
public void setCancelElement(String cancelElement)
throws IllegalStateException
targetForm or targetVM had cancelEditing() called on it.
cancelElement - cancelElement Default value is null
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic String getCancelElement()
targetForm or targetVM had cancelEditing() called on it.
public void setTargetForm(DynamicForm targetForm)
throws IllegalStateException
Use targetVM to use a ValuesManager instead.
targetForm - targetForm Default value is null
IllegalStateException - this property cannot be changed after the underlying component has been createdpublic DynamicForm getTargetForm()
Use targetVM to use a ValuesManager instead.
public void cancelEditing()
cancelElement will be proceed as the next element of
current process.
public void completeEditing()
process state.
public void setTargetView(Canvas targetView)
targetForm unless either
targetForm or targetVM is set.
UserTask will automatically handle various scenarios of the targetView being not currently
visible or draw()n, according to the following rules:
pane of a tab in a TabSet, the tab will be selected items for a which is either
collapsed or hidden section, the section will be shown and expanded items for a Window, the Window will be shown
targetView - targetView Default value is nullpublic Canvas getTargetView()
targetForm unless either
targetForm or targetVM is set.
UserTask will automatically handle various scenarios of the targetView being not currently
visible or draw()n, according to the following rules:
pane of a tab in a TabSet, the tab will be selected items for a which is either
collapsed or hidden section, the section will be shown and expanded items for a Window, the Window will be shown
public void setTargetView(String targetView)
targetForm unless either
targetForm or targetVM is set.
UserTask will automatically handle various scenarios of the targetView being not currently
visible or draw()n, according to the following rules:
pane of a tab in a TabSet, the tab will be selected items for a which is either
collapsed or hidden section, the section will be shown and expanded items for a Window, the Window will be shown
targetView - targetView Default value is nullpublic void setTargetVM(ValuesManager targetVM)
targetForm instead of you want to use a DynamicForm.
targetVM - targetVM Default value is nullpublic ValuesManager getTargetVM()
targetForm instead of you want to use a DynamicForm.
public void setTargetVM(String targetVM)
targetForm instead of you want to use a DynamicForm.
targetVM - targetVM Default value is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||