wt.clients.project
Class RolePanel

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

public class RolePanel
extends RoleHolderPanel

Panel which allows manipulation of roles.

See Also:
Serialized Form

Nested Class Summary
(package private)  class RolePanel.SymAction
           
(package private)  class RolePanel.SymItem
           
 
Nested classes inherited from class wt.clients.project.RoleHolderPanel
RoleHolderPanel.WorkThread
 
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
(package private)  Panel actionPanel
           
(package private)  Button addAllButton
           
(package private)  Button addButton
           
(package private)  List availableList
           
(package private)  Label availableRolesLabel
           
(package private) static WTContainerRef context
           
(package private)  boolean definitionMode
           
(package private)  Panel panel1
           
(package private)  Button participantsButton
           
(package private)  Button removeAllButton
           
(package private)  Button removeButton
           
(package private)  Hashtable requiredRoles
           
(package private)  List selectedList
           
(package private)  Label selectedRolesLabel
           
(package private)  boolean updateMode
           
 
Fields inherited from class wt.clients.project.RoleHolderPanel
applet, cRoleHolder, helpContext, helpListener, helpSystem, selectedRole, SET_CROLE_HOLDER
 
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
RolePanel()
          Constructor generated by Symantec
 
Method Summary
(package private)  void addAllButton_ActionPerformed(ActionEvent event)
          Handles the add all button action event for the Panel.
(package private)  void addButton_ActionPerformed(ActionEvent event)
          Handles the add button action event for the Panel.
 void addNotify()
          Notifies this component that it has been added to a container and if a peer is required, it should be created.
 void addRequiredRole(String role_name)
          Adds a required role to the role holder.
(package private)  void availableList_ItemStateChanged(ItemEvent event)
           
 void disableForBasic(boolean isBasic)
           
static WTContainerRef getContext()
          Try to get our context from our parents params.
 Locale getLocale()
           
 String getSelectedRoleName()
          Returns the selected role in this panel.
 boolean isUpdateMode()
          Returns true if update is allowed, else false.
private  void localize()
          Localize this panel.
(package private)  void participantsButton_ActionPerformed(ActionEvent event)
          Handles the participants button action event for the Panel.
(package private)  void removeAllButton_ActionPerformed(ActionEvent event)
          Handles the remove all button action event for the Panel.
(package private)  void removeButton_ActionPerformed(ActionEvent event)
          Handles the remove button action event for the Panel.
 void resetRequiredRoles()
          Resets the required roles list to contain no required roles.
(package private)  void selectedList_DblClicked(ActionEvent event)
          Handles the double click action for the selected list.
(package private)  void selectedList_ItemStateChanged(ItemEvent event)
           
static void setContext(WTContainerRef containerRef)
          Set the context
protected  void setCRoleHolder()
          Sets the client role holder which contains the roles.
 void setDefinitionMode(boolean definition_mode)
          Sets the definition mode of the panel.
 void setHelpContext(NFHelpContext help_context)
          Set the help context for this panel.
protected  void setSelectedRoleName()
          Sets the selected role for this panel.
 void setUpdateMode(boolean update_mode)
          Sets update mode of the panel.
(package private)  void updateRoleButtons()
          Updates the role buttons dependent on the selected role.
 void updateRoleLists()
          Puts the roles in either the available or selected roles list dependent on their inclusion in the role holder.
 
Methods inherited from class wt.clients.project.RoleHolderPanel
getApplet, getHelpContext, getHelpSystem, getParentFrame, setApplet, setCRoleHolder, setCRoleHolder, setHelp
 
Methods inherited from class java.awt.Panel
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, 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

definitionMode

boolean definitionMode

requiredRoles

Hashtable requiredRoles

updateMode

boolean updateMode

context

static WTContainerRef context

availableRolesLabel

Label availableRolesLabel

availableList

List availableList

actionPanel

Panel actionPanel

addButton

Button addButton

addAllButton

Button addAllButton

removeButton

Button removeButton

removeAllButton

Button removeAllButton

selectedRolesLabel

Label selectedRolesLabel

selectedList

List selectedList

panel1

Panel panel1

participantsButton

Button participantsButton
Constructor Detail

RolePanel

public RolePanel()
Constructor generated by Symantec

Method Detail

setUpdateMode

public void setUpdateMode(boolean update_mode)
Sets update mode of the panel. Update mode is a read/write mode.

Parameters:
update_mode - true if updatable, else false.

isUpdateMode

public boolean isUpdateMode()
Returns true if update is allowed, else false.


setDefinitionMode

public void setDefinitionMode(boolean definition_mode)
Sets the definition mode of the panel. The definition mode allows setting required roles.

Parameters:
definition_mode - true if definition is allowed, else false.

setCRoleHolder

protected void setCRoleHolder()
Sets the client role holder which contains the roles.

Overrides:
setCRoleHolder in class RoleHolderPanel

setSelectedRoleName

protected void setSelectedRoleName()
Sets the selected role for this panel.

Overrides:
setSelectedRoleName in class RoleHolderPanel

getSelectedRoleName

public String getSelectedRoleName()
Returns the selected role in this panel.


resetRequiredRoles

public void resetRequiredRoles()
Resets the required roles list to contain no required roles. Required roles cannot be removed from the selected list of roles.


addRequiredRole

public void addRequiredRole(String role_name)
Adds a required role to the role holder. Required roles cannot be removed from the selected list of roles.


updateRoleLists

public void updateRoleLists()
Puts the roles in either the available or selected roles list dependent on their inclusion in the role holder.


updateRoleButtons

void updateRoleButtons()
Updates the role buttons dependent on the selected role.


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 critiera panel is localized at this point.


localize

private void localize()
Localize this panel.


setHelpContext

public void setHelpContext(NFHelpContext help_context)
Set the help context for this panel.

Overrides:
setHelpContext in class RoleHolderPanel
Parameters:
help_context - the help context

addButton_ActionPerformed

void addButton_ActionPerformed(ActionEvent event)
Handles the add button action event for the Panel. The selected role is added to role holder.

Parameters:
event - the action event

addAllButton_ActionPerformed

void addAllButton_ActionPerformed(ActionEvent event)
Handles the add all button action event for the Panel. All roles are added to role holder.

Parameters:
event - the action event

removeButton_ActionPerformed

void removeButton_ActionPerformed(ActionEvent event)
Handles the remove button action event for the Panel. The selected role is removed from the role holder.

Parameters:
event - the action event

removeAllButton_ActionPerformed

void removeAllButton_ActionPerformed(ActionEvent event)
Handles the remove all button action event for the Panel. All non-required roles are removed from the role holder.

Parameters:
event - the action event

participantsButton_ActionPerformed

void participantsButton_ActionPerformed(ActionEvent event)
Handles the participants button action event for the Panel. A dialog is presented allowing the user to add participants to the selected role.

Parameters:
event - the action event

selectedList_DblClicked

void selectedList_DblClicked(ActionEvent event)
Handles the double click action for the selected list. This has the same effect as pressing the participants button for a selected role.

Parameters:
event - the action event

availableList_ItemStateChanged

void availableList_ItemStateChanged(ItemEvent event)

selectedList_ItemStateChanged

void selectedList_ItemStateChanged(ItemEvent event)

getLocale

public Locale getLocale()

setContext

public static void setContext(WTContainerRef containerRef)
Set the context


getContext

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


disableForBasic

public void disableForBasic(boolean isBasic)