wt.clients.beans
Class FindUserPanel

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

public class FindUserPanel
extends Container

See Also:
Serialized Form

Nested Class Summary
(package private)  class FindUserPanel.SymAction
           
(package private)  class FindUserPanel.SymItem
           
(package private)  class FindUserPanel.WorkThread
          The work thread is used to place long operations in a separate WTThread so the AWT thread isn't tied up.
 
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  String allServices
           
(package private) static String BLANK_CHOICE
           
private  WTContainerRef containerRef
           
private  ThreadGroup contextGroup
           
private  String defaultService
           
private  boolean deletedPrincipalsVisible
           
private  boolean enterGroupName
           
(package private)  symantec.itools.awt.LabelButton findButton
           
private  boolean from_find
           
(package private)  Choice groupChoice
           
(package private)  symantec.itools.awt.WrappingLabel groupLabel
           
(package private)  TextField groupNameTextField
           
(package private)  HelpContext helpContext
           
(package private)  HelpSystem helpSystem
           
(package private) static int INIT_GROUP_LIST
           
private  Object init_sync
           
(package private)  String invalid_groupname
           
private  LayoutManager layout
           
private  boolean layoutInitialized
           
private  boolean listsPopulated
           
(package private)  String notice
           
private  boolean passive
           
private  Vector propertyChangeListeners
           
private static String RESOURCE_BUNDLE
           
private  String selectedGroup
           
private  String selectedService
           
(package private)  Choice serviceChoice
           
(package private)  symantec.itools.awt.WrappingLabel serviceLabel
           
private  String[] services
           
private  Hashtable servicesTable
           
(package private)  symantec.itools.awt.WrappingLabel userIdLabel
           
(package private)  TextField userIdTextField
           
(package private)  WTMultiList userList
           
(package private)  symantec.itools.awt.WrappingLabel userNameLabel
           
(package private)  TextField userNameTextField
           
 
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
FindUserPanel()
          This is the no arg constructor that creates the FindUserPanel.
 
Method Summary
 void addHelpListener(PropertyChangeListener pcl)
          Method addHelpListener adds the given listener to be notified of PropertyChangeEvents in the help system.
 void addNotify()
          Notifies this component that it has been added to a container and if a peer is required, it should be created.
 void addPropertyChangeListener(PropertyChangeListener pcl)
          This method adds a PropertyChangeListener to the component.
private  void findButton_ActionPerformed(ActionEvent event)
           
private  void firePropertyChangeEvent(String command, Object oldValue, Object newValue)
           
 WTContainerRef getContainerRef()
          This method returns the current value for the component's container reference, or null if the component is not currently associated with a container context.
private  ArrayList getContextProviders(WTContainerRef containerRef, String service, Class inClass)
           
private  void getGroupMembers()
           
 HelpContext getHelpContext()
          This is the public getter for the HelpContext being used for the online help.
 HelpSystem getHelpSystem()
          This is the public getter for the HelpSystem being used for the online help.
 WTUser getSelectedUser()
          Return the currently selected user.
 WTUser getUser(int index)
          Get the WTUser object at the specified index.
 int getUserCount()
          Return the number of users in the user list.
private  void groupChoice_ItemStateChanged(ItemEvent event)
           
private  void initGroupList()
          Spin off a thread to initialize the choice list.
private  void initHelpSystem()
           
private  void initializeHelp()
           
private  void localize()
           
static void main(String[] args)
          Main for testing.
private  void populateGroupList_ForEnteredGroupName()
           
private  void populateGroupList()
           
private  void populateLists()
           
private  void populateServiceList()
           
 void removeHelpListener(PropertyChangeListener pcl)
          Method removeHelpListener removes a listener which was being notified of PropertyChangeEvents in the help system.
 void removePropertyChangeListener(PropertyChangeListener pcl)
          This method removes the desired PropertyChangeListener from the component.
private  void serviceChoice_ItemStateChanged(ItemEvent event)
           
 void setContainerRef(WTContainerRef containerRef)
          This method sets a reference to a container that provides context for queries against users, groups, and organizations.
 void setFont(Font newFont)
           
 void setLayout(LayoutManager lm)
          This method sets the layout for the PrincipalSelectionBrowser.
private  void userList_actionPerformed(ActionEvent event)
           
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, 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, getAccessibleContext, 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, 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

RESOURCE_BUNDLE

private static final String RESOURCE_BUNDLE
See Also:
Constant Field Values

deletedPrincipalsVisible

private boolean deletedPrincipalsVisible

listsPopulated

private boolean listsPopulated

servicesTable

private Hashtable servicesTable

layoutInitialized

private boolean layoutInitialized

layout

private LayoutManager layout

containerRef

private WTContainerRef containerRef

contextGroup

private ThreadGroup contextGroup

helpSystem

HelpSystem helpSystem

helpContext

HelpContext helpContext

propertyChangeListeners

private Vector propertyChangeListeners

