|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
wt.clients.util.PrincipalSelectorPanel
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.
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int GROUP_TAB
public static final int USER_TAB
public static final int ACTOR_TAB
public static final int ROLE_TAB
private static final String RESOURCE
private Applet applet
private Hashtable objectHolder
private boolean selectOne
private ThreadGroup theThreadGroup
private int groupTab
private int userTab
private int actorTab
private int roleTab
symantec.itools.awt.TabPanel participantsTab
symantec.itools.awt.BorderPanel groupPanel
List groupList
symantec.itools.awt.BorderPanel userPanel
Panel CriteriaPanel
Label userLabel
TextField UserNameTextbox
Button searchButton
Label groupLabel
Choice GroupChoice
List userList
Panel actorPanel
List actorList
symantec.itools.awt.BorderPanel rolePanel
List roleList
Panel buttonsPanel
Button addButton
Button addAllButton
Button removeButton
Button removeAllButton
symantec.itools.awt.BorderPanel selectedPanel
List selectedList
Constructor Detail |
public PrincipalSelectorPanel()
Method Detail |
public void setViewMode(boolean view_mode)
view_mode
- true if read-only. View mode will display only the
selected members list. The selection mechanism will be hidden.public void removeTab(int tab)
tab
- tab to be removedpublic void enableTab(boolean enabled, int tab)
tab
- the zero-relative index of the tabpublic void setCurrentTab(int tab)
tab
- the zero-relative index of the tabpublic void removeRoleTab()
public void clearSelected()
public void setSelectedLabel(String title)
title
- the String
label of the selected list.public void setSelectOne(boolean choice)
choice
- a boolean
value indicating whether or not
a single principal may be selected.public void populateGroups() throws Exception
Exception
- if an error occurs retrieving the groupspublic void populateActors() throws Exception
Exception
- if an error occurs retrieving the rolespublic void populateRoles() throws Exception
Exception
- if an error occurs retrieving the rolespublic void populateRoles(Vector roles) throws Exception
roles
- a vector
containing objects to be displayed
in the role list.
Exception
- if an error occurs populating the rolesprivate void addToObjectHolder(String key, Object value)
public Vector getSelectedItems()
Vector
of selected objects
Vector
containing the selected objectspublic void setSelectedItem(String key, Object value)
key
- the String
to be displayedpublic void setSelectedItem(Object value)
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()
public void setHelpContext(NFHelpContext help_context)
public void setApplet(Applet applet)
applet
- the applet.private Applet getApplet()
protected void localize()
void searchButton_Action(ActionEvent event)
void GroupChoice_ItemStateChanged(ItemEvent event)
void getGroupMembers(String groupName) throws Exception
Exception
void addButton_Action(ActionEvent event)
private void addToSelectedList(String displayName)
void addAllButton_Action(ActionEvent event)
void removeButton_Action(ActionEvent event)
void removeAllButton_Action(ActionEvent event)
void participantsTab_propertyChange(PropertyChangeEvent event)
void userList_ItemStateChanged(ItemEvent event)
void groupList_ItemStateChanged(ItemEvent event)
void roleList_ItemStateChanged(ItemEvent event)
void actorList_ItemStateChanged(ItemEvent event)
void selectedList_ItemStateChanged(ItemEvent event)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |