com.ptc.wgmecad
Class BomControl

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.ptc.wgmecad.GriddedPanel
                      extended bycom.ptc.wgmecad.BomControl
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class BomControl
extends GriddedPanel

See Also:
Serialized Form

Nested Class Summary
protected  class BomControl.tabChangeListener
           
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
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
private static ArgumentMap argMap
           
private static ArgumentRegister argReg
           
private static ABOMGrid BOMGridTab
           
private static String BOMGridTitle
           
private  BomReportControl BOMRepControl
           
private  CCAWGMMain ccawgm
           
private  ImageIcon contentImage
           
private  String defaultRevision
           
private  DesignAll design
           
private  boolean editable
           
private  String epmDocType
           
private static int indexBOMGridTab
           
private static BomControl instance
           
private static boolean isBOMGridTab
           
private  JPanel jAllPanel
           
private  JPanel jDataPanel
           
private  JPanel jjStatusPanel
           
private  JLabel jSchematicDescriptionLabel
           
private  JTextField jSchematicDescriptionText
           
private  JLabel jSchematicNameLabel
           
private  JTextField jSchematicNameText
           
private  JLabel jSchematicNumberLabel
           
private  JTextField jSchematicNumberText
           
private  JPanel jSchematicPanel
           
private  JLabel jSchematicRevisionLabel
           
private  JTextField jSchematicRevisionText
           
private  JPanel jWindchillPanel
           
private  ImageIcon lockImage
           
(package private) static org.apache.log4j.Logger logger
           
private static int numBOMTabs
           
(package private) static Color originalBackgroundColor
           
private  boolean queryForCheckedOut
           
(package private)  Set registeredTabs
           
private static SecondaryArgumentMap sargMap
           
private static SecondaryArgumentRegister sargReg
           
private  boolean schematicDescriptionEdit
           
private  boolean schematicNameEdit
           
private  boolean schematicNunberEdit
           
private  boolean schematicRevisionEdit
           
private  SchematicLocationControl schProjLocControl
           
private  ImageIcon searchImage
           
private  DesignStatusControl status
           
private  JTabbedPane tab
           
private  ImageIcon unlockImage
           
private  ImageIcon variantImage
           
private  EditVDFDialog vdfDialog
           
 
Fields inherited from class com.ptc.wgmecad.GriddedPanel
 
Fields inherited from class javax.swing.JPanel
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_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
BomControl()
           
BomControl(DesignAll design, CCAWGMMain ccawgm)
           
BomControl(DesignAll design, CCAWGMMain ccawgm, boolean editable, boolean includeTeam, boolean queryForCheckedOut)
          Creates new form BomControl2
 
Method Summary
private  void addOKListener()
           
private  void clearGUIValues()
           
 DesignAll getDesign()
           
static BomControl getInstance()
           
private  void init()
           
protected  void initComponents()
           
 void onDesignChange()
           
 void onNew()
           
 void onOK()
           
private  void onStateChanged(ChangeEvent e)
           
 void removeBOMTabs()
           
 void removeVariants()
           
 void setDesign(DesignAll design)
           
private  void setupEditability(boolean enable)
           
 void setUploadDisplay()
           
private  void switchToTab(Component tabComp)
          Changes to the tab with the component that is passed in.
private  void updateDesignEntry()
          This updates the status of a design, querying Windchill to get state.
private  void updateDesignFromGUIValues()
           
private  void updateDesignStatus()
          This updates the status of a design, querying Windchill to get state.
private  void updateGUIValues()
           
 
Methods inherited from class com.ptc.wgmecad.GriddedPanel
addAnchoredComponent, addAnchoredComponent, addAnchoredFilledComponent, addComponent, addComponent, addComponent, addFilledComponent, addFilledComponent, addFilledComponent
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, 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

design

private DesignAll design

ccawgm

private CCAWGMMain ccawgm

editable

private boolean editable

