wt.clients.prodmgmt
Class PartTaskPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.prodmgmt.HelperPanel
                  extended bywt.clients.prodmgmt.PartTaskPanel
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable
Direct Known Subclasses:
ProductTaskPanel, SerialNumberedPartTaskPanel

public class PartTaskPanel
extends HelperPanel
implements PropertyChangeListener

See Also:
Serialized Form

Nested Class Summary
(package private)  class PartTaskPanel.SymAction
           
(package private)  class PartTaskPanel.SymJCAction
           
(package private)  class PartTaskPanel.SymKey
           
(package private)  class PartTaskPanel.SymMouse
           
(package private)  class PartTaskPanel.WkThread
           
 
Nested classes inherited from class wt.clients.prodmgmt.HelperPanel
HelperPanel.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)  PartAttributesPanel beanAttributesPanel
           
private static ResourceBundle beansLifeCycleRB
           
(package private)  symantec.itools.awt.shape.HorizontalLine bottomLine
           
(package private)  Panel buttonPanel
           
(package private)  Button cancelButton
           
(package private)  symantec.itools.awt.BorderPanel cardPanel
           
(package private)  jclass.bwt.JCButton contentsButton
           
(package private)  ContentsPanel contentsPanel
           
static int CREATE_MODE
           
private static boolean DEBUG
          Flag used to provide debugging messages.
private  int defaultPanel
           
static int DESCRIBED_BY_PANEL
           
(package private)  jclass.bwt.JCButton describedByButton
           
(package private)  DescribedByPanel describedByPanel
           
protected  boolean disposeWindow
           
(package private)  Button editAttributesButton
           
(package private)  Button helpButton
           
private static String IBA_RESOURCE
           
(package private)  IBAHolder ibaHolder
           
(package private)  IBAContainerEditor ibaPanel
           
private static ResourceBundle ibaResource
           
protected  int mode
           
private  MessageDialog msgbox
           
(package private)  Button okButton
           
static int REFERENCES_PANEL
           
(package private)  jclass.bwt.JCButton referencesButton
           
(package private)  ReferencesPanel referencesPanel
           
(package private)  Panel relationsPanel
           
(package private)  Button saveButton
           
private  boolean SHOW_CONTENTS
           
protected static boolean SHOW_ORG_ID
           
(package private)  symantec.itools.awt.StatusBar statusBar
           
(package private)  Panel tabPanel
           
(package private)  symantec.itools.awt.shape.HorizontalLine topLine
           
static int UPDATE_MODE
           
protected  boolean updateMode
           
static int USES_PANEL
           
(package private)  jclass.bwt.JCButton usesButton
           
(package private)  UsesPanel usesPanel
           
static int VIEW_MODE
           
 
Fields inherited from class wt.clients.prodmgmt.HelperPanel
resource, RESOURCE, SAVE, SET_CONFIGURATION_ITEM, SET_INSTANCE_ITEM, SET_PART_ITEM, threadGroup
 
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
PartTaskPanel()
          Create a PartTaskPanel.
 
Method Summary
 void addNotify()
          Override default behavior to initialize the help system when this method is invoked.
(package private)  void beanAttributesPanel_KeyPress(KeyEvent event)
           
protected  void cancelButton_Action(ActionEvent event)
           
(package private)  void cancelButton_KeyPress(KeyEvent event)
           
protected  Folder checkFolderLocation()
           
protected  boolean checkRequiredFields()
          Check if required fields have valid values.
protected  void contentsButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
protected  void contentsButton_mousePressed(MouseEvent event)
           
(package private)  void describedByButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
(package private)  void describedByButton_mousePressed(MouseEvent event)
           
protected  void editAttributesButton_Action(ActionEvent event)
           
protected  void enableCreateFields()
          Enable appropriate fields for creating a part.
protected  void enableUpdateFields()
          Enable appropriate fields for updating a part.
protected  void enableViewFields()
          Enable appropriate fields for viewing a Part.
protected  ResourceBundle getBeansLifeCycleRB()
           
static String getDisplayLabel(Class class_name, String attribute, WTContext context)
           
protected  boolean getShowContents()
          Return the value of show contents.
 int getUpdateMode()
          Get the update mode.
protected  void helpButton_Action(ActionEvent event)
           
