wt.clients.replication.unit
Class UnitPartPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.replication.unit.UnitHelperPanel
                  extended bywt.clients.replication.unit.UnitPartPanel
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class UnitPartPanel
extends UnitHelperPanel

UnitPartPanel displays the uses relationships for a part.

Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
(package private)  class UnitPartPanel.SymAction
           
(package private)  class UnitPartPanel.SymComponent
           
(package private)  class UnitPartPanel.SymFocus
           
(package private)  class UnitPartPanel.SymItem
           
(package private)  class UnitPartPanel.SymPropertyChange
           
 
Nested classes inherited from class wt.clients.replication.unit.UnitHelperPanel
UnitHelperPanel.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)  Panel actionLayoutPanel
           
(package private)  Panel actionPanel
           
(package private)  symantec.itools.awt.LabelButton addButton
           
(package private)  Panel buttonPanel
           
private  Font crossLocaleFont
           
(package private)  symantec.itools.awt.WrappingLabel findingLabel
           
static int ID_COLUMN
           
static int MANAGED_BY_COLUMN
           
static int NAME_COUMN
           
static int NUMBER_COLUMN
           
(package private)  Panel progressPanel
           
static int QTY_COLUMN
           
(package private)  symantec.itools.awt.WrappingLabel qtyLabel
           
(package private)  Spinner qtyListSpinner
           
(package private)  Panel qtyPanel
           
(package private)  symantec.itools.awt.LabelButton removeButton
           
(package private)  symantec.itools.awt.WrappingLabel titleLabel
           
(package private)  Panel titlePanel
           
static int UNIT_COLUMN
           
(package private)  EnumeratedChoice unitChoice
           
(package private)  symantec.itools.awt.WrappingLabel unitLabel
           
(package private)  Panel unitPanel
           
protected  boolean updateMode
           
(package private)  Panel updateUsagePanel
           
protected  UnitUsesInterfaceList usesList
           
(package private)  WTMultiList usesMultiList
           
(package private)  symantec.itools.awt.BorderPanel usesPartPanel
           
(package private)  symantec.itools.awt.LabelButton viewButton
           
(package private)  Panel workingPanel
           
 
Fields inherited from class wt.clients.replication.unit.UnitHelperPanel
resource, RESOURCE, SAVE, SET_UNIT_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
UnitPartPanel()
          Create the panel.
 
Method Summary
 void addHelpListener(PropertyChangeListener pcl)
           
 void addNotify()
          Override default behavior to initialize the help system when this method is invoked.
(package private)  void addUsesButton_Action(ActionEvent event)
          Launch a WTChooser to search for new parts to use.
 String[] filterMultiList(String[] sa)
           
 QuantityUnit getSelectedUnit()
          Get the selected unit from the unit choice.
 QuantityUnit getSelectedUnit(int row)
          Get the unit for the usage item at the specified row
 void initializeHelp()
          Initialize the help system.
protected  void localize()
           
(package private)  void qtyListSpinner_propertyChange(PropertyChangeEvent event)
           
(package private)  void quantityListSpinner_actionPerformed(ActionEvent event)
           
(package private)  void removeUsesButton_Action(ActionEvent event)
           
 boolean save()
          Save any changes.
 void setUnitItem()
          This method is invoked by the WorkThread to initialize values based on the contained part item.
 void setUpdateMode(boolean update_mode)
          Set the update mode for the panel.
protected  void setValues()
           
(package private)  void unitChoice_ItemStateChanged(ItemEvent event)
           
(package private)  void UnitPartPanel_GotFocus(FocusEvent event)
           
(package private)  void usesMultiList_actionPerformed(ActionEvent event)
           
(package private)  void usesMultiList_itemStateChanged(ItemEvent event)
           
 void viewSelectedItem()
          Launch the view task for the seleted item in the list.
(package private)  void viewUsesButton_Action(ActionEvent event)
           
(package private)  void WTMultiList1_componentResized(ComponentEvent event)
           
 
Methods inherited from class wt.clients.replication.unit.UnitHelperPanel
getApplet, getContext, getHelpBundleName, getHelpContext, getHelpSystem, getLabelsRB, getLocalizedMessage, getLocalizedValue, getParentFrame, getThreadGroup, getUnitItem, initResources, saveInThread, setApplet, setContext, setHelpContext, setHelpSystem, setUnitItem, 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

ID_COLUMN