defaultRevision

private String defaultRevision

queryForCheckedOut

private boolean queryForCheckedOut

status

private DesignStatusControl status

BOMRepControl

private BomReportControl BOMRepControl

schProjLocControl

private SchematicLocationControl schProjLocControl

argMap

private static ArgumentMap argMap

argReg

private static ArgumentRegister argReg

sargMap

private static SecondaryArgumentMap sargMap

sargReg

private static SecondaryArgumentRegister sargReg

searchImage

private ImageIcon searchImage

lockImage

private ImageIcon lockImage

unlockImage

private ImageIcon unlockImage

contentImage

private ImageIcon contentImage

variantImage

private ImageIcon variantImage

epmDocType

private String epmDocType

schematicNameEdit

private boolean schematicNameEdit

schematicNunberEdit

private boolean schematicNunberEdit

schematicRevisionEdit

private boolean schematicRevisionEdit

schematicDescriptionEdit

private boolean schematicDescriptionEdit

jjStatusPanel

private JPanel jjStatusPanel

jSchematicPanel

private JPanel jSchematicPanel

jDataPanel

private JPanel jDataPanel

jWindchillPanel

private JPanel jWindchillPanel

jAllPanel

private JPanel jAllPanel

jSchematicNameLabel

private JLabel jSchematicNameLabel

jSchematicNameText

private JTextField jSchematicNameText

jSchematicNumberLabel

private JLabel jSchematicNumberLabel

jSchematicNumberText

private JTextField jSchematicNumberText

jSchematicRevisionLabel

private JLabel jSchematicRevisionLabel

jSchematicRevisionText

private JTextField jSchematicRevisionText

jSchematicDescriptionLabel

private JLabel jSchematicDescriptionLabel

jSchematicDescriptionText

private JTextField jSchematicDescriptionText

vdfDialog

private EditVDFDialog vdfDialog

instance

private static BomControl instance

BOMGridTitle

private static String BOMGridTitle

BOMGridTab

private static ABOMGrid BOMGridTab

isBOMGridTab

private static boolean isBOMGridTab

indexBOMGridTab

private static int indexBOMGridTab

numBOMTabs

private static int numBOMTabs

logger

static org.apache.log4j.Logger logger

tab

private JTabbedPane tab

registeredTabs

Set registeredTabs

originalBackgroundColor

static Color originalBackgroundColor
Constructor Detail

BomControl

public BomControl(DesignAll design,
                  CCAWGMMain ccawgm,
                  boolean editable,
                  boolean includeTeam,
                  boolean queryForCheckedOut)
Creates new form BomControl2


BomControl

public BomControl(DesignAll design,
                  CCAWGMMain ccawgm)

BomControl

public BomControl()
Method Detail

getInstance

public static BomControl getInstance()

init

private void init()

onStateChanged

private void onStateChanged(ChangeEvent e)

switchToTab

private void switchToTab(Component tabComp)
Changes to the tab with the component that is passed in. If the component is not found, it does nothing.


initComponents

protected void initComponents()

removeBOMTabs

public void removeBOMTabs()

removeVariants

public void removeVariants()

setUploadDisplay

public void setUploadDisplay()

onNew

public void onNew()

onDesignChange

public void onDesignChange()

addOKListener

private void addOKListener()

onOK

public void onOK()

setupEditability

private void setupEditability(boolean enable)

updateGUIValues

private void updateGUIValues()

clearGUIValues

private void clearGUIValues()

updateDesignFromGUIValues

private void updateDesignFromGUIValues()

updateDesignEntry

private void updateDesignEntry()
This updates the status of a design, querying Windchill to get state. fix: update this for board and schematic status checking


updateDesignStatus

private void updateDesignStatus()
This updates the status of a design, querying Windchill to get state. fix: update this for board and schematic status checking


getDesign

public DesignAll getDesign()

setDesign

public void setDesign(DesignAll design)