wt.clients.workflow.definer
Class VariableDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended bywt.clients.workflow.definer.VariableDialog
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

class VariableDialog
extends Dialog


Nested Class Summary
(package private)  class VariableDialog.SymAction
           
(package private)  class VariableDialog.SymItem
           
(package private)  class VariableDialog.SymText
           
(package private)  class VariableDialog.SymWindow
           
 
Nested classes inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
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)  Panel actionPanel
           
private static String BLANK
           
(package private) static String[] booleanEditable
           
(package private)  Panel borderPanel
           
(package private)  Button cancelButton
           
(package private)  Panel checkboxPane
           
(package private) static StringVector classes
           
(package private)  Choice classNameChoice
           
(package private)  Label classNameLabel
           
(package private)  TextField classNameTextField
           
(package private)  WfContainerTemplateEditor container
           
(package private)  Choice copiedChoice
           
(package private)  Label copiedLabel
           
(package private)  ProcessDataInfo dataInfo
           
private  String[] date_formats
           
(package private)  Button displayNameButton
           
(package private)  HashMap displayNameMap
           
(package private)  boolean fComponentsAdjusted
           
(package private)  Button helpButton
           
(package private)  Choice initializedChoice
           
(package private)  Label initializedLabel
           
(package private)  boolean initializedOrCopiedSelected
           
(package private)  WfVariableMap inputMap
           
private  boolean mappingMode
           
(package private)  Label nameLabel
           
(package private)  TextField nameTextField
           
(package private)  Button okButton
           
(package private)  String originalInput
           
(package private)  String originalOutput
           
(package private)  Label otherClassnameLabel
           
(package private)  Panel otherClassnamePanel
           
(package private)  TextField otherClassnameTextField
           
(package private)  WfVariableMap outputMap
           
(package private)  PermissionPanel permissionPanel
           
(package private)  Label permissionsLabel
           
(package private)  ProcessDataInfo processDataInfo
           
(package private)  ProcessStepTemplateLink processLink
           
(package private)  Checkbox readonlyCheckbox
           
(package private)  Checkbox requiredCheckbox
           
(package private)  Checkbox resetCheckbox
           
(package private)  Panel spacerPanel
           
(package private) static String[] textAreaEditable
           
(package private) static String[] textFieldEditable
           
private  ThreadGroup threadGroup
           
(package private)  Choice valueBooleanChoice
           
(package private)  Panel valueBooleanPanel
           
(package private)  EnumeratedChoice valueEnumerated
           
(package private)  Panel valueEnumerationPanel
           
(package private)  Label valueLabel
           
(package private)  Panel valueLabelPanel
           
(package private)  Panel valueSpacerPanel
           
(package private)  TextArea valueTextArea
           
(package private)  Panel valueTextAreaPanel
           
(package private)  TextField valueTextField
           
(package private)  Panel valueTextFieldPanel
           
(package private)  WfVariableInfo variableInfo
           
private static String versionID
           
(package private)  Checkbox visibleCheckbox
           
(package private)  WfTemplateObjectEditor wfTemplateObjectEditor
           
(package private)  Choice windchillClassnameChoice
           
(package private)  Label windchillClassnameLabel
           
(package private)  Panel windchillClassnamePanel
           
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.Window
 
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
(package private) VariableDialog(Frame parent, boolean modal)
           
  VariableDialog(Frame parent, String title, boolean modal)
           
 
Method Summary
 void addNotify()
           
(package private)  void cancelButton_ActionPerformed(ActionEvent event)
           
(package private)  void classNameChoice_ItemStateChanged(ItemEvent event)
           
private  boolean containsString(String[] strings, String string)
           
(package private)  void copiedChoice_ItemStateChanged(ItemEvent event)
           
(package private)  void Dialog1_WindowClosing(WindowEvent event)
           
(package private)  void displayNameButton_ActionPerformed(ActionEvent event)
           
 void dispose()
           
(package private)  boolean getMappingMode()
           
(package private)  void getVariableInfo()
           
protected static StringVector getWindchillClasses()
          Returns a Vector of Windchill classes.
(package private)  void helpButton_ActionPerformed(ActionEvent event)
           
(package private)  void initialize(WfTemplateObjectEditor wf_template_object_editor, WfVariableInfo variable_info)
           
private  void initializeClassChoice(String type_name)
           
(package private)  void initializedChoice_ItemStateChanged(ItemEvent event)
           
private  void initializeImmutableMappingChoices()
           
private  void initializeMappingChoices()
           
private  void initializeMutableMappingChoices()
           
(package private)  void okButton_ActionPerformed(ActionEvent event)
           
(package private)  void otherClassnameTextField_TextValueChanged(TextEvent event)
           
private static void populateClasses(String class_name, Hashtable class_table)
           
(package private)  void readonlyCheckbox_ItemStateChanged(ItemEvent event)
           
(package private)  void requiredCheckbox_ItemStateChanged(ItemEvent event)
           
private  void save()
           
(package private)  void setMappingMode(boolean mapping_mode)
           
private  void setVariableInfo()
           
 void setVisible(boolean b)
          Shows or hides the component depending on the boolean flag b.
private  void showEditor()
           
(package private)  void updateCheckboxes()
           
(package private)  void windchillClassnameChoice_ItemStateChanged(ItemEvent event)
           
 
Methods inherited from class java.awt.Dialog
getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

wfTemplateObjectEditor

WfTemplateObjectEditor wfTemplateObjectEditor

variableInfo

WfVariableInfo variableInfo

processLink

ProcessStepTemplateLink processLink

dataInfo

