wt.clients.doc
Class UpdateDocumentFrame

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended bywt.clients.doc.UpdateDocumentFrame
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class UpdateDocumentFrame
extends Frame

Frame which supports updating the properties and content of a WTDocument object.

Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
private  class UpdateDocumentFrame.ActionThread
           
(package private)  class UpdateDocumentFrame.DocumentHandle
           
(package private)  class UpdateDocumentFrame.HelpPropertyChangeListener
           
(package private)  class UpdateDocumentFrame.SymAction
           
(package private)  class UpdateDocumentFrame.SymJCAction
           
(package private)  class UpdateDocumentFrame.SymKey
           
(package private)  class UpdateDocumentFrame.SymMouse
           
(package private)  class UpdateDocumentFrame.SymWindow
           
 
Nested classes inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
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 buttonPanel
           
static int CANCEL
           
(package private)  Button cancelButton
           
(package private)  symantec.itools.awt.BorderPanel cardPanel
           
private static String CONTENT_RESOURCES
           
private static ResourceBundle contentResources
           
(package private)  jclass.bwt.JCButton contentsButton
           
private  ContentsPanel contentsPanel
           
private  ThreadGroup contextGroup
           
private  boolean continueIfFileNotFound
           
private  boolean continueIfFileUnchanged
           
private  DepartmentList[] departmentList
           
(package private)  WTTextArea descriptTextArea
           
static int DO_UPLOAD
           
(package private)  EnumeratedChoice docDeptChoice
           
(package private)  Label docDeptLabel
           
(package private)  Label docDescLabel
           
(package private)  Label docLocationLabel
           
(package private)  Label docNameLabel
           
(package private)  Label docNameValueLabel
           
(package private)  Label docNumberLabel
           
(package private)  Label docNumberValueLabel
           
(package private)  Label docOrgIdLabel
           
(package private)  Label docOrgIdValueLabel
           
(package private)  Label docTitleLabel
           
(package private)  TextField docTitleTextField
           
(package private)  Label docTypeLabel
           
private  UpdateDocumentFrame.DocumentHandle documentHandle
           
(package private)  Label documentTypeLabel
           
private  WTPreferences downloadPreferences
           
(package private)  boolean fComponentsAdjusted
           
private static String HELP_TARGET
           
(package private)  Button helpButton
           
private  HelpContext helpContext
           
private  UpdateDocumentFrame.HelpPropertyChangeListener helpListener
           
private  HelpSystem helpSystem
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine2
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine3
           
(package private)  HTTPUploadDownloadPanel hTTPUploadDownloadPanel1
           
private  boolean inDescendent
           
protected static int INIT_CONTENTS
           
protected static int INIT_PROPERTIES
           
protected static int INIT_REFERENCE
           
protected static int INIT_STRUCTURE
           
(package private)  LifeCycleInfo lifeCycleInfo1
           
(package private)  Label locationValueLabel
           
private  Object lockStr
           
static int NO_UPLOAD
           
(package private)  Button okButton
           
private  Applet parentApplet
           
private static String PREF_KEY_FILECHANGED
           
private static String PREF_KEY_FILENOTFOUND
           
private static String PREF_KEY_FILEUNCHANGED
           
private static String PREF_KEY_WORKSPACEPATH
           
private static String PREF_NODE
           
(package private)  jclass.bwt.JCButton referenceButton
           
private  ReferencePanel referencePanel
           
(package private)  Panel relationsPanel
           
private static ResourceBundle resources
           
private static String RESOURCES
           
protected static int SAVE_AND_CLOSE
           
protected static int SAVE_DOCUMENT
           
(package private)  Button saveButton
           
private static boolean SHOW_ORG_ID
           
(package private)  TextField statusTextField
           
(package private)  jclass.bwt.JCButton structureButton
           
private  StructurePanel structurePanel
           
(package private)  Panel tabsPanel
           
static int UNKNOWN
           
private  boolean uploadIfFileChanged
           
private  String workspacePath
           
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
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
UpdateDocumentFrame()
           
UpdateDocumentFrame(String title)
           
 
Method Summary
 void addNotify()
           
(package private)  void cancelButton_Action(ActionEvent event)
           
(package private)  void cancelButton_KeyPressed(KeyEvent event)
           
 boolean checksumsMatch()
           
(package private)  void contentsButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
(package private)  void contentsButton_keyPressed(KeyEvent event)
           
(package private)  void contentsButton_mousePressed(MouseEvent event)
           
(package private)  void descriptTextArea_keyPressed(KeyEvent event)
           
private  void dispatchRefresh(Object obj, int action)
           
 void dispose()
           
(package private)  void docDeptChoice_keyPressed(KeyEvent event)
           
(package private)  void docTitleTextField_KeyPressed(KeyEvent event)
           
private  void enableActions(boolean enable)
           
private  String formatDate(Timestamp time)
           
(package private)  void Frame1_WindowClosing(WindowEvent event)
           
private  WTContext getContext()
           
 WTDocument getDocument()
           
private  String getDocumentIdentity(WTDocument document)
           
private  String getLocalizedLabel(String key, Object[] params)
          Deprecated.  
private  String getLocalizedMessage(String key, Object[] params)
          Deprecated.  
 Applet getParentApplet()
           
private  String getPreferenceValue(String key, String defaultValue)
           
 String getTarget()
           
(package private)  void helpButton_Action(ActionEvent event)
           
(package private)  void helpButton_KeyPressed(KeyEvent event)
           
private  void initContents()
           
private  void initContentsPanel()
           
private  void initializeHelp()
           
private  void initPrimaryContentsPanel()
           
private  void initProperties()
           
private  void initReferencePanel()
           
private  void initResources()
           
private  void initStructurePanel()
           
 boolean isValidTarget()
           
 boolean isValidTarget(String target)
           
(package private)  void lifeCycleInfo1_keyPressed(KeyEvent event)
           
private  void localize()
           
(package private)  void okButton_Action(ActionEvent event)
           
(package private)  void okButton_KeyPressed(KeyEvent event)
           
private  void processHelpCommand()
           
private  void processOkCommand()
           
private  void processSaveCommand()
           
(package private)  void referenceButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
(package private)  void referenceButton_keyPressed(KeyEvent event)
           
(package private)  void referenceButton_mousePressed(MouseEvent event)
           
(package private)  void relationsPanel_KeyPressed(KeyEvent event)
           
private  WTPreferences retrievePreferences(String node)
           
(package private)  void saveButton_Action(ActionEvent event)
           
(package private)  void saveButton_KeyPressed(KeyEvent event)
           
private  boolean saveContents()
           
private  boolean saveReference()
           
private  boolean saveStructure()
           
private  void setContentsPanel()
           
private  void setContext(boolean set_context_on)
           
 void setDocument(WTDocument doc)
           
 void setParentApplet(Applet parent_applet)
           
 void setTarget(String target)
           
 void setVisible(boolean isVisible)
           
 void show()
          Deprecated. The user should call the setVisible(boolean isVisible)
(package private)  void structureButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
(package private)  void structureButton_keyPressed(KeyEvent event)
           
(package private)  void structureButton_mousePressed(MouseEvent event)
           
private  void updateColors(Color color)
           
private  boolean updateDocument()
           
private  int validateTarget()
          If target is not valid, attempts to identify valid target by looking in workspace.
 
Methods inherited from class java.awt.Frame
finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, 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, 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, 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
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

SHOW_ORG_ID

private static boolean SHOW_ORG_ID

fComponentsAdjusted

boolean fComponentsAdjusted

hTTPUploadDownloadPanel1

HTTPUploadDownloadPanel hTTPUploadDownloadPanel1

docOrgIdLabel

Label docOrgIdLabel

docOrgIdValueLabel

Label docOrgIdValueLabel

docNameLabel

Label docNameLabel

docNameValueLabel

Label docNameValueLabel

docTypeLabel

Label docTypeLabel

documentTypeLabel

Label documentTypeLabel

docTitleLabel

Label docTitleLabel

docDescLabel

Label docDescLabel

docTitleTextField

TextField docTitleTextField

docDeptLabel

Label docDeptLabel

docDeptChoice

EnumeratedChoice docDeptChoice

docNumberLabel

Label docNumberLabel

docNumberValueLabel

Label docNumberValueLabel

descriptTextArea

WTTextArea descriptTextArea

docLocationLabel

Label docLocationLabel

locationValueLabel

Label locationValueLabel

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

lifeCycleInfo1

LifeCycleInfo lifeCycleInfo1

horizontalLine3

symantec.itools.awt.shape.HorizontalLine horizontalLine3

relationsPanel

Panel relationsPanel

tabsPanel

Panel tabsPanel

contentsButton

jclass.bwt.JCButton contentsButton

referenceButton

jclass.bwt.JCButton referenceButton

structureButton

jclass.bwt.JCButton structureButton

cardPanel

symantec.itools.awt.BorderPanel cardPanel

horizontalLine2

symantec.itools.awt.shape.HorizontalLine horizontalLine2

buttonPanel

Panel buttonPanel

okButton

Button okButton

saveButton

Button saveButton

cancelButton

Button cancelButton

helpButton

Button helpButton

statusTextField

TextField statusTextField

parentApplet

private Applet parentApplet

documentHandle

private UpdateDocumentFrame.DocumentHandle documentHandle

departmentList

private DepartmentList[] departmentList

contentsPanel

private ContentsPanel contentsPanel

structurePanel

private StructurePanel structurePanel

referencePanel

private ReferencePanel referencePanel

helpSystem

private HelpSystem helpSystem

helpContext

private HelpContext helpContext

helpListener

private UpdateDocumentFrame.HelpPropertyChangeListener helpListener

contextGroup

private ThreadGroup contextGroup

HELP_TARGET

private static final String HELP_TARGET
See Also:
Constant Field Values

RESOURCES

private static String RESOURCES

resources

private static ResourceBundle resources

CONTENT_RESOURCES

private static String CONTENT_RESOURCES

contentResources

private static ResourceBundle contentResources

INIT_PROPERTIES

protected static final int INIT_PROPERTIES
See Also:
Constant Field Values

INIT_CONTENTS

protected static final int INIT_CONTENTS
See Also:
Constant Field Values

SAVE_DOCUMENT

protected static final int SAVE_DOCUMENT
See Also:
Constant Field Values

SAVE_AND_CLOSE

protected static final int SAVE_AND_CLOSE
See Also:
Constant Field Values

INIT_STRUCTURE

protected static final int INIT_STRUCTURE
See Also:
Constant Field Values

INIT_REFERENCE

protected static final int INIT_REFERENCE
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

CANCEL

public static final int CANCEL
See Also:
Constant Field Values

NO_UPLOAD

public static final int NO_UPLOAD
See Also:
Constant Field Values

DO_UPLOAD

public static final int DO_UPLOAD
See Also:
Constant Field Values

PREF_NODE

private static String PREF_NODE

PREF_KEY_FILENOTFOUND

private static String PREF_KEY_FILENOTFOUND

PREF_KEY_FILEUNCHANGED

private static String PREF_KEY_FILEUNCHANGED

PREF_KEY_FILECHANGED

private static String PREF_KEY_FILECHANGED

PREF_KEY_WORKSPACEPATH

private static String PREF_KEY_WORKSPACEPATH

downloadPreferences

private WTPreferences downloadPreferences

continueIfFileNotFound

private boolean continueIfFileNotFound

continueIfFileUnchanged

private boolean continueIfFileUnchanged

uploadIfFileChanged

private boolean uploadIfFileChanged

workspacePath

private String workspacePath

lockStr

private Object lockStr

inDescendent

private boolean inDescendent
Constructor Detail

UpdateDocumentFrame

public UpdateDocumentFrame()

UpdateDocumentFrame

public UpdateDocumentFrame(String title)
Method Detail

initResources

private void initResources()

localize

private void localize()

setVisible

public void setVisible(boolean isVisible)

show

public void show()
Deprecated. The user should call the setVisible(boolean isVisible)


addNotify

public void addNotify()

Frame1_WindowClosing

void Frame1_WindowClosing(WindowEvent event)

initProperties

private void initProperties()

formatDate

private String formatDate(Timestamp time)

getContext

private WTContext getContext()

setContext

private void setContext(boolean set_context_on)

setDocument

public void setDocument(WTDocument doc)

getDocument

public WTDocument getDocument()

setParentApplet

public void setParentApplet(Applet parent_applet)

getParentApplet

public Applet getParentApplet()

saveButton_Action

void saveButton_Action(ActionEvent event)

processSaveCommand

private void processSaveCommand()

updateDocument

