wt.clients.beans
Class UserSelectorPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.beans.UserSelectorPanel
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class UserSelectorPanel
extends Panel

See Also:
Serialized Form

Nested Class Summary
(package private)  class UserSelectorPanel.SymAction
           
(package private)  class UserSelectorPanel.SymItem
           
 
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
private  boolean cardLayoutInitialized
           
(package private)  Panel CriteriaPanel
           
(package private)  Choice groupChoice
           
(package private)  Label groupLabel
           
private  HelpContext helpContext
           
private  HelpSystem helpSystem
           
private  Hashtable objectHolder
           
(package private)  Button searchButton
           
private  ThreadGroup theThreadGroup
           
(package private)  Label userLabel
           
(package private)  List userList
           
(package private)  TextField userNameTextbox
           
private static String UTIL_RESOURCE
           
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
UserSelectorPanel()
           
 
Method Summary
 void addHelpListener(PropertyChangeListener pcl)
          Method addHelpListener adds the given listener to be notified of PropertyChangeEvents in the help system.
private  void addToObjectHolder(String key, Object value)
           
protected  void displayException(Exception e)
           
(package private)  void getGroupMembers(String groupName)
          Queries the database for all members of the group specified by the groupName parameter.
 HelpSystem getHelpSystem()
           
 WTPrincipal getSelectedUser()
           
(package private)  void GroupChoice_ItemStateChanged(ItemEvent event)
           
private  void initHelpSystem()
           
(package private)  void initializeHelp()
           
protected  void localize()
          Localizes the panel to the current locale.
static void main(String[] args)
           
 void populateGroups()
          Initialize the group list and group choice box with the all groups in the database.
 void removeHelpListener(PropertyChangeListener pcl)
          Method removeHelpListener removes a listener which was being notified of PropertyChangeEvents in the help system.
(package private)  void searchButton_ActionPerformed(ActionEvent event)
           
 void setLayout(LayoutManager mgr)
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
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, 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, getLocale, 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, resize, resize, 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

UTIL_RESOURCE

private static String UTIL_RESOURCE

theThreadGroup

private ThreadGroup theThreadGroup

objectHolder

private Hashtable objectHolder

cardLayoutInitialized

private boolean cardLayoutInitialized

helpSystem

private HelpSystem helpSystem

helpContext

private HelpContext helpContext

CriteriaPanel

Panel CriteriaPanel

userLabel

Label userLabel

userNameTextbox

TextField userNameTextbox

searchButton

Button searchButton

groupLabel

Label groupLabel

groupChoice

Choice groupChoice

userList

List userList
Constructor Detail

UserSelectorPanel

public UserSelectorPanel()
Method Detail

localize

protected void localize()
Localizes the panel to the current locale.


setLayout

public void setLayout(LayoutManager mgr)

addToObjectHolder

private void addToObjectHolder(String key,
                               Object value)

searchButton_ActionPerformed

void searchButton_ActionPerformed(ActionEvent event)

getGroupMembers

void getGroupMembers(String groupName)
               throws Exception
Queries the database for all members of the group specified by the groupName parameter. The list lstNotify is populated with the returned members names.

Throws:
Exception

GroupChoice_ItemStateChanged

void GroupChoice_ItemStateChanged(ItemEvent event)

populateGroups

public void populateGroups()
                    throws Exception
Initialize the group list and group choice box with the all groups in the database. This is done automatically by the PrincipalSelectorPanel on initialization

Throws:
Exception - if an error occurs retrieving the groups

getSelectedUser

public WTPrincipal getSelectedUser()

getHelpSystem

public HelpSystem getHelpSystem()

initHelpSystem

private void initHelpSystem()

displayException

protected void displayException(Exception e)

initializeHelp

void initializeHelp()

addHelpListener

public void addHelpListener(PropertyChangeListener pcl)
Method addHelpListener adds the given listener to be notified of PropertyChangeEvents in the help system. Tool description PropertyChangeEvents are generated when the user mouses over the buttons and list of ContentItems in this panel. The given listener will be notified of those events.

Parameters:
pcl - The PropertyChangeListener to be notified of PropertyChangeEvents generated by the help system.
See Also:
removeHelpListener(java.beans.PropertyChangeListener), HelpSystem, HelpContext, PropertyChangeListener

removeHelpListener

public void removeHelpListener(PropertyChangeListener pcl)
Method removeHelpListener removes a listener which was being notified of PropertyChangeEvents in the help system. If the given listener is not currently a listener, no changes are made.

Parameters:
pcl - the PropertyChangeListener to be removed as a listener of events generated by the help system of this panel.
See Also:
addHelpListener(java.beans.PropertyChangeListener), PropertyChangeListener

main

public static void main(String[] args)