wt.clients.prodmgmt
Class OccurrencesDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended bywt.clients.prodmgmt.OccurrencesDialog
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class OccurrencesDialog
extends Dialog

See Also:
Serialized Form

Nested Class Summary
(package private)  class OccurrencesDialog.EventHandlerThread
           
(package private)  class OccurrencesDialog.SymAction
           
(package private)  class OccurrencesDialog.SymItem
           
(package private)  class OccurrencesDialog.SymKey
           
(package private)  class OccurrencesDialog.SymMouse
           
(package private)  class OccurrencesDialog.SymWindow
           
 
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
protected static int ADD_OCCURRENCE
           
(package private)  Button addButton
           
protected  PartItem assemblyPartItem
           
(package private)  Panel buttonPanel
           
static int CANCEL
           
(package private)  Button cancelButton
           
protected  int command
           
protected static int EDIT_OCCURRENCE
           
(package private)  Button editButton
           
protected  Vector existingReferenceDesignators
           
(package private)  boolean fComponentsAdjusted
           
static String HELP_KEY
           
static String HELP_TARGET
           
(package private)  Button helpButton
           
protected  HelpContext helpContext
           
protected  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 horizontalLine3
           
protected static int ID_COLUMN
           
protected  int initialOccurrenceCnt
           
protected  int maxOccurrences
           
(package private)  Label nameLabel
           
(package private)  Label nameValueLabel
           
(package private)  Label numberLabel
           
(package private)  Label numberValueLabel
           
(package private)  Label occurrenceDetailsLabel
           
(package private)  Panel occurrenceDetailsPanel
           
protected  Vector occurrences
           
(package private)  WTMultiList occurrencesList
           
(package private)  Panel occurrencesPanel
           
static int OK
           
(package private)  Button okButton
           
(package private)  Label partDetailsLabel
           
protected  PartItem partItem
           
(package private)  Panel partLabelPanel
           
(package private)  Label quantityLabel
           
(package private)  Label quantityValueLabel
           
protected static int REF_DES_COLUMN
           
protected static int REMOVE_OCCURRENCE
           
(package private)  Button removeButton
           
protected static String RESOURCE
           
protected static int SHOW_HELP
           
(package private)  Panel tableButtonPanel
           
protected  ThreadGroup threadGroup
           
protected static String UNNAMED
           
protected  UsageInterfaceItem usageItem
           
(package private)  Label usedInLabel
           
(package private)  Label usedInValueLabel
           
protected static boolean VERBOSE
           
 
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
OccurrencesDialog(Frame parent)
           
OccurrencesDialog(Frame parent, boolean modal)
           
OccurrencesDialog(Frame parent, String title, boolean modal)
           
 
Method Summary
(package private)  void addButton_ActionPerformed(ActionEvent event)
           
(package private)  void addButton_KeyPressed(KeyEvent event)
           
 void addNotify()
           
protected  void addToList(PartUsesOccurrenceItem item, int index)
           
(package private)  void cancelButton_ActionPerformed(ActionEvent event)
           
(package private)  void cancelButton_KeyPressed(KeyEvent event)
           
(package private)  void editButton_ActionPerformed(ActionEvent event)
           
(package private)  void editButton_KeyPressed(KeyEvent event)
           
protected  void enableAddButton()
           
protected  void enableButtons()
           
protected  void enableOkButton()
           
 int getCommand()
           
protected  WTContext getContext()
           
protected  int getIndexOf(String id)
           
protected  String getLocalizedMessage(String key, Object[] params)
           
 Vector getOccurrences()
           
 Frame getParentFrame()
           
protected  String[] getReferenceDesignators()
           
protected  ThreadGroup getThreadGroup()
           
protected  void handleAddOccurrence()
           
protected  void handleEditOccurrence()
           
protected  void handleRemoveOccurrence()
           
(package private)  void helpButton_ActionPerformed(ActionEvent event)
           
(package private)  void helpButton_KeyPressed(KeyEvent event)
           
private  void initHelpSystem()
          Initialize the help system used in displaying tooltips and online help.
protected  void initializeMultiList()
           
protected  void localize()
           
