|
|||||||||
| 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(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
| 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. |
com.google.gwt.core.client.JavaScriptObject |
create()
|
java.lang.String |
getCancelElement()
Next element to proceed to if the task is cancelled because the targetForm or targetVM had cancelEditing() called on it. |
Canvas |
getInlineView()
An inline definition of the form. |
static UserTask |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
java.lang.String |
getPreviousElement()
Previous workflow sequence or element that is helpful for wizards. |
java.lang.Boolean |
getSaveToServer()
If saveToServer is set then associated form will perform the normal DynamicForm.submit actions when called (typically from a SubmitItem). |
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. |
java.lang.Boolean |
getWizard()
If wizard is set then associated form will be hidden after user goes to next or prev step of current workflow. |
void |
goToPrevious()
Set previousElement as next element of workflow. |
void |
setCancelElement(java.lang.String cancelElement)
Next element to proceed to if the task is cancelled because the targetForm or targetVM had cancelEditing() called on it. |
void |
setInlineView(Canvas inlineView)
An inline definition of the form. |
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
|
void |
setPreviousElement(java.lang.String previousElement)
Previous workflow sequence or element that is helpful for wizards. |
void |
setSaveToServer(java.lang.Boolean saveToServer)
If saveToServer is set then associated form will perform the normal DynamicForm.submit actions when called (typically from a SubmitItem). |
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(java.lang.String targetView)
Optional widget that should be shown to allow user input. |
void |
setTargetVM(java.lang.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. |
void |
setWizard(java.lang.Boolean wizard)
If wizard is set then associated form will be hidden after user goes to next or prev step of current workflow. |
| 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(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
public static UserTask getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject in class Taskpublic com.google.gwt.core.client.JavaScriptObject create()
create in class Task
public void setCancelElement(java.lang.String cancelElement)
throws java.lang.IllegalStateException
targetForm or targetVM had cancelEditing() called on it.
cancelElement - . See String. Default value is null
java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic java.lang.String getCancelElement()
targetForm or targetVM had cancelEditing() called on it.
Stringpublic void setInlineView(Canvas inlineView)
inlineView - inlineView Default value is nullpublic Canvas getInlineView()
public void setPreviousElement(java.lang.String previousElement)
throws java.lang.IllegalStateException
sequence or element that is helpful for wizards. This element will be
executed if UserTask.goToPrevious method of userTask
will be invoked. You can get userTask for attached form by using +link{DynamicForm userTask, userTask} property.
previousElement - . See String. Default value is null
java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic java.lang.String getPreviousElement()
sequence or element that is helpful for wizards. This element will be
executed if UserTask.goToPrevious method of userTask
will be invoked. You can get userTask for attached form by using +link{DynamicForm userTask, userTask} property.
String
public void setSaveToServer(java.lang.Boolean saveToServer)
throws java.lang.IllegalStateException
DynamicForm.submit actions when called (typically from a SubmitItem). By default the form submit action is bypassed.
saveToServer - saveToServer Default value is false
java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic java.lang.Boolean getSaveToServer()
DynamicForm.submit actions when called (typically from a SubmitItem). By default the form submit action is bypassed.
public void setTargetForm(DynamicForm targetForm)
throws java.lang.IllegalStateException
Use targetVM to use a ValuesManager instead.
targetForm - targetForm Default value is null
java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic DynamicForm getTargetForm()
Use targetVM to use a ValuesManager instead.
public void setWizard(java.lang.Boolean wizard)
throws java.lang.IllegalStateException
wizard - wizard Default value is false
java.lang.IllegalStateException - this property cannot be changed after the underlying component has been createdpublic java.lang.Boolean getWizard()
public void cancelEditing()
cancelElement will be proceed as the next element of
current process.
public void completeEditing()
process state.
public void goToPrevious()
previousElement as next element of workflow.
This method could be used to create wizard-like UI behavior.
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(java.lang.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(java.lang.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 | ||||||||