ProcessDataInfo dataInfo

processDataInfo

ProcessDataInfo processDataInfo

container

WfContainerTemplateEditor container

inputMap

WfVariableMap inputMap

outputMap

WfVariableMap outputMap

originalInput

String originalInput

originalOutput

String originalOutput

BLANK

private static final String BLANK
See Also:
Constant Field Values

threadGroup

private ThreadGroup threadGroup

mappingMode

private boolean mappingMode

date_formats

private String[] date_formats

permissionPanel

PermissionPanel permissionPanel

initializedOrCopiedSelected

boolean initializedOrCopiedSelected

displayNameMap

HashMap displayNameMap

textFieldEditable

static final String[] textFieldEditable

textAreaEditable

static final String[] textAreaEditable

booleanEditable

static final String[] booleanEditable

classes

static StringVector classes

fComponentsAdjusted

boolean fComponentsAdjusted

nameLabel

Label nameLabel

nameTextField

TextField nameTextField

displayNameButton

Button displayNameButton

classNameLabel

Label classNameLabel

classNameChoice

Choice classNameChoice

classNameTextField

TextField classNameTextField

otherClassnamePanel

Panel otherClassnamePanel

otherClassnameLabel

Label otherClassnameLabel

otherClassnameTextField

TextField otherClassnameTextField

windchillClassnamePanel

Panel windchillClassnamePanel

windchillClassnameLabel

Label windchillClassnameLabel

windchillClassnameChoice

Choice windchillClassnameChoice

spacerPanel

Panel spacerPanel

borderPanel

Panel borderPanel

checkboxPane

Panel checkboxPane

visibleCheckbox

Checkbox visibleCheckbox

requiredCheckbox

Checkbox requiredCheckbox

readonlyCheckbox

Checkbox readonlyCheckbox

resetCheckbox

Checkbox resetCheckbox

initializedLabel

Label initializedLabel

initializedChoice

Choice initializedChoice

copiedLabel

Label copiedLabel

copiedChoice

Choice copiedChoice

valueLabelPanel

Panel valueLabelPanel

valueLabel

Label valueLabel

valueTextFieldPanel

Panel valueTextFieldPanel

valueTextField

TextField valueTextField

valueBooleanPanel

Panel valueBooleanPanel

valueBooleanChoice

Choice valueBooleanChoice

valueTextAreaPanel

Panel valueTextAreaPanel

valueTextArea

TextArea valueTextArea

valueEnumerationPanel

Panel valueEnumerationPanel

valueEnumerated

EnumeratedChoice valueEnumerated

permissionsLabel

Label permissionsLabel

valueSpacerPanel

Panel valueSpacerPanel

actionPanel

Panel actionPanel

okButton

Button okButton

cancelButton

Button cancelButton

helpButton

Button helpButton
Constructor Detail

VariableDialog

VariableDialog(Frame parent,
               boolean modal)

VariableDialog

public VariableDialog(Frame parent,
                      String title,
                      boolean modal)
Method Detail

setMappingMode

void setMappingMode(boolean mapping_mode)

getMappingMode

boolean getMappingMode()

initialize

void initialize(WfTemplateObjectEditor wf_template_object_editor,
                WfVariableInfo variable_info)

save

private void save()
           throws WTException
Throws:
WTException

initializeMappingChoices

private void initializeMappingChoices()

initializeMutableMappingChoices

private void initializeMutableMappingChoices()

initializeImmutableMappingChoices

private void initializeImmutableMappingChoices()

initializeClassChoice

private void initializeClassChoice(String type_name)

getVariableInfo

void getVariableInfo()

setVariableInfo

private void setVariableInfo()
                      throws WTException
Throws:
WTException

getWindchillClasses

protected static StringVector getWindchillClasses()
                                           throws WTException
Returns a Vector of Windchill classes.

Throws:
WTException - if the classes are not found

populateClasses

private static void populateClasses(String class_name,
                                    Hashtable class_table)

updateCheckboxes

void updateCheckboxes()

addNotify

public void addNotify()

setVisible

public void setVisible(boolean b)
Shows or hides the component depending on the boolean flag b.

Parameters:
b - if true, show the component; otherwise, hide the component.
See Also:
Component.isVisible()

Dialog1_WindowClosing

void Dialog1_WindowClosing(WindowEvent event)

displayNameButton_ActionPerformed

void displayNameButton_ActionPerformed(ActionEvent event)

okButton_ActionPerformed

void okButton_ActionPerformed(ActionEvent event)

cancelButton_ActionPerformed

void cancelButton_ActionPerformed(ActionEvent event)

classNameChoice_ItemStateChanged

void classNameChoice_ItemStateChanged(ItemEvent event)

showEditor

private void showEditor()

containsString

private boolean containsString(String[] strings,
                               String string)

windchillClassnameChoice_ItemStateChanged

void windchillClassnameChoice_ItemStateChanged(ItemEvent event)

initializedChoice_ItemStateChanged

void initializedChoice_ItemStateChanged(ItemEvent event)

copiedChoice_ItemStateChanged

void copiedChoice_ItemStateChanged(ItemEvent event)

helpButton_ActionPerformed

void helpButton_ActionPerformed(ActionEvent event)

otherClassnameTextField_TextValueChanged

void otherClassnameTextField_TextValueChanged(TextEvent event)

readonlyCheckbox_ItemStateChanged

void readonlyCheckbox_ItemStateChanged(ItemEvent event)

requiredCheckbox_ItemStateChanged

void requiredCheckbox_ItemStateChanged(ItemEvent event)

dispose

public void dispose()