(package private)  void OccurrencesDialog_WindowClosing(WindowEvent event)
           
(package private)  void occurrencesList_itemStateChanged(ItemEvent event)
           
(package private)  void occurrencesList_keyPressed(KeyEvent event)
           
(package private)  void occurrencesList_mouseClicked(MouseEvent event)
           
(package private)  void okButton_ActionPerformed(ActionEvent event)
           
(package private)  void okButton_KeyPressed(KeyEvent event)
           
protected  void populateOccurrences()
           
protected  void processAddCommand()
           
protected  void processCancelCommand()
           
protected  void processEditCommand()
           
protected  void processHelpCommand()
           
protected  void processOccurrenceSelected()
           
protected  void processOkCommand()
           
protected  void processRemoveCommand()
           
(package private)  void removeButton_ActionPerformed(ActionEvent event)
           
(package private)  void removeButton_KeyPressed(KeyEvent event)
           
 void setParentAssembly(WTPart part)
           
 void setParentAssemblyItem(PartItem assembly)
           
 void setUsageInterfaceItem(UsageInterfaceItem usage_item)
           
 void setUsages(Vector usages)
           
 void setVisible(boolean b)
          Shows or hides the component depending on the boolean flag b.
protected  void showMessageDialog(String message, boolean modal, Exception e)
           
protected  void showOnlineHelp()
           
protected  void updateFields()
           
 
Methods inherited from class java.awt.Dialog
dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated, show
 
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, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

threadGroup

protected ThreadGroup threadGroup

partItem

protected PartItem partItem

assemblyPartItem

protected PartItem assemblyPartItem

occurrences

protected Vector occurrences

usageItem

protected UsageInterfaceItem usageItem

maxOccurrences

protected int maxOccurrences

command

protected int command

helpSystem

protected HelpSystem helpSystem

helpContext

protected HelpContext helpContext

initialOccurrenceCnt

protected int initialOccurrenceCnt

existingReferenceDesignators

protected Vector existingReferenceDesignators

RESOURCE

protected static String RESOURCE

REF_DES_COLUMN

protected static int REF_DES_COLUMN

ID_COLUMN

protected static int ID_COLUMN

UNNAMED

protected static String UNNAMED

VERBOSE

protected static boolean VERBOSE

ADD_OCCURRENCE

protected static final int ADD_OCCURRENCE
See Also:
Constant Field Values

EDIT_OCCURRENCE

protected static final int EDIT_OCCURRENCE
See Also:
Constant Field Values

REMOVE_OCCURRENCE

protected static final int REMOVE_OCCURRENCE
See Also:
Constant Field Values

SHOW_HELP

protected static final int SHOW_HELP
See Also:
Constant Field Values

OK

public static final int OK
See Also:
Constant Field Values

CANCEL

public static final int CANCEL
See Also:
Constant Field Values

HELP_TARGET

public static final String HELP_TARGET
See Also:
Constant Field Values

HELP_KEY

public static final String HELP_KEY
See Also:
Constant Field Values

fComponentsAdjusted

boolean fComponentsAdjusted

partLabelPanel

Panel partLabelPanel

partDetailsLabel

Label partDetailsLabel

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

nameLabel

Label nameLabel

nameValueLabel

Label nameValueLabel

numberLabel

Label numberLabel

numberValueLabel

Label numberValueLabel

usedInLabel

Label usedInLabel

usedInValueLabel

Label usedInValueLabel

quantityLabel

Label quantityLabel

quantityValueLabel

Label quantityValueLabel

occurrenceDetailsPanel

Panel occurrenceDetailsPanel

occurrenceDetailsLabel

Label occurrenceDetailsLabel

horizontalLine2

symantec.itools.awt.shape.HorizontalLine horizontalLine2

occurrencesPanel

Panel occurrencesPanel

occurrencesList

WTMultiList occurrencesList

tableButtonPanel

Panel tableButtonPanel

addButton

Button addButton

editButton

Button editButton

removeButton

Button removeButton

horizontalLine3

symantec.itools.awt.shape.HorizontalLine horizontalLine3

buttonPanel