protected  void initialize()
           
 void initializeHelp()
          Initialize the help system.
protected  void localize()
           
protected  void okButton_Action(ActionEvent event)
           
(package private)  void okButton_KeyPress(KeyEvent event)
           
protected  void processCancelCommand()
           
protected  void processOkCommand()
           
protected  void processSaveCommand()
           
 void propertyChange(PropertyChangeEvent event)
          Update the status area with online help.
protected  void referencesButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
protected  void referencesButton_mousePressed(MouseEvent event)
           
 void save()
          Start a new thread to save the modified part.
protected  void saveButton_Action(ActionEvent event)
           
(package private)  void saveButton_KeyPress(KeyEvent event)
           
protected  void saveInThread()
          Perform the actions to save the modified part.
protected  void setDefaultPanel(int default_panel)
          Set the default panel.
protected  void setMaxLengths()
           
 void setPartItem()
          Set the PartItem to display and manipulate.
 void setUpdateMode(int aMode)
          Set the update mode.
protected  void showContentsPanel()
           
protected  void showDefaultPanel()
          Show the default panel.
protected  void showDescribedByPanel()
           
protected  void showReferencesPanel()
           
protected  void showUsesPanel()
           
protected  void trace(String message)
           
protected  void updateColors(Color color)
           
protected  void usesButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
protected  void usesButton_mousePressed(MouseEvent event)
           
 
Methods inherited from class wt.clients.prodmgmt.HelperPanel
getApplet, getConfigurationItem, getContext, getHelpBundleName, getHelpContext, getHelpSystem, getInstanceItem, getLabelsRB, getLocalizedMessage, getLocalizedValue, getParentFrame, getPartItem, getThreadGroup, initResources, setApplet, setConfigurationItem, setConfigurationItem, setContext, setHelpContext, setHelpSystem, setInstanceItem, setInstanceItem, setPartItem, setUpdateMode, showMessageDialog
 
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

SHOW_CONTENTS

private boolean SHOW_CONTENTS

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

VIEW_MODE

public static final int VIEW_MODE
See Also:
Constant Field Values

USES_PANEL

public static final int USES_PANEL
See Also:
Constant Field Values

REFERENCES_PANEL

public static final int REFERENCES_PANEL
See Also:
Constant Field Values

DESCRIBED_BY_PANEL

public static final int DESCRIBED_BY_PANEL
See Also:
Constant Field Values

SHOW_ORG_ID

protected static boolean SHOW_ORG_ID

beansLifeCycleRB

private static ResourceBundle beansLifeCycleRB

disposeWindow

protected boolean disposeWindow

updateMode

protected boolean updateMode

mode

protected int mode

defaultPanel

private int defaultPanel

contentsPanel

ContentsPanel contentsPanel

usesPanel

UsesPanel usesPanel

referencesPanel

ReferencesPanel referencesPanel

describedByPanel

DescribedByPanel describedByPanel

ibaPanel

IBAContainerEditor ibaPanel

ibaHolder

IBAHolder ibaHolder

DEBUG

private static boolean DEBUG
Flag used to provide debugging messages.


IBA_RESOURCE

private static final String IBA_RESOURCE
See Also:
Constant Field Values

ibaResource

private static ResourceBundle ibaResource

msgbox

private MessageDialog msgbox

beanAttributesPanel

PartAttributesPanel beanAttributesPanel

relationsPanel

Panel relationsPanel

topLine

symantec.itools.awt.shape.HorizontalLine topLine

tabPanel

Panel tabPanel

usesButton

jclass.bwt.JCButton usesButton

referencesButton

jclass.bwt.JCButton referencesButton

describedByButton

jclass.bwt.JCButton describedByButton

bottomLine

symantec.itools.awt.shape.HorizontalLine bottomLine

cardPanel

symantec.itools.awt.BorderPanel cardPanel

buttonPanel

Panel buttonPanel

okButton

Button okButton

saveButton

Button saveButton

cancelButton

Button cancelButton

helpButton

Button helpButton

statusBar

symantec.itools.awt.StatusBar statusBar

editAttributesButton

Button editAttributesButton

contentsButton

jclass.bwt.JCButton contentsButton
Constructor Detail

PartTaskPanel

