|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
wt.clients.workflow.initiate.InitiateWorkflowApplet
Nested Class Summary | |
(package private) class |
InitiateWorkflowApplet.SymAction
|
(package private) class |
InitiateWorkflowApplet.SymItem
|
(package private) class |
InitiateWorkflowApplet.WorkThread
The work thread is used to place long operations in a separate WTThread so the AWT thread isn't tied up. |
Nested classes inherited from class java.applet.Applet |
Applet.AccessibleApplet |
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
(package private) WTContainerRef |
context_ref
|
private static String |
CONTROL
|
(package private) Panel |
delayPanel
|
(package private) Checkbox |
delayStartCheckbox
|
(package private) TextField |
delayStartTextField
|
(package private) Choice |
delayUnitsChoice
|
(package private) Label |
descriptionLabel
|
(package private) WTTextArea |
descriptionTextArea
|
private static String |
DISPLAY_NAME
|
(package private) CheckboxGroup |
dueDateGroup
|
(package private) TextField |
dueDateTextField
|
(package private) Checkbox |
dueInCheckBox
|
(package private) Panel |
dueInPanel
|
(package private) TextField |
dueInTextField
|
(package private) Choice |
dueInUnitsChoice
|
(package private) Checkbox |
dueOnCheckBox
|
(package private) Panel |
dueOnPanel
|
(package private) Button |
helpButton
|
(package private) NFHelpSystem |
helpSystem
|
(package private) symantec.itools.awt.shape.HorizontalLine |
hLine1
|
(package private) symantec.itools.awt.shape.HorizontalLine |
hLine2
|
(package private) symantec.itools.awt.shape.HorizontalLine |
hLine3
|
(package private) static int |
LOCALIZE
|
(package private) WfProcess |
myProcess
|
(package private) WfProcessTemplate |
myTemplate
|
private ThreadGroup |
myThreadGroup
|
(package private) Choice |
priorityChoice
|
(package private) Label |
priorityLabel
|
(package private) Label |
processNameLabel
|
(package private) TextField |
processNameTextField
|
(package private) Label |
processVariablesLabel
|
(package private) static ResourceBundle |
RB
|
private static String |
REQUIRED
|
private static String |
RESOURCE
|
(package private) Button |
startWorkflowButton
|
(package private) RapidFind |
targetObjectFinder
|
(package private) Label |
targetObjectLabel
|
(package private) Label |
teamLabel
|
(package private) JITProjectPanel |
teamTemplatePanel
|
private static String |
TYPE
|
private static String |
VALUE
|
(package private) Panel |
variablesPanel
|
(package private) ScrollPane |
variablesScrollPane
|
(package private) Hashtable[] |
workFlowVariables
|
Fields inherited from class java.applet.Applet |
|
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
InitiateWorkflowApplet()
|
Method Summary | |
private Timestamp |
calculateDate(String offsetStr,
int unitsIndex,
String fieldName)
calculateDate uses the current time and adds to it an offset of
offsetStr. |
private Checkbox |
createCheckbox(String label,
boolean value,
int y)
createCheckBox creates an AWT checkBox in the variablesPpanel
set to value |
private void |
createDynamicVariableFields()
|
private EnumeratedChoice |
createEnumeratedChoice(Object value,
int x,
int y,
Class classType,
boolean required)
createEnumeratedChoice creates an EnumeratedChoiceBox in the variablesPanel
populated with the values from the className |
private void |
createFinishLine()
createFinishLine creates an horizontal line in the variablesPanel. |
private void |
createLabel(String labelText,
boolean required,
int x,
int y)
createLable creates an AWT label in the variablesPpanel
with the supplied labelText. |
private RapidFind |
createObject(String label,
Object value,
int y)
createObject creates an RapidFind object finder in the variablesPanel |
private PrincipalSelectionPanel |
createPrincipalChoice(Object value,
int x,
int y,
int selectionMode)
createPrincipalChoice creates an PrincipalSelectionPanel in the variablesPanel
to select WTUsers, WTGroups, or WTPrincipals. |
private JITProjectPanel |
createTeamTemplate(Object value,
int x,
int y)
createTeamTemplate creates an JITProjectPanel in the variablesPanel
to select Team Templates. |
private WTTextArea |
createTextArea(Object value,
int x,
int y)
createTextArea creates an AWT textArea in the variablesPpanel
with the value as its initial value |
private TextField |
createTextField(Object value,
int x,
int y)
createTextField creates an AWT textField in the variablesPpanel
with the value as its initial value |
(package private) void |
delayStartCheckbox_ItemStateChanged(ItemEvent event)
Enable and disable the delayStart value & units selectors |
void |
destroy()
Override of java.applet.Applet.destroy method to incorporate WTContext usage. |
(package private) void |
dueInCheckBox_ItemStateChanged(ItemEvent event)
Enable the dueOn Textbox and disable the dueIn value & units selectors |
(package private) void |
dueOnCheckBox_ItemStateChanged(ItemEvent event)
Enable the dueIn value & units selectors & disable the dueOn Textbox |
protected Frame |
getParentFrame()
Returns the parent Frame of this applet. |
protected Frame |
getTopLevelParent(Component component)
|
(package private) void |
helpButton_ActionPerformed(ActionEvent event)
Launch the named browser "OnlineHelp" to display html help when the help button is pushed. |
void |
init()
|
(package private) void |
initialize()
|
private void |
localize()
Localize interface |
void |
start()
Override of java.applet.Applet.start method to incorporate WTContext usage. |
private void |
startWorkflow()
Gather up the user's input for this workflow, validate it and initiate the workflow process |
(package private) void |
startWorkflowButton_ActionPerformed(ActionEvent event)
|
void |
stop()
Override of java.applet.Applet.stop method to incorporate WTContext usage. |
private ProcessData |
updateWorkflowVariables(ProcessData context)
updateWorkflowVariables iterates through the defined
workflow process variables updating the context with the user's
supplied values. |
Methods inherited from class java.applet.Applet |
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static ResourceBundle RB
private static final String RESOURCE
private static String DISPLAY_NAME
private static String VALUE
private static String TYPE
private static String CONTROL
private static String REQUIRED
static final int LOCALIZE
WTContainerRef context_ref
private ThreadGroup myThreadGroup
WfProcessTemplate myTemplate
WfProcess myProcess
Hashtable[] workFlowVariables
NFHelpSystem helpSystem
Label processNameLabel
Label processVariablesLabel
Label teamLabel
Label targetObjectLabel
Label priorityLabel
Label descriptionLabel
CheckboxGroup dueDateGroup
Checkbox delayStartCheckbox
Checkbox dueOnCheckBox
Checkbox dueInCheckBox
TextField processNameTextField
TextField dueDateTextField
TextField delayStartTextField
TextField dueInTextField
Choice priorityChoice
Choice delayUnitsChoice
Choice dueInUnitsChoice
Panel delayPanel
Panel dueOnPanel
Panel dueInPanel
Panel variablesPanel
ScrollPane variablesScrollPane
Button startWorkflowButton
Button helpButton
symantec.itools.awt.shape.HorizontalLine hLine1
symantec.itools.awt.shape.HorizontalLine hLine2
symantec.itools.awt.shape.HorizontalLine hLine3
WTTextArea descriptionTextArea
JITProjectPanel teamTemplatePanel
RapidFind targetObjectFinder
Constructor Detail |
public InitiateWorkflowApplet()
Method Detail |
public void start()
public void stop()
public void destroy()
public void init()
void delayStartCheckbox_ItemStateChanged(ItemEvent event)
event
- void dueOnCheckBox_ItemStateChanged(ItemEvent event)
event
- void dueInCheckBox_ItemStateChanged(ItemEvent event)
event
- void initialize() throws Exception
Exception
private void createDynamicVariableFields() throws Exception
Exception
private void createLabel(String labelText, boolean required, int x, int y)
createLable
creates an AWT label in the variablesPpanel
with the supplied labelText.
labelText
- text to be displayed on the labelrequired
- boolean: if true, an "*" is displayed before the label textx
- gridx value of the label in the variablesPanel's gridBagLayouty
- gridy value of the label in the variablesPanel's gridBagLayoutprivate TextField createTextField(Object value, int x, int y)
createTextField
creates an AWT textField in the variablesPpanel
with the value as its initial value
value
- initial value for the text boxx
- gridx value of the label in the variablesPanel's gridBagLayouty
- gridy value of the label in the variablesPanel's gridBagLayoutprivate WTTextArea createTextArea(Object value, int x, int y)
createTextArea
creates an AWT textArea in the variablesPpanel
with the value as its initial value
value
- initial value for the textAreax
- gridx value of the label in the variablesPanel's gridBagLayouty
- gridy value of the label in the variablesPanel's gridBagLayoutprivate Checkbox createCheckbox(String label, boolean value, int y)
createCheckBox
creates an AWT checkBox in the variablesPpanel
set to value
label
- The checkBox's labelvalue
- initial value for the checkBoxy
- gridy value of the label in the variablesPanel's gridBagLayoutprivate RapidFind createObject(String label, Object value, int y)
createObject
creates an RapidFind object finder in the variablesPanel
label
- label for the RapidFindervalue
- object to display (Currently unimplemented)y
- gridy value of the label in the variablesPanel's gridBagLayoutprivate PrincipalSelectionPanel createPrincipalChoice(Object value, int x, int y, int selectionMode) throws Exception
createPrincipalChoice
creates an PrincipalSelectionPanel in the variablesPanel
to select WTUsers, WTGroups, or WTPrincipals.
x
- gridx value of the label in the variablesPanel's gridBagLayouty
- gridy value of the label in the variablesPanel's gridBagLayoutselectionMode
- set the mode of the selector to find Users, Groups or WTPrincipals
Exception
private JITProjectPanel createTeamTemplate(Object value, int x, int y) throws Exception
createTeamTemplate
creates an JITProjectPanel in the variablesPanel
to select Team Templates.
x
- gridx value of the label in the variablesPanel's gridBagLayouty
- gridy value of the label in the variablesPanel's gridBagLayout
Exception
private EnumeratedChoice createEnumeratedChoice(Object value, int x, int y, Class classType, boolean required) throws Exception
createEnumeratedChoice
creates an EnumeratedChoiceBox in the variablesPanel
populated with the values from the className
x
- gridx value of the label in the variablesPanel's gridBagLayouty
- gridy value of the label in the variablesPanel's gridBagLayoutclassType
- the class type of values to displayrequired
- is this a required field
Exception
private void createFinishLine()
createFinishLine
creates an horizontal line in the variablesPanel.
The sole purpose of this method is to create a control that forces the
other controls in the variablesPanel into a better grid bac configuration.
None of the other workflow variables in the panel carray an X or Y weight and
consequently they all float in the center of the panel instead of the top left.
protected Frame getParentFrame()
protected Frame getTopLevelParent(Component component)
private ProcessData updateWorkflowVariables(ProcessData context) throws WTException
updateWorkflowVariables
iterates through the defined
workflow process variables updating the context with the user's
supplied values. It also sets the primaryBusinessObject.
context
- label for the RapidFinder
WTException
void startWorkflowButton_ActionPerformed(ActionEvent event)
private void startWorkflow() throws Exception
Exception
private Timestamp calculateDate(String offsetStr, int unitsIndex, String fieldName) throws WTException
calculateDate
uses the current time and adds to it an offset of
offsetStr.
- Parameters:
unitsIndex
- integer index from a choice box indicating what
units selection has been made. The index maps as follows:
0 - No selection
1 - minutes
2 - hours
3 - days
4 - weeks
5 - monthsfieldName
- The localized name of the field requesting the date calculation--used for error messages
- Returns:
- Timestamp Timestamp caluculated by taking the current time and adding
to it the specifed number of offset units.
- Throws:
WTException
private void localize()
void helpButton_ActionPerformed(ActionEvent event)
event
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |