wt.clients.doc
Class UpdateDocumentFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
wt.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
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 |
|
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 |
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
UpdateDocumentFrame
public UpdateDocumentFrame()
UpdateDocumentFrame
public UpdateDocumentFrame(String title)
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()