wt.clients.rn
Class CreateWTRNRequestFrame

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

public class CreateWTRNRequestFrame
extends Frame

See Also:
Serialized Form

Nested Class Summary
(package private)  class CreateWTRNRequestFrame.SymAction
           
(package private)  class CreateWTRNRequestFrame.SymKey
           
(package private)  class CreateWTRNRequestFrame.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)  Checkbox acknowledgementReceivedCheckbox
           
(package private)  Label acknowledgementReceivedLabel
           
(package private)  Button browseButton
           
(package private)  Panel buttonPanel
           
(package private)  Button cancelButton
           
(package private)  Label createdByLabel
           
(package private)  Label createdByValueLabel
           
(package private)  Label createdLabel
           
(package private)  Label createdValueLabel
           
(package private)  TextField createInTextField
           
(package private)  Label descriptionLabel
           
(package private)  WTTextArea descriptionTextArea
           
(package private)  Label displayURLLabel
           
(package private)  TextField displayURLTextField
           
(package private)  Checkbox exceptionReceivedCheckbox
           
(package private)  Label exceptionReceivedLabel
           
(package private)  boolean fComponentsAdjusted
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine2
           
(package private)  Label nameLabel
           
(package private)  TextField nameTextField
           
private  boolean objectSaved
           
(package private)  Button OKButton
           
(package private)  Button openURLButton
           
private  Applet parentApplet
           
private  Folder parentFolder
          The Folder in which to create the new document.
private static String RESOURCE
          Defined constant which specifies a String representation of the fully-qualified class name of the ResourceBundle containing localized text for the fields, labels and error-messages of this frame.
private static ResourceBundle resourceBundle
          Variable which maintains the ResourceBundle used for getting localized text for fields, labels and eror-messages of this frame.
(package private)  Checkbox responseReceivedCheckbox
           
(package private)  Label responseReceivedLabel
           
(package private)  Button saveButton
           
(package private)  Label saveInLabel
           
private  WTRNRequest wtRNRequest
           
 
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
CreateWTRNRequestFrame()
           
CreateWTRNRequestFrame(String title)
           
 
Method Summary
 void addNotify()
           
(package private)  void browseButton_ActionPerformed(ActionEvent event)
           
private  void browseForFolder()
          Invoked as a result of the browse button being pressed or the enter key being pressed when the browse button has focus.
(package private)  void cancelButton_ActionPerformed(ActionEvent event)
           
(package private)  void createInTextField_KeyTyped(KeyEvent event)
           
private  void createObject()
           
(package private)  void CreateWTRNRequestFrame_WindowClosing(WindowEvent event)
           
private  void dispatchRefresh(Object source, int action, Object obj)
           
private  String formatDate(Date time)
           
private  WTContext getContext()
          Returns the WTContext corresponding to this frame.
 Applet getParentApplet()
           
 Folder getParentFolder()
          Returns the Folder in which the WTRNRequest is to be created.
private  void initResource()
          Initialize the ResourceBundles used for localizing the text of this frame.
private  void localize()
          Localizes the field labels and localizable text by getting correct values from a ResourceBundle.
static void main(String[] args)
           
private  boolean objectChanged()
           
(package private)  void OKButton_ActionPerformed(ActionEvent event)
           
(package private)  void openURLButton_ActionPerformed(ActionEvent event)
           
(package private)  void saveButton_ActionPerformed(ActionEvent event)
           
 void setContext(boolean on)
           
 void setParentApplet(Applet applet)
           
 void setParentFolder(Folder parent_folder)
          Initializes the folder in which the new WTRNRequest is to be created.
 void setVisible(boolean b)
          Shows or hides the component depending on the boolean flag b.
 void setWTRNRequest(WTRNRequest wtrnr)
           
private  void updateObject()
           
 
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, dispose, 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, show, 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

wtRNRequest

private WTRNRequest wtRNRequest

parentApplet

private Applet parentApplet

objectSaved

private boolean objectSaved

parentFolder

private Folder parentFolder
The Folder in which to create the new document. This folder can be any folder in the system to which the user has rights to modify.


RESOURCE

private static String RESOURCE
Defined constant which specifies a String representation of the fully-qualified class name of the ResourceBundle containing localized text for the fields, labels and error-messages of this frame.


resourceBundle

