com.ptc.windchill.cadx.common.preference
Class URLAuthenticate

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.ptc.windchill.cadx.common.preference.URLAuthenticate
All Implemented Interfaces:
Accessible, EventListener, FocusListener, ImageObserver, MenuContainer, Serializable

class URLAuthenticate
extends JPanel
implements FocusListener


Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
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
protected  Vector authenticationListeners
           
private  JLabel ivjJLabel1
           
private  JLabel ivjJLabel2
           
private  JLabel ivjJLabel3
           
private  JLabel ivjServerName
           
private  JPasswordField ivjtxtPassword
           
private  JTextField ivjtxtUserID
           
private static String RESOURCE
           
 
Fields inherited from class javax.swing.JPanel
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_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
URLAuthenticate()
          Constructor
URLAuthenticate(boolean isDoubleBuffered)
          URLAuthenticate constructor comment.
URLAuthenticate(LayoutManager layout)
          URLAuthenticate constructor comment.
URLAuthenticate(LayoutManager layout, boolean isDoubleBuffered)
          URLAuthenticate constructor comment.
 
Method Summary
 void addURLAuthenticationListener(URLAuthenticationListener al)
          Purpose:
private  void connEtoC1(FocusEvent arg1)
          connEtoC1: (txtUserID.focus.focusGained(java.awt.event.FocusEvent) --> URLAuthenticate.txtUserID_FocusGained(Ljava.awt.event.FocusEvent;)V)
private  void connEtoC2(FocusEvent arg1)
          connEtoC2: (txtPassword.focus.focusGained(java.awt.event.FocusEvent) --> URLAuthenticate.txtPassword_FocusGained(Ljava.awt.event.FocusEvent;)V)
private  void connEtoC3(KeyEvent arg1)
          connEtoC3: (txtPassword.key.keyPressed(java.awt.event.KeyEvent) --> URLAuthenticate.txtPassword_KeyPressed(Ljava.awt.event.KeyEvent;)V)
 void focusGained(FocusEvent e)
          Method to handle events for the FocusListener interface.
 void focusLost(FocusEvent e)
          Method to handle events for the FocusListener interface.
private  JLabel getJLabel1()
          Return the JLabel1 property value.
private  JLabel getJLabel2()
          Return the JLabel2 property value.
private  JLabel getJLabel3()
          Return the JLabel3 property value.
private  JLabel getServerName()
          Return the ServerName property value.
private  JPasswordField gettxtPassword()
          Return the txtPassword property value.
private  JTextField gettxtUserID()
          Return the JTextField1 property value.
private  void handleException(Throwable exception)
          Called whenever the part throws an exception.
private  void initConnections()
          Initializes connections
private  void initialize()
          Initialize the class.
static void main(String[] args)
          main entrypoint - starts the part when it is run as an application
 void prepForShow()
          Purpose: Put the cursor in the field most likely to be typed in by the user.
 void setPassword(String pass)
          Purpose:
 void setServer(String server)
          Purpose:
 void setUserID(String user)
          Purpose:
 void setVisible(boolean state)
          Purpose:
 void txtPassword_FocusGained(FocusEvent focusEvent)
          Comment
 void txtPassword_KeyPressed(KeyEvent keyEvent)
          Comment
 void txtUserID_FocusGained(FocusEvent focusEvent)
          Comment
 void updateURLAuthenticationListeners()
          Purpose:
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, 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

ivjJLabel1

private JLabel ivjJLabel1

ivjJLabel2

private JLabel ivjJLabel2

ivjJLabel3

private JLabel ivjJLabel3

ivjServerName

private JLabel ivjServerName

ivjtxtPassword

private JPasswordField ivjtxtPassword

ivjtxtUserID

private JTextField ivjtxtUserID

authenticationListeners

protected Vector authenticationListeners

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values
Constructor Detail

URLAuthenticate

public URLAuthenticate()
Constructor


URLAuthenticate

public URLAuthenticate(LayoutManager layout)
URLAuthenticate constructor comment.