INIT_GROUP_LIST

static final int INIT_GROUP_LIST
See Also:
Constant Field Values

BLANK_CHOICE

static final String BLANK_CHOICE
See Also:
Constant Field Values

allServices

private String allServices

defaultService

private String defaultService

selectedService

private String selectedService

selectedGroup

private String selectedGroup

services

private String[] services

init_sync

private Object init_sync

enterGroupName

private boolean enterGroupName

notice

String notice

invalid_groupname

String invalid_groupname

passive

private boolean passive

userNameLabel

symantec.itools.awt.WrappingLabel userNameLabel

serviceLabel

symantec.itools.awt.WrappingLabel serviceLabel

userIdLabel

symantec.itools.awt.WrappingLabel userIdLabel

userNameTextField

TextField userNameTextField

userIdTextField

TextField userIdTextField

groupLabel

symantec.itools.awt.WrappingLabel groupLabel

groupChoice

Choice groupChoice

groupNameTextField

TextField groupNameTextField

findButton

symantec.itools.awt.LabelButton findButton

userList

WTMultiList userList

serviceChoice

Choice serviceChoice

from_find

private boolean from_find
Constructor Detail

FindUserPanel

public FindUserPanel()
This is the no arg constructor that creates the FindUserPanel.

Supported API: false.

Method Detail

setLayout

public void setLayout(LayoutManager lm)
This method sets the layout for the PrincipalSelectionBrowser. Once the layout has been initialized it cannot be changed. It effectively avoids the component's internal layout from being changed.

Supported API: false.

Parameters:
lm - The LayoutManager the component will have set.
See Also:
LayoutManager

setContainerRef

public void setContainerRef(WTContainerRef containerRef)
                     throws WTException
This method sets a reference to a container that provides context for queries against users, groups, and organizations.

Supported API: true.

Parameters:
containerRef - The container reference
Throws:
WTException
See Also:
WTContainerRef

getContainerRef

public WTContainerRef getContainerRef()
This method returns the current value for the component's container reference, or null if the component is not currently associated with a container context.

Supported API: true.

Returns:
The current container reference
See Also:
WTContainerRef

getUser

public WTUser getUser(int index)
Get the WTUser object at the specified index.

Supported API: false.

Parameters:
index - The index to obtain the WTUser.
Returns:
the WTUser

getSelectedUser

public WTUser getSelectedUser()
Return the currently selected user.

Supported API: false.

Returns:
the selected WTUser

getUserCount

public int getUserCount()
Return the number of users in the user list.

Supported API: false.

Returns:
the number of users in the user list.

addNotify

public void addNotify()
Notifies this component that it has been added to a container and if a peer is required, it should be created.

Supported API: false


addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener pcl)
This method adds a PropertyChangeListener to the component. The added listener will recieve a PropertyChangeEvent when a principal is selected in non multipleSelection mode.

Supported API: false.

Parameters:
pcl - The PropertyChangeListener
See Also:
PropertyChangeListener, PropertyChangeEvent

getHelpSystem

public HelpSystem getHelpSystem()
This is the public getter for the HelpSystem being used for the online help.

Supported API: false.

Returns:
The HelpSystem for the bean
See Also:
HelpSystem

getHelpContext

public HelpContext getHelpContext()
This is the public getter for the HelpContext being used for the online help.

Supported API: false.

Returns:
The HelpContext for the bean.
See Also:
HelpContext

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.

Supported API: false.

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.

Supported API: false.

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

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener pcl)
This method removes the desired PropertyChangeListener from the component.

Supported API: false.

Parameters:
pcl - The PropertyChangeListener
See Also:
PropertyChangeListener, PropertyChangeEvent

setFont

public void setFont(Font newFont)

localize

private void localize()

initGroupList

private void initGroupList()
Spin off a thread to initialize the choice list.


populateLists

private void populateLists()

populateServiceList

private void populateServiceList()

populateGroupList

private void populateGroupList()

populateGroupList_ForEnteredGroupName

private void populateGroupList_ForEnteredGroupName()

getContextProviders

private ArrayList getContextProviders(WTContainerRef containerRef,
                                      String service,
                                      Class inClass)
                               throws WTException,
                                      WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

groupChoice_ItemStateChanged

private void groupChoice_ItemStateChanged(ItemEvent event)

findButton_ActionPerformed

private void findButton_ActionPerformed(ActionEvent event)

firePropertyChangeEvent

private void firePropertyChangeEvent(String command,
                                     Object oldValue,
                                     Object newValue)

getGroupMembers

private void getGroupMembers()
                      throws Exception
Throws:
Exception

userList_actionPerformed

private void userList_actionPerformed(ActionEvent event)

serviceChoice_ItemStateChanged

private void serviceChoice_ItemStateChanged(ItemEvent event)

initializeHelp

private void initializeHelp()

initHelpSystem

private void initHelpSystem()

main

public static void main(String[] args)
Main for testing.