wt.clients.prodmgmt
Class ChooseOccurrenceDialog

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

public class ChooseOccurrenceDialog
extends Dialog

See Also:
Serialized Form

Nested Class Summary
(package private)  class ChooseOccurrenceDialog.EventHandlerThread
           
(package private)  class ChooseOccurrenceDialog.SymAction
           
(package private)  class ChooseOccurrenceDialog.SymItem
           
(package private)  class ChooseOccurrenceDialog.SymKey
           
(package private)  class ChooseOccurrenceDialog.SymMouse
           
(package private)  class ChooseOccurrenceDialog.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
(package private)  Panel buttonPanel
           
static int CANCEL
           
(package private)  Button cancelButton
           
protected  int command
           
(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 horizontalLine3
           
protected static int ID_COLUMN
           
(package private)  Panel messagePanel
           
(package private)  symantec.itools.awt.WrappingLabel messageWrappingLabel
           
protected  int minimumToRemove
           
protected  Object multiListLock
           
protected  Quantity newQuantity
           
protected  int occurrenceCount
           
protected  Vector occurrences
           
(package private)  WTMultiList occurrencesList
           
static int OK
           
(package private)  Button okButton
           
protected static int REF_DES_COLUMN
           
protected static int REMOVE_OCCURRENCES
           
protected static String RESOURCE
           
protected static int SHOW_HELP
           
protected static int SHOW_OCCURRENCES
           
protected  ThreadGroup threadGroup
           
protected static String UNNAMED
           
protected  UsageInterfaceItem usageItem
           
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
ChooseOccurrenceDialog(Frame parent)
           
ChooseOccurrenceDialog(Frame parent, boolean modal)
           
ChooseOccurrenceDialog(Frame parent, String title, boolean modal)
           
 
Method Summary
 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 ChooseOccurrenceDialog_WindowClosing(WindowEvent event)
           
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  ThreadGroup getThreadGroup()
           
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 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)
           
protected  void populateOccurrences()
           
protected  void processCancelCommand()
           
protected  void processHelpCommand()
           
protected  void processOccurrenceSelected()
           
protected  void processOkCommand()
           
protected  void setDisplayMessage()
           
 void setMinimumToRemove(int minimum)
           
 void setQuantity(Quantity quantity)
           
 void setUsageInterfaceItem(UsageInterfaceItem usage_item)
           
 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()
           
 
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

occurrences

protected Vector occurrences

usageItem

protected UsageInterfaceItem usageItem

command

protected int command

helpSystem

protected HelpSystem helpSystem

helpContext

protected HelpContext helpContext

multiListLock

protected Object multiListLock

minimumToRemove

protected int minimumToRemove

occurrenceCount

protected int occurrenceCount

newQuantity

protected Quantity newQuantity

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

SHOW_OCCURRENCES

protected static final int SHOW_OCCURRENCES
See Also:
Constant Field Values

SHOW_HELP

protected static final int SHOW_HELP
See Also:
Constant Field Values

REMOVE_OCCURRENCES

protected static final int REMOVE_OCCURRENCES
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

messagePanel

Panel messagePanel

messageWrappingLabel

symantec.itools.awt.WrappingLabel messageWrappingLabel

occurrencesList

WTMultiList occurrencesList

horizontalLine3

symantec.itools.awt.shape.HorizontalLine horizontalLine3

buttonPanel

Panel buttonPanel

okButton

Button okButton

cancelButton

Button cancelButton

helpButton

Button helpButton
Constructor Detail

ChooseOccurrenceDialog

public ChooseOccurrenceDialog(Frame parent)

ChooseOccurrenceDialog

public ChooseOccurrenceDialog(Frame parent,
                              boolean modal)

ChooseOccurrenceDialog

public ChooseOccurrenceDialog(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()

ChooseOccurrenceDialog_WindowClosing

void ChooseOccurrenceDialog_WindowClosing(WindowEvent event)

localize

protected void localize()

initializeMultiList

protected void initializeMultiList()

getContext

protected WTContext getContext()

getThreadGroup

protected ThreadGroup getThreadGroup()

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)

getLocalizedMessage

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

getParentFrame

public Frame getParentFrame()

showOnlineHelp

protected void showOnlineHelp()

processHelpCommand

protected void processHelpCommand()

helpButton_ActionPerformed

void helpButton_ActionPerformed(ActionEvent event)

helpButton_KeyPressed

void helpButton_KeyPressed(KeyEvent event)

setUsageInterfaceItem

public void setUsageInterfaceItem(UsageInterfaceItem usage_item)

addToList

protected void addToList(PartUsesOccurrenceItem item,
                         int index)

populateOccurrences

protected void populateOccurrences()

cancelButton_ActionPerformed

void cancelButton_ActionPerformed(ActionEvent event)

processCancelCommand

protected void processCancelCommand()

getCommand

public int getCommand()

getOccurrences

public Vector getOccurrences()

cancelButton_KeyPressed

void cancelButton_KeyPressed(KeyEvent event)

processOccurrenceSelected

protected void processOccurrenceSelected()

occurrencesList_itemStateChanged

void occurrencesList_itemStateChanged(ItemEvent event)

handleRemoveOccurrence

protected void handleRemoveOccurrence()

getIndexOf

protected int getIndexOf(String id)

okButton_ActionPerformed

void okButton_ActionPerformed(ActionEvent event)

processOkCommand

protected void processOkCommand()

occurrencesList_mouseClicked

void occurrencesList_mouseClicked(MouseEvent event)

occurrencesList_keyPressed

void occurrencesList_keyPressed(KeyEvent event)

setMinimumToRemove

public void setMinimumToRemove(int minimum)

enableOkButton

protected void enableOkButton()

setDisplayMessage

protected void setDisplayMessage()

setQuantity

public void setQuantity(Quantity quantity)