Panel buttonPanel

okButton

Button okButton

cancelButton

Button cancelButton

helpButton

Button helpButton
Constructor Detail

OccurrencesDialog

public OccurrencesDialog(Frame parent)

OccurrencesDialog

public OccurrencesDialog(Frame parent,
                         boolean modal)

OccurrencesDialog

public OccurrencesDialog(Frame parent,
                         String title,
                         boolean modal)
Method Detail

addNotify

public void addNotify()

setVisible

public void setVisible(boolean b)
Shows or hides the component depending on the boolean flag b.

Parameters:
b - if true, show the component; otherwise, hide the component.
See Also:
Component.isVisible()

getContext

protected WTContext getContext()

localize

protected void localize()

initializeMultiList

protected void initializeMultiList()

OccurrencesDialog_WindowClosing

void OccurrencesDialog_WindowClosing(WindowEvent event)

setParentAssemblyItem

public void setParentAssemblyItem(PartItem assembly)

setParentAssembly

public void setParentAssembly(WTPart part)

getThreadGroup

protected ThreadGroup getThreadGroup()

addButton_ActionPerformed

void addButton_ActionPerformed(ActionEvent event)

processAddCommand

protected void processAddCommand()

handleAddOccurrence

protected void handleAddOccurrence()

handleEditOccurrence

protected void handleEditOccurrence()

handleRemoveOccurrence

protected void handleRemoveOccurrence()

addToList

protected void addToList(PartUsesOccurrenceItem item,
                         int index)

getParentFrame

public Frame getParentFrame()

getLocalizedMessage

protected String getLocalizedMessage(String key,
                                     Object[] params)

cancelButton_ActionPerformed

void cancelButton_ActionPerformed(ActionEvent event)

processCancelCommand

protected void processCancelCommand()

occurrencesList_itemStateChanged

void occurrencesList_itemStateChanged(ItemEvent event)

processOccurrenceSelected

protected void processOccurrenceSelected()

removeButton_ActionPerformed

void removeButton_ActionPerformed(ActionEvent event)

processRemoveCommand

protected void processRemoveCommand()

getIndexOf

protected int getIndexOf(String id)

getReferenceDesignators

protected String[] getReferenceDesignators()

addButton_KeyPressed

void addButton_KeyPressed(KeyEvent event)

editButton_ActionPerformed

void editButton_ActionPerformed(ActionEvent event)

processEditCommand

protected void processEditCommand()

editButton_KeyPressed

void editButton_KeyPressed(KeyEvent event)

removeButton_KeyPressed

void removeButton_KeyPressed(KeyEvent event)

setUsageInterfaceItem

public void setUsageInterfaceItem(UsageInterfaceItem usage_item)

updateFields

protected void updateFields()

populateOccurrences

protected void populateOccurrences()

enableAddButton

protected void enableAddButton()

enableButtons

protected void enableButtons()

getOccurrences

public Vector getOccurrences()

getCommand

public int getCommand()

okButton_ActionPerformed

void okButton_ActionPerformed(ActionEvent event)

processOkCommand

protected void processOkCommand()

occurrencesList_keyPressed

void occurrencesList_keyPressed(KeyEvent event)

occurrencesList_mouseClicked

void occurrencesList_mouseClicked(MouseEvent event)

initHelpSystem

private void initHelpSystem()
Initialize the help system used in displaying tooltips and online help. The help system is initialized so that all online help files are displayed in the same browser window.

See Also:
HelpContext, HelpSystem

showMessageDialog

protected void showMessageDialog(String message,
                                 boolean modal,
                                 Exception e)

showOnlineHelp

protected void showOnlineHelp()

processHelpCommand

protected void processHelpCommand()

helpButton_ActionPerformed

void helpButton_ActionPerformed(ActionEvent event)

helpButton_KeyPressed

void helpButton_KeyPressed(KeyEvent event)

okButton_KeyPressed

void okButton_KeyPressed(KeyEvent event)

cancelButton_KeyPressed

void cancelButton_KeyPressed(KeyEvent event)

enableOkButton

protected void enableOkButton()

setUsages

public void setUsages(Vector usages)