wt.clients.lifecycle.administrator
Class CriteriaPanel

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

public class CriteriaPanel
extends RoleHolderPanel

Panel which allows manipulation of the criteria.

See Also:
Serialized Form

Nested Class Summary
(package private)  class CriteriaPanel.CreateCriteriaActionListener
          CriteriaDialog action listener which listens of the buttons on the CreateDialog.
(package private)  class CriteriaPanel.SymAction
           
(package private)  class CriteriaPanel.SymItem
           
(package private)  class CriteriaPanel.UpdateCriteriaActionListener
          CriteriaDialog action listener which listens of the buttons on the CreateDialog.
 
Nested classes inherited from class wt.clients.project.RoleHolderPanel
 
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)  CCriteriaList cCriteriaList
           
(package private)  Button createButton
           
(package private)  CriteriaDialog criteriaDialog
           
(package private)  Label criteriaLabel
           
(package private)  List criteriaList
           
(package private)  Button deleteButton
           
(package private)  String oldAssertion
           
(package private)  CPhaseTemplate phaseEntry
           
(package private)  Button updateButton
           
private  boolean viewMode
           
 
Fields inherited from class wt.clients.project.RoleHolderPanel
cRoleHolder, selectedRole
 
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
(package private) CriteriaPanel()
          Constructor generated by Symantec
 
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 createButton_ActionPerformed(ActionEvent event)
          Create button action listener.
(package private)  void criteriaList_DblClicked(ActionEvent event)
          Handles the double click event on the criteria list.
(package private)  void criteriaList_ItemStateChanged(ItemEvent event)
          Handles the item state changed event on the criteria list.
(package private)  void deleteButton_ActionPerformed(ActionEvent event)
          Delete button action listener.
protected  boolean isViewMode()
          Returns true if this panel is in view only mode.
protected  void localize()
          Localize this panel.
protected  void removeAllCriteria(CCriteriaList a_criteriaList)
           
protected  void setCRoleHolder()
          Sets the client role holder (phase) which contains the criteria.
 void setHelpContext(NFHelpContext help_context)
          Set the help context for this panel.
protected  void setViewMode(boolean view_mode)
          Sets the mode of the critieria panel.
(package private)  void updateButton_ActionPerformed(ActionEvent event)
          Update button action listener.
protected  void updateButtons()
          Updates the buttons dependent on the selected criterion.
 
Methods inherited from class wt.clients.project.RoleHolderPanel
getApplet, getHelpContext, getHelpSystem, getParentFrame, setApplet, setCRoleHolder, setCRoleHolder, setHelp, setSelectedRoleName
 
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, 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

phaseEntry

CPhaseTemplate phaseEntry

cCriteriaList

CCriteriaList cCriteriaList

viewMode

private boolean viewMode

criteriaList

List criteriaList

actionPanel

Panel actionPanel

createButton

Button createButton

updateButton

Button updateButton

deleteButton

Button deleteButton

criteriaLabel

Label criteriaLabel

criteriaDialog

CriteriaDialog criteriaDialog

oldAssertion

String oldAssertion
Constructor Detail

CriteriaPanel

CriteriaPanel()
Constructor generated by Symantec

Method Detail

setCRoleHolder

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

Overrides:
setCRoleHolder in class RoleHolderPanel

setViewMode

protected void setViewMode(boolean view_mode)
Sets the mode of the critieria panel. View mode is a read-only mode.

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

isViewMode

protected boolean isViewMode()
Returns true if this panel is in view only mode.


updateButtons

protected void updateButtons()
Updates the buttons dependent on the selected criterion.


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

protected 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

createButton_ActionPerformed

void createButton_ActionPerformed(ActionEvent event)
Create button action listener. Displays the CriteriaDialog so the user can enter a new criterion.

Parameters:
event - the action event

deleteButton_ActionPerformed

void deleteButton_ActionPerformed(ActionEvent event)
Delete button action listener. Deletes the selected criterion.

Parameters:
event - the action event

removeAllCriteria

protected void removeAllCriteria(CCriteriaList a_criteriaList)

updateButton_ActionPerformed

void updateButton_ActionPerformed(ActionEvent event)
Update button action listener. Displays the CriteriaDialog so the user can update the selected criterion.

Parameters:
event - the action event

criteriaList_ItemStateChanged

void criteriaList_ItemStateChanged(ItemEvent event)
Handles the item state changed event on the criteria list. The buttons are updated when an item is selected or deselected.

Parameters:
event - the item event

criteriaList_DblClicked

void criteriaList_DblClicked(ActionEvent event)
Handles the double click event on the criteria list. The criterion which was double clicked is updated.

Parameters:
event - the action event