wt.clients.vc.baseline
Class BaselineTaskPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.vc.baseline.BaselineTaskPanel
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable

public class BaselineTaskPanel
extends Panel
implements PropertyChangeListener

See Also:
Serialized Form

Nested Class Summary
(package private)  class BaselineTaskPanel.QueryListener
           
(package private)  class BaselineTaskPanel.SymAction
           
(package private)  class BaselineTaskPanel.SymKey
           
(package private)  class BaselineTaskPanel.WorkThread
          The work thread for this Panel.
 
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)  Button addButton
           
private  Applet applet
           
(package private)  Panel attributesPanel
           
private  ManagedBaseline baseline
           
(package private)  Button browseButton
           
(package private)  Button button1
           
(package private)  Button button2
           
(package private)  Panel buttonPanel
           
(package private)  Button cancelButton
           
private  WTContext context
           
static int CREATE_MODE
           
(package private)  Label createdByLabel
           
(package private)  Label createdByValueLabel
           
(package private)  Label createdLabel
           
(package private)  Label createdStaticLabel
           
(package private)  Label descriptionStaticLabel
           
(package private)  TextArea descriptionTextField
           
private static boolean ENABLE_ITEM_LIST
           
(package private)  Button helpButton
           
private  HelpContext helpContext
           
private  HelpSystem helpSystem
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine2
           
(package private)  symantec.itools.awt.shape.HorizontalLine infoHorizontalLine
           
(package private)  Panel infoPanel
           
(package private)  Panel itemButtonPanel
           
(package private)  Panel itemPanel
           
private  Vector items
           
(package private)  Label lastUpdatedLabel
           
(package private)  Label lastUpdatedStaticLabel
           
(package private)  LifeCycleInfo lifeCycleInfo1
           
private  String[] listItems
           
(package private)  Label locationLabel
           
(package private)  Label locationStaticLabel
           
(package private)  TextField locationTextField
           
private  int mode
           
(package private)  symantec.itools.awt.MultiList multiList
           
(package private)  Label nameLabel
           
(package private)  Label nameStaticLabel
           
(package private)  TextField nameTextField
           
(package private)  Label numberLabel
           
(package private)  Label numberStaticLabel
           
(package private)  Button okButton
           
(package private)  Button populateButton
           
(package private)  Button removeButton
           
private static ResourceBundle resource
           
protected static String RESOURCE
           
protected static int RETRIEVE_BASELINE
           
(package private)  symantec.itools.awt.StatusBar statusBar
           
static int UPDATE_MODE
           
 
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
BaselineTaskPanel(ResourceBundle a_resource)
           
 
Method Summary
protected  void addBaselineItems(boolean populateFlag)
           
(package private)  void addButton_ActionPerformed(ActionEvent event)
           
protected  void addItemsToBaseline(WTObject[] items, boolean populateFlag)
           
 void addNotify()
           
protected  void browseButton_Action(ActionEvent event)
           
(package private)  void browseButton_KeyPressed(KeyEvent event)
           
protected  void cancelButton_Action(ActionEvent event)
           
(package private)  void cancelButton_KeyPressed(KeyEvent event)
           
protected  void checkRequiredFields()
           
 void dispatchRefresh()
          Dispatch a RefeshEvent for modifications to the contained Part
 void displayBaselineInfo()
           
 void displayBaselineItems()
           
protected  void enableUpdateFields()
           
private  String formatDate(Timestamp ts)
           
 Applet getApplet()
          Gets the applet for this panel.
private  void getBaselineItems(ManagedBaseline baseline)
           
 ConfigSpec getConfigSpec()
           
 WTContext getContext()
          Get the WTContext to use in threads
protected  String getDisplayName(String attribute)
           
protected  String getHelpBundleName()
           
 HelpContext getHelpContext()
          Get the Help Context
 HelpSystem getHelpSystem()
          Get the help system
private  int getMaxLength(String attribute_constant)
          Get the maximum length for the specified attribute in the specified class.
private  Frame getParentFrame()
           
 int getUpdateMode()
           
(package private)  void helpButton_ActionPerformed(ActionEvent event)
           
(package private)  void helpButton_KeyPressed(KeyEvent event)
           
protected  void initialize()
           
 void initializeHelp()
          Initialize the help system