public PartTaskPanel()
Create a PartTaskPanel.

Method Detail

getUpdateMode

public int getUpdateMode()
Get the update mode.

Returns:
this.UPDATE_MODE, this.VIEW_MODE, or this.CREATE_MODE

setUpdateMode

public void setUpdateMode(int aMode)
                   throws PropertyVetoException
Set the update mode. Setting the update changes the fields displayed and controls whether they are view only or editable.

Parameters:
aMode - the new update mode
Throws:
PropertyVetoException - if the mode is invalid.

addNotify

public void addNotify()
Override default behavior to initialize the help system when this method is invoked.


checkRequiredFields

protected boolean checkRequiredFields()
Check if required fields have valid values.

Returns:
true if the required fields have valid values.

enableCreateFields

protected void enableCreateFields()
Enable appropriate fields for creating a part.


enableViewFields

protected void enableViewFields()
Enable appropriate fields for viewing a Part.


enableUpdateFields

protected void enableUpdateFields()
Enable appropriate fields for updating a part.


setPartItem

public void setPartItem()
Set the PartItem to display and manipulate. This is a callback routine invoked by an internal thread.

Overrides:
setPartItem in class HelperPanel

save

public void save()
Start a new thread to save the modified part.


saveInThread

protected void saveInThread()
Perform the actions to save the modified part.

Overrides:
saveInThread in class HelperPanel

initializeHelp

public void initializeHelp()
Initialize the help system.

Overrides:
initializeHelp in class HelperPanel

propertyChange

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

Specified by:
propertyChange in interface PropertyChangeListener

updateColors

protected void updateColors(Color color)

initialize

protected void initialize()

setDefaultPanel

protected void setDefaultPanel(int default_panel)
Set the default panel.


showDefaultPanel

protected void showDefaultPanel()
Show the default panel.


showContentsPanel

protected void showContentsPanel()

contentsButton_actionPerformed

protected void contentsButton_actionPerformed(jclass.bwt.JCActionEvent event)

showUsesPanel

protected void showUsesPanel()

usesButton_actionPerformed

protected void usesButton_actionPerformed(jclass.bwt.JCActionEvent event)

referencesButton_actionPerformed

protected void referencesButton_actionPerformed(jclass.bwt.JCActionEvent event)

showReferencesPanel

protected void showReferencesPanel()

showDescribedByPanel

protected void showDescribedByPanel()

okButton_KeyPress

void okButton_KeyPress(KeyEvent event)

cancelButton_KeyPress

void cancelButton_KeyPress(KeyEvent event)

saveButton_KeyPress

void saveButton_KeyPress(KeyEvent event)

beanAttributesPanel_KeyPress

void beanAttributesPanel_KeyPress(KeyEvent event)

okButton_Action

protected void okButton_Action(ActionEvent event)

processOkCommand

protected void processOkCommand()

saveButton_Action

protected void saveButton_Action(ActionEvent event)

processSaveCommand

protected void processSaveCommand()

cancelButton_Action

protected void cancelButton_Action(ActionEvent event)

processCancelCommand

protected void processCancelCommand()

helpButton_Action

protected void helpButton_Action(ActionEvent event)

editAttributesButton_Action

protected void editAttributesButton_Action(ActionEvent event)

checkFolderLocation

protected Folder checkFolderLocation()
                              throws WTException
Throws:
WTException

localize

protected void localize()
Overrides:
localize in class HelperPanel

setMaxLengths

protected void setMaxLengths()

usesButton_mousePressed

protected void usesButton_mousePressed(MouseEvent event)

referencesButton_mousePressed

protected void referencesButton_mousePressed(MouseEvent event)

contentsButton_mousePressed

protected void contentsButton_mousePressed(MouseEvent event)

trace

protected void trace(String message)

describedByButton_actionPerformed

void describedByButton_actionPerformed(jclass.bwt.JCActionEvent event)

describedByButton_mousePressed

void describedByButton_mousePressed(MouseEvent event)

getShowContents

protected boolean getShowContents()
Return the value of show contents.


getDisplayLabel

public static String getDisplayLabel(Class class_name,
                                     String attribute,
                                     WTContext context)

getBeansLifeCycleRB

protected ResourceBundle getBeansLifeCycleRB()