wt.clients.util
Class PrincipalSelectorPanel

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

Deprecated. Replaced by wt.clients.beans.PrincipalSelectionBrowser

public class PrincipalSelectorPanel
extends Panel

Class PrincipalSelectorPanel is a Panel which supplies the functionality to select 1 to many users, groups, or roles. The panel is composed of a tab panel with a tab for each of the selectable objects, groups, users, or roles. The Group tab holds a list of all groups in the system. The user tab has a text box to enter selection criteria to match user's unique name or full name when the find button is clicked. It also contains a choice box populated with group names. Selecting a group will populate the user list with members of the group. The role tab contains a list populated by the populateRoles methods. Buttons exist in the middle of the panel to move items from the lists to the selected list & to remove items from the selected list. The selected list displays the items which have been selected.

See Also:
Serialized Form

Nested Class Summary
(package private)  class PrincipalSelectorPanel.SymAction
          Deprecated.  
(package private)  class PrincipalSelectorPanel.SymItem
          Deprecated.  
(package private)  class PrincipalSelectorPanel.SymPropertyChange
          Deprecated.  
 
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
static int ACTOR_TAB
          Deprecated.  
(package private)  List actorList
          Deprecated.  
(package private)  Panel actorPanel
          Deprecated.  
private  int actorTab
          Deprecated.  
(package private)  Button addAllButton
          Deprecated.  
(package private)  Button addButton
          Deprecated.  
private  Applet applet
          Deprecated.  
(package private)  Panel buttonsPanel
          Deprecated.  
(package private)  Panel CriteriaPanel
          Deprecated.  
static int GROUP_TAB
          Deprecated.  
(package private)  Choice GroupChoice
          Deprecated.  
(package private)  Label groupLabel
          Deprecated.  
(package private)  List groupList
          Deprecated.  
(package private)  symantec.itools.awt.BorderPanel groupPanel
          Deprecated.  
private  int groupTab
          Deprecated.  
private  Hashtable objectHolder
          Deprecated.  
(package private)  symantec.itools.awt.TabPanel participantsTab
          Deprecated.  
(package private)  Button removeAllButton
          Deprecated.  
(package private)  Button removeButton
          Deprecated.  
private static String RESOURCE
          Deprecated.  
static int ROLE_TAB
          Deprecated.  
(package private)  List roleList
          Deprecated.  
(package private)  symantec.itools.awt.BorderPanel rolePanel
          Deprecated.  
private  int roleTab
          Deprecated.  
(package private)  Button searchButton
          Deprecated.  
(package private)  List selectedList
          Deprecated.  
(package private)  symantec.itools.awt.BorderPanel selectedPanel
          Deprecated.  
private  boolean selectOne
          Deprecated.  
private  ThreadGroup theThreadGroup
          Deprecated.  
static int USER_TAB
          Deprecated.  
(package private)  Label userLabel
          Deprecated.  
(package private)  List userList
          Deprecated.  
(package private)  TextField UserNameTextbox
          Deprecated.  
(package private)  symantec.itools.awt.BorderPanel userPanel
          Deprecated.  
private  int userTab
          Deprecated.  
 
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
PrincipalSelectorPanel()
          Deprecated.  
 
Method Summary
(package private)  void actorList_ItemStateChanged(ItemEvent event)
          Deprecated.  
(package private)  void addAllButton_Action(ActionEvent event)
          Deprecated.  
(package private)  void addButton_Action(ActionEvent event)
          Deprecated.  
private  void addToObjectHolder(String key, Object value)
          Deprecated.  
private  void addToSelectedList(String displayName)
          Deprecated.  
 void clearSelected()
          Deprecated. Remove all entries from the selected list.
 void enableTab(boolean enabled, int tab)
          Deprecated. Conditionally enables a tab and its associated panel at the given index.
private  Applet getApplet()
          Deprecated. Gets the applet for this panel.
(package private)  void getGroupMembers(String groupName)
          Deprecated. Queries the database for all members of the group specified by the groupName parameter.
 Vector getSelectedItems()
          Deprecated. Retrieves the Vector of selected objects
(package private)  void GroupChoice_ItemStateChanged(ItemEvent event)
          Deprecated.  
(package private)  void groupList_ItemStateChanged(ItemEvent event)
          Deprecated.  
protected  void localize()
          Deprecated. Localizes the panel to the current locale.