protected  void localize()
           
(package private)  void locationTextField_KeyPressed(KeyEvent event)
           
(package private)  void nameTextField_KeyPressed(KeyEvent event)
           
protected  void okButton_Action(ActionEvent event)
           
(package private)  void okButton_KeyPressed(KeyEvent event)
           
(package private)  void populateButton_ActionPerformed(ActionEvent event)
           
protected  void processBrowseAction()
           
protected  void processCancelAction()
           
protected  void processHelpAction()
           
protected  void processOkAction()
           
 void propertyChange(PropertyChangeEvent event)
          Update the status area with online help.
private  void refreshFrameTitle()
           
private  void removeBaselineItems()
           
(package private)  void removeButton_ActionPerformed(ActionEvent event)
           
private  void resizeFrame()
           
protected  void save()
          Saves the baseline changes.
 void setBaseline(ManagedBaseline baseline)
           
 void setContext(WTContext context)
          Set the WTContent
protected  void setCreateFieldsEnable(boolean enable)
           
 void setHelpContext(HelpContext helpContext)
          Set the help context
 void setHelpSystem(HelpSystem helpSystem)
          Set the help system
protected  void setInfoFieldsVisibility(boolean visible)
           
protected  void setItemButtonsVisibility(boolean visible)
           
protected  void setItemsVisibility(boolean visible)
           
protected  void setMaxLengths()
          Deprecated. no longer used
 void setUpdateMode(int aMode)
           
 
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

RESOURCE

protected static String RESOURCE

resource

private static ResourceBundle resource

RETRIEVE_BASELINE

protected static final int RETRIEVE_BASELINE
See Also:
Constant Field Values

UPDATE_MODE

public static final int UPDATE_MODE
See Also:
Constant Field Values

CREATE_MODE

public static final int CREATE_MODE
See Also:
Constant Field Values

baseline

private ManagedBaseline baseline

mode

private int mode

items

private Vector items

listItems

private String[] listItems

ENABLE_ITEM_LIST

private static boolean ENABLE_ITEM_LIST

helpSystem

private HelpSystem helpSystem

helpContext

private HelpContext helpContext

context

private WTContext context

applet

private Applet applet

attributesPanel

Panel attributesPanel

nameStaticLabel

Label nameStaticLabel

nameTextField

TextField nameTextField

nameLabel

Label nameLabel

numberStaticLabel

Label numberStaticLabel

numberLabel

Label numberLabel

locationStaticLabel

Label locationStaticLabel

locationTextField

TextField locationTextField

locationLabel

Label locationLabel

browseButton

Button browseButton

descriptionStaticLabel

Label descriptionStaticLabel

descriptionTextField

TextArea descriptionTextField

infoHorizontalLine

symantec.itools.awt.shape.HorizontalLine infoHorizontalLine

infoPanel

Panel infoPanel

createdStaticLabel

Label createdStaticLabel

createdLabel

Label createdLabel

lastUpdatedStaticLabel

Label lastUpdatedStaticLabel

lastUpdatedLabel

Label lastUpdatedLabel

createdByLabel

Label createdByLabel

createdByValueLabel

Label createdByValueLabel

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

buttonPanel

Panel buttonPanel

okButton

Button okButton

cancelButton

Button cancelButton

helpButton

Button helpButton

statusBar

symantec.itools.awt.StatusBar statusBar

itemPanel

Panel itemPanel

multiList

symantec.itools.awt.MultiList multiList

itemButtonPanel

Panel itemButtonPanel

addButton

Button addButton

removeButton

Button removeButton

populateButton

Button populateButton

button1

Button button1

button2

Button button2

lifeCycleInfo1

LifeCycleInfo lifeCycleInfo1

horizontalLine2

symantec.itools.awt.shape.HorizontalLine horizontalLine2
Constructor Detail

BaselineTaskPanel

public BaselineTaskPanel(ResourceBundle a_resource)
Method Detail

getConfigSpec

public ConfigSpec getConfigSpec()

setBaseline

public void setBaseline(ManagedBaseline baseline)

setUpdateMode

public void setUpdateMode(int aMode)
                   throws PropertyVetoException
Throws:
PropertyVetoException

resizeFrame

private void resizeFrame()