Parameters:
layout - java.awt.LayoutManager

URLAuthenticate

public URLAuthenticate(LayoutManager layout,
                       boolean isDoubleBuffered)
URLAuthenticate constructor comment.

Parameters:
layout - java.awt.LayoutManager
isDoubleBuffered - boolean

URLAuthenticate

public URLAuthenticate(boolean isDoubleBuffered)
URLAuthenticate constructor comment.

Parameters:
isDoubleBuffered - boolean
Method Detail

addURLAuthenticationListener

public void addURLAuthenticationListener(URLAuthenticationListener al)
Purpose:

Parameters:
al - AuthenticationListener

connEtoC1

private void connEtoC1(FocusEvent arg1)
connEtoC1: (txtUserID.focus.focusGained(java.awt.event.FocusEvent) --> URLAuthenticate.txtUserID_FocusGained(Ljava.awt.event.FocusEvent;)V)

Parameters:
arg1 - java.awt.event.FocusEvent

connEtoC2

private void connEtoC2(FocusEvent arg1)
connEtoC2: (txtPassword.focus.focusGained(java.awt.event.FocusEvent) --> URLAuthenticate.txtPassword_FocusGained(Ljava.awt.event.FocusEvent;)V)

Parameters:
arg1 - java.awt.event.FocusEvent

connEtoC3

private void connEtoC3(KeyEvent arg1)
connEtoC3: (txtPassword.key.keyPressed(java.awt.event.KeyEvent) --> URLAuthenticate.txtPassword_KeyPressed(Ljava.awt.event.KeyEvent;)V)

Parameters:
arg1 - java.awt.event.KeyEvent

focusGained

public void focusGained(FocusEvent e)
Method to handle events for the FocusListener interface.

Specified by:
focusGained in interface FocusListener
Parameters:
e - java.awt.event.FocusEvent

focusLost

public void focusLost(FocusEvent e)
Method to handle events for the FocusListener interface.

Specified by:
focusLost in interface FocusListener
Parameters:
e - java.awt.event.FocusEvent

getJLabel1

private JLabel getJLabel1()
Return the JLabel1 property value.

Returns:
JLabel

getJLabel2

private JLabel getJLabel2()
Return the JLabel2 property value.

Returns:
JLabel

getJLabel3

private JLabel getJLabel3()
Return the JLabel3 property value.

Returns:
JLabel

getServerName

private JLabel getServerName()
Return the ServerName property value.

Returns:
JLabel

gettxtPassword

private JPasswordField gettxtPassword()
Return the txtPassword property value.

Returns:
JPasswordField

gettxtUserID

private JTextField gettxtUserID()
Return the JTextField1 property value.

Returns:
JTextField

handleException

private void handleException(Throwable exception)
Called whenever the part throws an exception.

Parameters:
exception - java.lang.Throwable

initConnections

private void initConnections()
Initializes connections


initialize

private void initialize()
Initialize the class.


main

public static void main(String[] args)
main entrypoint - starts the part when it is run as an application

Parameters:
args - java.lang.String[]

prepForShow

public void prepForShow()
Purpose: Put the cursor in the field most likely to be typed in by the user. If userID is empty, put the cursor there. If the password but not the userID is empty, put it in the password.


setPassword

public void setPassword(String pass)
Purpose:

Parameters:
pass - java.lang.String

setServer

public void setServer(String server)
Purpose:

Parameters:
server - java.lang.String

setUserID

public void setUserID(String user)
Purpose:

Parameters:
user - java.lang.String

setVisible

public void setVisible(boolean state)
Purpose:

Parameters:
state - boolean

txtPassword_FocusGained

public void txtPassword_FocusGained(FocusEvent focusEvent)
Comment


txtPassword_KeyPressed

public void txtPassword_KeyPressed(KeyEvent keyEvent)
Comment


txtUserID_FocusGained

public void txtUserID_FocusGained(FocusEvent focusEvent)
Comment


updateURLAuthenticationListeners

public void updateURLAuthenticationListeners()
Purpose: