wt.clients.util
Class ParticipantSelectionDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended bywt.clients.util.ParticipantSelectionDialog
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable

public class ParticipantSelectionDialog
extends Dialog
implements PropertyChangeListener

A Dialog for selecting participants for a role.

See Also:
Serialized Form

Nested Class Summary
(package private)  class ParticipantSelectionDialog.SymAction
           
(package private)  class ParticipantSelectionDialog.SymWindow
           
(package private)  class ParticipantSelectionDialog.WorkThread
          The work thread for this Panel.
 
Nested classes inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
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
(package private)  Applet applet
           
(package private)  Panel buttonPanel
           
(package private)  Button cancelButton
           
private  WTContainerRef containerRef
           
(package private)  CRoleHolder cRoleHolder
           
(package private)  boolean fComponentsAdjusted
           
(package private)  Button helpButton
           
(package private)  NFHelpSystem helpSystem
           
(package private) static int INITIALIZE_HELP
           
(package private)  Button okButton
           
private  boolean roleToRoleMode
           
(package private)  String selectedRole
           
(package private)  Panel selectorHolderPanel
           
(package private)  PrincipalSelectionBrowser selectorPanel
           
(package private) static int SET_CROLE_HOLDER
           
(package private)  symantec.itools.awt.StatusBar statusBar
           
private  boolean viewMode
           
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.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
ParticipantSelectionDialog(Frame parent, boolean modal)
          Symantec generated constructor.
ParticipantSelectionDialog(Frame parent, String title, boolean modal)
          Symantec generated constructor.
 
Method Summary
 void addNotify()
          Notifies this component that it has been added to a container and if a peer is required, it should be created.
(package private)  void cancelButton_ActionPerformed(ActionEvent event)
          Handles the Cancel button action event.
(package private)  void Dialog1_WindowClosing(WindowEvent event)
          Handles the dialog close event.
(package private)  Applet getApplet()
          Gets the applet for this panel.
 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.
static WTContainerRef getContext()
          Try to get our context from our parents params.
protected  Frame getParentFrame()
          Gets the parent frame to this dialog.
(package private)  void helpButton_ActionPerformed(ActionEvent event)
          Handles the Help button action event.
protected  void initializeHelp()
          Initializes help for this dialog.
 boolean isRoleToRoleMode()
          Returns true if role to role selection is allowed, else false.
 boolean isViewMode()
          Returns true if this dialog is in view only mode.
protected  void localize()
          Localizes the dialog.
(package private)  void okButton_ActionPerformed(ActionEvent event)
          Handles the OK button action event.
 void propertyChange(PropertyChangeEvent event)
          Update the status area with online help.
protected  void saveCRoleHolder()
          Adds the selected participants to the role holder.
 void setApplet(Applet applet)
          Sets the applet for this frame.
 void setContainerRef(WTContainerRef containerRef)
          This method sets a reference to a container that provides context for queries against users, groups, and organizations.
 void setCRoleHolder()
          Sets the client role holder which contains the participants.
 void setCRoleHolder(CRoleHolder crole_holder, String selected_role)
          Sets the client role holder which contains the participants.
 void setRoleToRoleMode(boolean role_to_role_mode)
          Sets the role to role mode of this dialog.
 void setViewMode(boolean view_mode)
          Sets the view mode of this dialog.
 void show()
           
 
Methods inherited from class java.awt.Dialog
dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, 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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, 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, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SET_CROLE_HOLDER

static final int SET_CROLE_HOLDER
See Also:
Constant Field Values

INITIALIZE_HELP

static final int INITIALIZE_HELP
See Also:
Constant Field Values

cRoleHolder

CRoleHolder cRoleHolder

selectedRole

String selectedRole

applet

Applet applet

helpSystem

NFHelpSystem helpSystem

viewMode

private boolean viewMode

roleToRoleMode

private boolean roleToRoleMode

containerRef

private WTContainerRef containerRef

selectorPanel

PrincipalSelectionBrowser selectorPanel

fComponentsAdjusted

boolean fComponentsAdjusted

selectorHolderPanel

Panel selectorHolderPanel

buttonPanel

Panel buttonPanel

okButton

Button okButton

cancelButton

Button cancelButton

helpButton

Button helpButton

statusBar

symantec.itools.awt.StatusBar statusBar
Constructor Detail

ParticipantSelectionDialog

public ParticipantSelectionDialog(Frame parent,
                                  boolean modal)
Symantec generated constructor.


ParticipantSelectionDialog

public ParticipantSelectionDialog(Frame parent,
                                  String title,
                                  boolean modal)
Symantec generated constructor.

Method Detail

setViewMode

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

Parameters:
view_mode - true if read-only, else false

isViewMode

public boolean isViewMode()
Returns true if this dialog is in view only mode.


setRoleToRoleMode

public void setRoleToRoleMode(boolean role_to_role_mode)
Sets the role to role mode of this dialog. Roles mode allows you to select a role to role mapping.

Parameters:
role_to_role_mode - true if role to role selection is allowed, else false

isRoleToRoleMode

public boolean isRoleToRoleMode()
Returns true if role to role selection is allowed, else false.


setCRoleHolder

public void setCRoleHolder(CRoleHolder crole_holder,
                           String selected_role)
Sets the client role holder which contains the participants.

Parameters:
crole_holder - the role holder object
selected_role - the role to which participants are to be added

setCRoleHolder

public void setCRoleHolder()
Sets the client role holder which contains the participants.


saveCRoleHolder

protected void saveCRoleHolder()
Adds the selected participants to the role holder.


setApplet

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

Parameters:
applet - the applet.

getApplet

Applet getApplet()
Gets the applet for this panel.


getParentFrame

protected Frame getParentFrame()
Gets the parent frame to this dialog.


localize

protected void localize()
Localizes the dialog.


initializeHelp

protected void initializeHelp()
Initializes help for this dialog.


propertyChange

public void propertyChange(PropertyChangeEvent event)
Update the status area with online help.

Specified by:
propertyChange in interface PropertyChangeListener

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. The dialog is localized and help is initialized at this point.


show

public void show()

Dialog1_WindowClosing

void Dialog1_WindowClosing(WindowEvent event)
Handles the dialog close event.

Parameters:
event - the window event

okButton_ActionPerformed

void okButton_ActionPerformed(ActionEvent event)
Handles the OK button action event. Saves the participants to the role holder.

Parameters:
event - the action event

cancelButton_ActionPerformed

void cancelButton_ActionPerformed(ActionEvent event)
Handles the Cancel button action event. Disposes of the dialog.

Parameters:
event - the action event

helpButton_ActionPerformed

void helpButton_ActionPerformed(ActionEvent event)
Handles the Help button action event. Displays help for the dialog.

Parameters:
event - the action event

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

getContext

public static WTContainerRef getContext()
Try to get our context from our parents params.