refreshFrameTitle

private void refreshFrameTitle()

checkRequiredFields

protected void checkRequiredFields()
                            throws WTException
Throws:
WTException

getDisplayName

protected String getDisplayName(String attribute)

setCreateFieldsEnable

protected void setCreateFieldsEnable(boolean enable)

setInfoFieldsVisibility

protected void setInfoFieldsVisibility(boolean visible)

setItemsVisibility

protected void setItemsVisibility(boolean visible)

setItemButtonsVisibility

protected void setItemButtonsVisibility(boolean visible)

enableUpdateFields

protected void enableUpdateFields()

displayBaselineItems

public void displayBaselineItems()

displayBaselineInfo

public void displayBaselineInfo()

dispatchRefresh

public void dispatchRefresh()
Dispatch a RefeshEvent for modifications to the contained Part

See Also:
wt.clients.util.RefeshEvent

save

protected void save()
             throws WTException
Saves the baseline changes. If in CREATE_MODE, then the baseline is created.

Throws:
WTException

addItemsToBaseline

protected void addItemsToBaseline(WTObject[] items,
                                  boolean populateFlag)

initialize

protected void initialize()

okButton_Action

protected void okButton_Action(ActionEvent event)

processOkAction

protected void processOkAction()

cancelButton_Action

protected void cancelButton_Action(ActionEvent event)

processCancelAction

protected void processCancelAction()

browseButton_Action

protected void browseButton_Action(ActionEvent event)

processBrowseAction

protected void processBrowseAction()

localize

protected void localize()

setMaxLengths

protected void setMaxLengths()
Deprecated. no longer used

Sets the maximum length of the name textfield. This method has been deprecated because the name textfield has been replaced by a text field which does not support a maximum length.


getParentFrame

private Frame getParentFrame()

getMaxLength

private int getMaxLength(String attribute_constant)
Get the maximum length for the specified attribute in the specified class.

Parameters:
attribute_constant - the string constant for the attribute
Returns:
the maximum length of the attribute

getBaselineItems

private void getBaselineItems(ManagedBaseline baseline)
                       throws WTException
Throws:
WTException

removeBaselineItems

private void removeBaselineItems()

addBaselineItems

protected void addBaselineItems(boolean populateFlag)

formatDate

private String formatDate(Timestamp ts)

addButton_ActionPerformed

void addButton_ActionPerformed(ActionEvent event)

removeButton_ActionPerformed

void removeButton_ActionPerformed(ActionEvent event)

populateButton_ActionPerformed

void populateButton_ActionPerformed(ActionEvent event)

helpButton_ActionPerformed

void helpButton_ActionPerformed(ActionEvent event)

processHelpAction

protected void processHelpAction()

getHelpSystem

public HelpSystem getHelpSystem()
Get the help system

Returns:
the help system

setHelpSystem

public void setHelpSystem(HelpSystem helpSystem)
Set the help system

Parameters:
helpSystem - the helpsystem to use in this component

setHelpContext

public void setHelpContext(HelpContext helpContext)
Set the help context

Parameters:
helpContext - the help context to use

getHelpContext

public HelpContext getHelpContext()
Get the Help Context

Returns:
the help context

initializeHelp

public void initializeHelp()
                    throws PropertyVetoException
Initialize the help system

Throws:
PropertyVetoException

getHelpBundleName

protected String getHelpBundleName()

setContext

public void setContext(WTContext context)
Set the WTContent


getContext

public WTContext getContext()
Get the WTContext to use in threads


getApplet

public Applet getApplet()
Gets the applet for this panel.


addNotify

public void addNotify()

getUpdateMode

public int getUpdateMode()

propertyChange

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

Specified by:
propertyChange in interface PropertyChangeListener

nameTextField_KeyPressed

void nameTextField_KeyPressed(KeyEvent event)

locationTextField_KeyPressed

void locationTextField_KeyPressed(KeyEvent event)

okButton_KeyPressed

void okButton_KeyPressed(KeyEvent event)

cancelButton_KeyPressed

void cancelButton_KeyPressed(KeyEvent event)

browseButton_KeyPressed

void browseButton_KeyPressed(KeyEvent event)

helpButton_KeyPressed

void helpButton_KeyPressed(KeyEvent event)