public static final int ID_COLUMN
See Also:
Constant Field Values

NUMBER_COLUMN

public static final int NUMBER_COLUMN
See Also:
Constant Field Values

NAME_COUMN

public static final int NAME_COUMN
See Also:
Constant Field Values

QTY_COLUMN

public static final int QTY_COLUMN
See Also:
Constant Field Values

UNIT_COLUMN

public static final int UNIT_COLUMN
See Also:
Constant Field Values

MANAGED_BY_COLUMN

public static final int MANAGED_BY_COLUMN
See Also:
Constant Field Values

usesList

protected UnitUsesInterfaceList usesList

updateMode

protected boolean updateMode

crossLocaleFont

private Font crossLocaleFont

progressPanel

Panel progressPanel

findingLabel

symantec.itools.awt.WrappingLabel findingLabel

workingPanel

Panel workingPanel

titlePanel

Panel titlePanel

titleLabel

symantec.itools.awt.WrappingLabel titleLabel

usesPartPanel

symantec.itools.awt.BorderPanel usesPartPanel

usesMultiList

WTMultiList usesMultiList

actionPanel

Panel actionPanel

actionLayoutPanel

Panel actionLayoutPanel

updateUsagePanel

Panel updateUsagePanel

qtyPanel

Panel qtyPanel

qtyLabel

symantec.itools.awt.WrappingLabel qtyLabel

qtyListSpinner

Spinner qtyListSpinner

unitPanel

Panel unitPanel

unitLabel

symantec.itools.awt.WrappingLabel unitLabel

unitChoice

EnumeratedChoice unitChoice

buttonPanel

Panel buttonPanel

viewButton

symantec.itools.awt.LabelButton viewButton

addButton

symantec.itools.awt.LabelButton addButton

removeButton

symantec.itools.awt.LabelButton removeButton
Constructor Detail

UnitPartPanel

public UnitPartPanel()
Create the panel.

Method Detail

filterMultiList

public String[] filterMultiList(String[] sa)

setUnitItem

public void setUnitItem()
This method is invoked by the WorkThread to initialize values based on the contained part item.

Overrides:
setUnitItem in class UnitHelperPanel

setUpdateMode

public void setUpdateMode(boolean update_mode)
Set the update mode for the panel.

Overrides:
setUpdateMode in class UnitHelperPanel
Parameters:
update_mode - if true, allow updates

save

public boolean save()
             throws WTException
Save any changes.

Returns:
true if save was successfull.
Throws:
WTException

setValues

protected void setValues()

getSelectedUnit

public QuantityUnit getSelectedUnit(int row)
Get the unit for the usage item at the specified row

Parameters:
row - the row in the multilist
Returns:
the quantity unit for the specified row

localize

protected void localize()
Overrides:
localize in class UnitHelperPanel

initializeHelp

public void initializeHelp()
Initialize the help system.

Overrides:
initializeHelp in class UnitHelperPanel

viewSelectedItem

public void viewSelectedItem()
Launch the view task for the seleted item in the list.


addNotify

public void addNotify()
Description copied from class: UnitHelperPanel
Override default behavior to initialize the help system when this method is invoked.

Overrides:
addNotify in class UnitHelperPanel

addUsesButton_Action

void addUsesButton_Action(ActionEvent event)
Launch a WTChooser to search for new parts to use.

Parameters:
event - the action event

getSelectedUnit

public QuantityUnit getSelectedUnit()
Get the selected unit from the unit choice.

Returns:
the selected unit

removeUsesButton_Action

void removeUsesButton_Action(ActionEvent event)

viewUsesButton_Action

void viewUsesButton_Action(ActionEvent event)

quantityListSpinner_actionPerformed

void quantityListSpinner_actionPerformed(ActionEvent event)

usesMultiList_itemStateChanged

void usesMultiList_itemStateChanged(ItemEvent event)

usesMultiList_actionPerformed

void usesMultiList_actionPerformed(ActionEvent event)

unitChoice_ItemStateChanged

void unitChoice_ItemStateChanged(ItemEvent event)

UnitPartPanel_GotFocus

void UnitPartPanel_GotFocus(FocusEvent event)

addHelpListener

public void addHelpListener(PropertyChangeListener pcl)

qtyListSpinner_propertyChange

void qtyListSpinner_propertyChange(PropertyChangeEvent event)

WTMultiList1_componentResized

void WTMultiList1_componentResized(ComponentEvent event)