(package private)  void participantsTab_propertyChange(PropertyChangeEvent event)
          Deprecated.  
 void populateActors()
          Deprecated. Initialize the actor list with the actors defined by ActorRole rb.
 void populateGroups()
          Deprecated. Initialize the group list and group choice box with the all groups in the database.
 void populateRoles()
          Deprecated. Initialize the role list with the roles defined by the life cycle service.
 void populateRoles(Vector roles)
          Deprecated. Initialize the role list with the objects in the roles vector
(package private)  void removeAllButton_Action(ActionEvent event)
          Deprecated.  
(package private)  void removeButton_Action(ActionEvent event)
          Deprecated.  
 void removeRoleTab()
          Deprecated. Remove the role tab.
 void removeTab(int tab)
          Deprecated. Remove a tab from the visible display.
(package private)  void roleList_ItemStateChanged(ItemEvent event)
          Deprecated.  
(package private)  void searchButton_Action(ActionEvent event)
          Deprecated.  
(package private)  void selectedList_ItemStateChanged(ItemEvent event)
          Deprecated.  
 void setApplet(Applet applet)
          Deprecated. Sets the applet for this frame.
 void setCurrentTab(int tab)
          Deprecated. Selects the specified tab and shows its associated panel.
 void setHelpContext(NFHelpContext help_context)
          Deprecated. Initialize Help
 void setSelectedItem(Object value)
          Deprecated. Initialize the list of selected items.
 void setSelectedItem(String key, Object value)
          Deprecated. Initialize the list of selected items
 void setSelectedLabel(String title)
          Deprecated. Set the label of the selected list
 void setSelectOne(boolean choice)
          Deprecated. Set the PrincipalSelector panel to accept only a single selected principal.
 void setViewMode(boolean view_mode)
          Deprecated. Sets the view mode of this dialog.
(package private)  void userList_ItemStateChanged(ItemEvent event)
          Deprecated.  
 
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, 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, 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

GROUP_TAB

public static final int GROUP_TAB
Deprecated. 
See Also:
Constant Field Values

USER_TAB

public static final int USER_TAB
Deprecated. 
See Also:
Constant Field Values

ACTOR_TAB

public static final int ACTOR_TAB
Deprecated. 
See Also:
Constant Field Values

ROLE_TAB

public static final int ROLE_TAB
Deprecated. 
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

applet

private Applet applet
Deprecated. 

objectHolder

private Hashtable objectHolder
Deprecated. 

selectOne

private boolean selectOne
Deprecated. 

theThreadGroup

private ThreadGroup theThreadGroup
Deprecated. 

groupTab

private int groupTab
Deprecated. 

userTab

private int userTab
Deprecated. 

actorTab

private int actorTab
Deprecated. 

roleTab

private int roleTab
Deprecated. 

participantsTab

symantec.itools.awt.TabPanel participantsTab
Deprecated. 

groupPanel

symantec.itools.awt.BorderPanel groupPanel
Deprecated. 

groupList

List groupList
Deprecated. 

userPanel

symantec.itools.awt.BorderPanel userPanel
Deprecated. 

CriteriaPanel

Panel CriteriaPanel
Deprecated. 

userLabel

Label userLabel
Deprecated. 

UserNameTextbox

TextField UserNameTextbox
Deprecated. 

searchButton

Button searchButton
Deprecated. 

groupLabel

Label groupLabel
Deprecated. 

GroupChoice

Choice GroupChoice
Deprecated. 

userList

List userList
Deprecated. 

actorPanel

Panel actorPanel
Deprecated. 

actorList

List actorList
Deprecated. 

rolePanel

symantec.itools.awt.BorderPanel rolePanel
Deprecated. 

roleList

List roleList
Deprecated. 

buttonsPanel

Panel buttonsPanel
Deprecated. 

addButton

Button addButton
Deprecated. 

addAllButton

Button addAllButton
Deprecated. 

removeButton

Button removeButton
Deprecated. 

removeAllButton

Button removeAllButton
Deprecated. 

selectedPanel

symantec.itools.awt.BorderPanel selectedPanel
Deprecated. 

selectedList

List selectedList
Deprecated. 
Constructor Detail

PrincipalSelectorPanel

public PrincipalSelectorPanel()
Deprecated. 
Method Detail

setViewMode

public void setViewMode(boolean view_mode)
Deprecated. 
Sets the view mode of this dialog. View mode is a read-only mode.

Parameters:
view_mode - true if read-only. View mode will display only the selected members list. The selection mechanism will be hidden.

removeTab

public void removeTab(int tab)
Deprecated. 
Remove a tab from the visible display.

Parameters:
tab - tab to be removed

enableTab

public void enableTab(boolean enabled,
                      int tab)
Deprecated. 
Conditionally enables a tab and its associated panel at the given index. The currently active tab cannot be disabled.

Parameters:
tab - the zero-relative index of the tab

setCurrentTab

public void setCurrentTab(int tab)
Deprecated. 
Selects the specified tab and shows its associated panel.

Parameters:
tab - the zero-relative index of the tab

removeRoleTab

public void removeRoleTab()
Deprecated. 
Remove the role tab.


clearSelected

public void clearSelected()
Deprecated. 
Remove all entries from the selected list.


setSelectedLabel

public void setSelectedLabel(String title)
Deprecated. 
Set the label of the selected list

Parameters:
title - the String label of the selected list.

setSelectOne

public void setSelectOne(boolean choice)
Deprecated. 
Set the PrincipalSelector panel to accept only a single selected principal. If true, selecting a second item will override any previously selected item on the selected list. The addAll & removeAll buttons will also be removed.

Parameters:
choice - a boolean value indicating whether or not a single principal may be selected.

populateGroups

public void populateGroups()
                    throws Exception
Deprecated. 
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

populateActors

public void populateActors()
                    throws Exception
Deprecated. 
Initialize the actor list with the actors defined by ActorRole rb.

Throws:
Exception - if an error occurs retrieving the roles

populateRoles

public void populateRoles()
                   throws Exception
Deprecated. 
Initialize the role list with the roles defined by the life cycle service.

Throws:
Exception - if an error occurs retrieving the roles

populateRoles

public void populateRoles(Vector roles)
                   throws Exception
Deprecated. 
Initialize the role list with the objects in the roles vector

Parameters:
roles - a vector containing objects to be displayed in the role list.
Throws:
Exception - if an error occurs populating the roles

addToObjectHolder

private void addToObjectHolder(String key,
                               Object value)
Deprecated. 

getSelectedItems

public Vector getSelectedItems()
Deprecated. 
Retrieves the Vector of selected objects

Returns:
the Vector containing the selected objects

setSelectedItem

public void setSelectedItem(String key,
                            Object value)
Deprecated. 
Initialize the list of selected items

Parameters:
key - the String to be displayed

setSelectedItem

public void setSelectedItem(Object value)
Deprecated. 
Initialize the list of selected items. If the value is a WTPrincipal, the display key will be the name. If the value is a Role, the display key is the getDisplay(). Any other object type will display value.toString()


setHelpContext

public void setHelpContext(NFHelpContext help_context)
Deprecated. 
Initialize Help


setApplet

public void setApplet(Applet applet)
Deprecated. 
Sets the applet for this frame.

Parameters:
applet - the applet.

getApplet

private Applet getApplet()
Deprecated. 
Gets the applet for this panel.


localize

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


searchButton_Action

void searchButton_Action(ActionEvent event)
Deprecated. 

GroupChoice_ItemStateChanged

void GroupChoice_ItemStateChanged(ItemEvent event)
Deprecated. 

getGroupMembers

void getGroupMembers(String groupName)
               throws Exception
Deprecated. 
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

addButton_Action

void addButton_Action(ActionEvent event)
Deprecated. 

addToSelectedList

private void addToSelectedList(String displayName)
Deprecated. 

addAllButton_Action

void addAllButton_Action(ActionEvent event)
Deprecated. 

removeButton_Action

void removeButton_Action(ActionEvent event)
Deprecated. 

removeAllButton_Action

void removeAllButton_Action(ActionEvent event)
Deprecated. 

participantsTab_propertyChange

void participantsTab_propertyChange(PropertyChangeEvent event)
Deprecated. 

userList_ItemStateChanged

void userList_ItemStateChanged(ItemEvent event)
Deprecated. 

groupList_ItemStateChanged

void groupList_ItemStateChanged(ItemEvent event)
Deprecated. 

roleList_ItemStateChanged

void roleList_ItemStateChanged(ItemEvent event)
Deprecated. 

actorList_ItemStateChanged

void actorList_ItemStateChanged(ItemEvent event)
Deprecated. 

selectedList_ItemStateChanged

void selectedList_ItemStateChanged(ItemEvent event)
Deprecated.