private static ResourceBundle resourceBundle
Variable which maintains the ResourceBundle used for getting localized text for fields, labels and eror-messages of this frame.


fComponentsAdjusted

boolean fComponentsAdjusted

nameLabel

Label nameLabel

nameTextField

TextField nameTextField

descriptionLabel

Label descriptionLabel

descriptionTextArea

WTTextArea descriptionTextArea

responseReceivedLabel

Label responseReceivedLabel

responseReceivedCheckbox

Checkbox responseReceivedCheckbox

exceptionReceivedLabel

Label exceptionReceivedLabel

exceptionReceivedCheckbox

Checkbox exceptionReceivedCheckbox

acknowledgementReceivedLabel

Label acknowledgementReceivedLabel

acknowledgementReceivedCheckbox

Checkbox acknowledgementReceivedCheckbox

displayURLLabel

Label displayURLLabel

displayURLTextField

TextField displayURLTextField

openURLButton

Button openURLButton

createdByLabel

Label createdByLabel

createdByValueLabel

Label createdByValueLabel

createdLabel

Label createdLabel

createdValueLabel

Label createdValueLabel

buttonPanel

Panel buttonPanel

OKButton

Button OKButton

saveButton

Button saveButton

cancelButton

Button cancelButton

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

horizontalLine2

symantec.itools.awt.shape.HorizontalLine horizontalLine2

saveInLabel

Label saveInLabel

createInTextField

TextField createInTextField

browseButton

Button browseButton
Constructor Detail

CreateWTRNRequestFrame

public CreateWTRNRequestFrame()

CreateWTRNRequestFrame

public CreateWTRNRequestFrame(String title)
Method Detail

setWTRNRequest

public void setWTRNRequest(WTRNRequest wtrnr)

setParentApplet

public void setParentApplet(Applet applet)

getParentApplet

public Applet getParentApplet()

setContext

public void setContext(boolean on)

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()

main

public static void main(String[] args)

setParentFolder

public void setParentFolder(Folder parent_folder)
Initializes the folder in which the new WTRNRequest is to be created.

Parameters:
parent_folder - the Folder in which to create the new request object
See Also:
Cabinet, Folder

getParentFolder

public Folder getParentFolder()
Returns the Folder in which the WTRNRequest is to be created.

Returns:
the Folder in which the request object was created
See Also:
Folder

addNotify

public void addNotify()

initResource

private void initResource()
                   throws MissingResourceException
Initialize the ResourceBundles used for localizing the text of this frame. Both ResourceBundles for labels and fields and for error messages are initialized.

Throws:
MissingResourceException
See Also:
ResourceBundle

localize

private void localize()
Localizes the field labels and localizable text by getting correct values from a ResourceBundle.

See Also:
initResource, ResourceBundle

browseForFolder

private void browseForFolder()
Invoked as a result of the browse button being pressed or the enter key being pressed when the browse button has focus. This method launches a WTFolderBrowserDialog to allow the user to browse for a folder in which to create the request object. The WTFolderBrowserDialog is restricted to show only those cabinets and folders for which the user has modify rights.


formatDate

private String formatDate(Date time)

getContext

private WTContext getContext()
Returns the WTContext corresponding to this frame. This method attempts to use the parent applet to get a WTContext. If no WTContext is found using the parent applet, this method uses the default method to retrieve a WTContext, which will create a WTContext if no WTContext exists.

Returns:
the WTContext associated with this frame.

createObject

private void createObject()
                   throws WTException,
                          WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

updateObject

private void updateObject()
                   throws WTException,
                          WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

dispatchRefresh

private void dispatchRefresh(Object source,
                             int action,
                             Object obj)

objectChanged

private boolean objectChanged()

CreateWTRNRequestFrame_WindowClosing

void CreateWTRNRequestFrame_WindowClosing(WindowEvent event)

saveButton_ActionPerformed

void saveButton_ActionPerformed(ActionEvent event)

cancelButton_ActionPerformed

void cancelButton_ActionPerformed(ActionEvent event)

openURLButton_ActionPerformed

void openURLButton_ActionPerformed(ActionEvent event)

createInTextField_KeyTyped

void createInTextField_KeyTyped(KeyEvent event)

browseButton_ActionPerformed

void browseButton_ActionPerformed(ActionEvent event)

OKButton_ActionPerformed

void OKButton_ActionPerformed(ActionEvent event)