private boolean updateDocument()
                        throws PropertyVetoException,
                               WTPropertyVetoException,
                               WTException
Throws:
PropertyVetoException
WTPropertyVetoException
WTException

dispatchRefresh

private void dispatchRefresh(Object obj,
                             int action)

okButton_Action

void okButton_Action(ActionEvent event)

processOkCommand

private void processOkCommand()

enableActions

private void enableActions(boolean enable)

cancelButton_Action

void cancelButton_Action(ActionEvent event)

helpButton_Action

void helpButton_Action(ActionEvent event)

processHelpCommand

private void processHelpCommand()

contentsButton_actionPerformed

void contentsButton_actionPerformed(jclass.bwt.JCActionEvent event)

structureButton_actionPerformed

void structureButton_actionPerformed(jclass.bwt.JCActionEvent event)

referenceButton_actionPerformed

void referenceButton_actionPerformed(jclass.bwt.JCActionEvent event)

initContents

private void initContents()

initPrimaryContentsPanel

private void initPrimaryContentsPanel()

initContentsPanel

private void initContentsPanel()

initStructurePanel

private void initStructurePanel()

initReferencePanel

private void initReferencePanel()

setContentsPanel

private void setContentsPanel()

saveContents

private boolean saveContents()

saveStructure

private boolean saveStructure()

saveReference

private boolean saveReference()

getPreferenceValue

private String getPreferenceValue(String key,
                                  String defaultValue)

retrievePreferences

private WTPreferences retrievePreferences(String node)

checksumsMatch

public boolean checksumsMatch()

isValidTarget

public boolean isValidTarget()

isValidTarget

public boolean isValidTarget(String target)

getTarget

public String getTarget()

setTarget

public void setTarget(String target)

validateTarget

private int validateTarget()
If target is not valid, attempts to identify valid target by looking in workspace. Depending on continueIfFileNotFound preference value, may prompt user for what to do if file not found. Returns UNKNOWN if upload intentions unknown NO_UPLOAD if user wants to skip upload CANCEL if user wants to cancel entire operation


initializeHelp

private void initializeHelp()

updateColors

private void updateColors(Color color)

contentsButton_keyPressed

void contentsButton_keyPressed(KeyEvent event)

structureButton_keyPressed

void structureButton_keyPressed(KeyEvent event)

referenceButton_keyPressed

void referenceButton_keyPressed(KeyEvent event)

okButton_KeyPressed

void okButton_KeyPressed(KeyEvent event)

saveButton_KeyPressed

void saveButton_KeyPressed(KeyEvent event)

cancelButton_KeyPressed

void cancelButton_KeyPressed(KeyEvent event)

helpButton_KeyPressed

void helpButton_KeyPressed(KeyEvent event)

getLocalizedMessage

private String getLocalizedMessage(String key,
                                   Object[] params)
Deprecated.  

Helper method to return a localized String message. Replaced by: WTMessage.getLocalizedMessage( )

Parameters:
key - the String key into the messages ResourceBundle
params - an array of Objects to be used to format the message to be returned
Returns:
the String message specified by the given key

getLocalizedLabel

private String getLocalizedLabel(String key,
                                 Object[] params)
Deprecated.  

Helper method to return a localized String label. Replaced by: WTMessage.getLocalizedMessage()

Parameters:
key - the String key into the labels ResourceBundle
params - an array of Objects to be used to format the label to be returned
Returns:
the String label specified by the given key

contentsButton_mousePressed

void contentsButton_mousePressed(MouseEvent event)

structureButton_mousePressed

void structureButton_mousePressed(MouseEvent event)

referenceButton_mousePressed

void referenceButton_mousePressed(MouseEvent event)

getDocumentIdentity

private String getDocumentIdentity(WTDocument document)

docTitleTextField_KeyPressed

void docTitleTextField_KeyPressed(KeyEvent event)

docDeptChoice_keyPressed

void docDeptChoice_keyPressed(KeyEvent event)

descriptTextArea_keyPressed

void descriptTextArea_keyPressed(KeyEvent event)

lifeCycleInfo1_keyPressed

void lifeCycleInfo1_keyPressed(KeyEvent event)

relationsPanel_KeyPressed

void relationsPanel_KeyPressed(KeyEvent event)

dispose

public void dispose()