wt.clients.administrator
Class ElectronicSignatureApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended bywt.clients.administrator.ElectronicSignatureApplet
All Implemented Interfaces:
Accessible, AppletListener, ImageObserver, MenuContainer, Serializable

public class ElectronicSignatureApplet
extends Applet
implements AppletListener

See Also:
Serialized Form

Nested Class Summary
(package private)  class ElectronicSignatureApplet.Action
           
(package private)  class ElectronicSignatureApplet.FileHandle
          Used to contain a reference to the File used for electronic identity
(package private)  class ElectronicSignatureApplet.SymWindow
           
(package private)  class ElectronicSignatureApplet.TableItemListener
           
(package private)  class ElectronicSignatureApplet.TableMouseListener
           
(package private)  class ElectronicSignatureApplet.TemplateTable
           
 
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)  symantec.itools.awt.LabelButton ApplyBtn
           
(package private)  symantec.itools.awt.LabelButton CancelBtn
           
private  ThreadGroup contextGroup
           
private  Font crossLocaleFont
           
private static int DATE
           
private static int ENABLED
           
private  ElectronicSignatureApplet.FileHandle fileHandle
           
static String HELP_LIFECYCLE
           
static String HELP_RESOURCE
           
(package private)  symantec.itools.awt.LabelButton HelpBtn
           
private  HelpContext helpContext
           
private  HelpSystem helpSystem
           
(package private)  HTTPUploadDownloadPanel hTTPUploadDownloadPanel1
           
private static Object initSync
           
private  netscape.javascript.JSObject jsWin
           
private  Locale loc
           
private static int NAME
           
(package private)  symantec.itools.awt.LabelButton OKBtn
           
private static ResourceBundle RB
           
private static ResourceBundle RBLC
           
private static String RESOURCE
           
private  ElectronicSignatureApplet.TemplateTable table
           
private  WTUser user
           
private  String userDN
           
(package private)  symantec.itools.awt.LabelButton ViewFileBtn
           
 
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 wt.util.AppletListener
versionID
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ElectronicSignatureApplet()
           
 
Method Summary
 void btnApply_Clicked(ActionEvent event)
           
 void btnCancel_Clicked(ActionEvent event)
           
 void btnOK_Clicked(ActionEvent event)
           
private  void btnView_Clicked()
           
private  ElectronicSignature createSignature(ElectronicSignature new_sig, String file_name)
          Method CreateSignature contains the logic to create a new ElectronicSignature instance.
 void destroy()
           
 void dispose()
          call enableInputMethods to get around java bug (4289940) that results in "IllegalstateException".
private  ElectronicSignature getFile()
          Returns the ElectronicSignature created by this frame.
 HelpSystem getHelpSystem()
           
 void init()
           
private  void initHelpSystem()
           
private  void initHTTP_Panel()
          Initialiazes the HTTP panel for uploading files.
private  void initializeHelp()
           
private  void launchViewSelectedTemplates()
          View a electronic identity of a user.
private  void localize()
           
private  String parseFilename(String fullPath)
           
private  void saveUserElectronicIdentification()
          Saves the users Electronic Identification.
private  void setBusy(boolean busy)
          Set the applet as busy.
 void showHelp()
           
 void start()
           
 void stop()
           
 
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.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, 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, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, 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, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jsWin

private netscape.javascript.JSObject jsWin

userDN

private String userDN

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

HELP_RESOURCE

public static final String HELP_RESOURCE
See Also:
Constant Field Values

HELP_LIFECYCLE

public static final String HELP_LIFECYCLE
See Also:
Constant Field Values

RB

private static ResourceBundle RB

RBLC

private static ResourceBundle RBLC

fileHandle

private ElectronicSignatureApplet.FileHandle fileHandle

helpSystem

private HelpSystem helpSystem

helpContext

private HelpContext helpContext

contextGroup

private ThreadGroup contextGroup

user

private WTUser user

table

private ElectronicSignatureApplet.TemplateTable table

crossLocaleFont

private Font crossLocaleFont

loc

private Locale loc

NAME

private static final int NAME
See Also:
Constant Field Values

DATE

private static final int DATE
See Also:
Constant Field Values

ENABLED

private static final int ENABLED
See Also:
Constant Field Values

initSync

private static Object initSync

hTTPUploadDownloadPanel1

HTTPUploadDownloadPanel hTTPUploadDownloadPanel1

OKBtn

symantec.itools.awt.LabelButton OKBtn

ApplyBtn

symantec.itools.awt.LabelButton ApplyBtn

HelpBtn

symantec.itools.awt.LabelButton HelpBtn

ViewFileBtn

symantec.itools.awt.LabelButton ViewFileBtn

CancelBtn

symantec.itools.awt.LabelButton CancelBtn
Constructor Detail

ElectronicSignatureApplet

public ElectronicSignatureApplet()
Method Detail

start

public void start()
Specified by:
start in interface AppletListener

stop

public void stop()
Specified by:
stop in interface AppletListener

destroy

public void destroy()
Specified by:
destroy in interface AppletListener

showHelp

public void showHelp()

getHelpSystem

public HelpSystem getHelpSystem()

initializeHelp

private void initializeHelp()

initHelpSystem

private void initHelpSystem()

getFile

private ElectronicSignature getFile()
Returns the ElectronicSignature created by this frame.

See Also:
ElectronicSignature

btnView_Clicked

private void btnView_Clicked()

launchViewSelectedTemplates

private void launchViewSelectedTemplates()
View a electronic identity of a user.


setBusy

private void setBusy(boolean busy)
Set the applet as busy.


saveUserElectronicIdentification

private void saveUserElectronicIdentification()
                                       throws PropertyVetoException,
                                              WTException
Saves the users Electronic Identification. Seperated from saveUser so users can override

Throws:
PropertyVetoException
WTException

createSignature

private ElectronicSignature createSignature(ElectronicSignature new_sig,
                                            String file_name)
                                     throws PropertyVetoException,
                                            WTException
Method CreateSignature contains the logic to create a new ElectronicSignature instance. his method only creates an instance of a ElectronicSignature and sets the corresponding attribute values on the signature; it does not make the signature persistent.

Returns:
the created ElectronicSignature
Throws:
PropertyVetoException - a given value for an attribute of the document is not valid
WTException
See Also:
ElectronicSignature

parseFilename

private String parseFilename(String fullPath)

initHTTP_Panel

private void initHTTP_Panel()
Initialiazes the HTTP panel for uploading files. FileHandle contains the class type of the uploaded object.


localize

private void localize()

init

public void init()

btnApply_Clicked

public void btnApply_Clicked(ActionEvent event)

btnOK_Clicked

public void btnOK_Clicked(ActionEvent event)

btnCancel_Clicked

public void btnCancel_Clicked(ActionEvent event)

dispose

public void dispose()
call enableInputMethods to get around java bug (4289940) that results in "IllegalstateException".