com.ptc.wgmecad
Class SchematicControl

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.SchematicControl
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class SchematicControl
extends GriddedPanel

See Also:
Serialized Form

Nested Class Summary
protected  class SchematicControl.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  CCAWGMMain ccawgm
           
private  ImageIcon contentImage
           
private  String defaultRevision
           
private  DesignAll design
           
 String ecadTool
           
private  boolean editable
           
(package private)  boolean enable
           
private  String epmDocType
           
private  GriddedPanel extraPanel
           
private  ImageIcon fileImage
           
private  GriddedPanel FileSelectorPanel
           
 boolean genEDA
           
 boolean genOK
           
 boolean genOKcheck
           
private  JCheckBox include
           
private static SchematicControl instance
           
private  JLabel jcageCodeLabel
           
private static JSortedCombo jcageCodeList
           
private  JLabel jFileSelectorLabel
           
private  JSortedCombo jFileSelectorText
           
private  JLabel jOhioGenLabel
           
private  JLabel jOhioLabel
           
private  JLabel jSchematicDescriptionLabel
           
private  JTextField jSchematicDescriptionText
           
private  JLabel jSchematicNameLabel
           
private  JTextField jSchematicNameText
           
private  JLabel jSchematicNumberLabel
           
private  JTextField jSchematicNumberText
           
private  JLabel jSchematicRevisionLabel
           
private  JTextField jSchematicRevisionText
           
private  JLabel jSpacerLabel
           
 boolean launchOhio
           
(package private) static org.apache.log4j.Logger logger
           
private  GriddedPanel numberPanel
           
static JButton ohioButton
           
private  ImageIcon ohioImage
           
private  JCheckBox ohioInclude
           
private  GriddedPanel ohioPanel
           
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
           
 String seledaFileName
           
 String seledaFilePath
           
 String selFile
           
private  DesignStatusControl status
           
private  JTabbedPane tab
           
private  ImageIcon variantImage
           
private  Thread viewThread
           
 
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
SchematicControl()
           
SchematicControl(DesignAll design, CCAWGMMain ccawgm)
           
SchematicControl(DesignAll design, CCAWGMMain ccawgm, boolean editable, boolean includeTeam, boolean queryForCheckedOut)
          Creates new form SchematicControl2
 
Method Summary
private  void addOKListener()
           
private  void clearGUIValues()
           
private  GriddedPanel createSchDataPanel()
           
 boolean getEnabledState()
           
 boolean getIncludeState()
           
static SchematicControl getInstance()
           
 boolean getOhioIncludeState()
           
 Thread getRDThread()
           
private  void init()
           
protected  void initComponents()
           
 void onccChange()
           
 void onDesignChange()
           
 void onFileChange()
           
 void onGenViewable()
           
 void onNew()
           
 void onOK()
           
private  void onStateChanged(ChangeEvent e)
           
 void resetGUIEnable()
           
static void setCageCodeList()
           
 void setEnabledState(boolean _enable)
           
 void setGUIEnable(boolean _enable)
           
 void setIncludeState(boolean _enable)
           
 void setOhioInclude(boolean includeON)
           
 void setToolVisible()
           
private  void setupEditability(boolean _enable)
           
private  void switchToTab(Component tabComp)
          Changes to the tab with the component that is passed in.
 void switchToTab(int tabIndex)
           
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

schProjLocControl

private SchematicLocationControl schProjLocControl

ecadTool

public String ecadTool

seledaFilePath

public String seledaFilePath

launchOhio

public boolean launchOhio

genEDA

public boolean genEDA

genOK

public boolean genOK

genOKcheck

public boolean genOKcheck

selFile

public String selFile

seledaFileName

public String seledaFileName

searchImage

private ImageIcon searchImage

fileImage

private ImageIcon fileImage

ohioImage

private ImageIcon ohioImage

ohioButton

public static JButton ohioButton

enable

boolean enable

contentImage

private ImageIcon contentImage

variantImage

private ImageIcon variantImage

include

private JCheckBox include

ohioInclude

private JCheckBox ohioInclude

epmDocType

private String epmDocType

schematicNameEdit

private boolean schematicNameEdit

schematicNunberEdit

private boolean schematicNunberEdit

schematicRevisionEdit

private boolean schematicRevisionEdit

schematicDescriptionEdit

private boolean schematicDescriptionEdit

argReg

private static ArgumentRegister argReg

sargReg

private static SecondaryArgumentRegister sargReg

argMap

private static ArgumentMap argMap

sargMap

private static SecondaryArgumentMap sargMap

instance

private static SchematicControl instance

logger

static org.apache.log4j.Logger logger

tab

private JTabbedPane tab

registeredTabs

Set registeredTabs

viewThread

private Thread viewThread

extraPanel

private GriddedPanel extraPanel

FileSelectorPanel

private GriddedPanel FileSelectorPanel

ohioPanel

private GriddedPanel ohioPanel

numberPanel

private GriddedPanel numberPanel

jcageCodeLabel

private JLabel jcageCodeLabel

jcageCodeList

private static JSortedCombo jcageCodeList

jOhioLabel

private JLabel jOhioLabel

jOhioGenLabel

private JLabel jOhioGenLabel

jFileSelectorLabel

private JLabel jFileSelectorLabel

jFileSelectorText

private JSortedCombo jFileSelectorText

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

jSpacerLabel

private JLabel jSpacerLabel
Constructor Detail

SchematicControl

public SchematicControl(DesignAll design,
                        CCAWGMMain ccawgm,
                        boolean editable,
                        boolean includeTeam,
                        boolean queryForCheckedOut)
Creates new form SchematicControl2


SchematicControl

public SchematicControl(DesignAll design,
                        CCAWGMMain ccawgm)

SchematicControl

public SchematicControl()
Method Detail

getInstance

public static SchematicControl 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.


switchToTab

public void switchToTab(int tabIndex)

initComponents

protected void initComponents()

createSchDataPanel

private GriddedPanel createSchDataPanel()

setToolVisible

public void setToolVisible()

getIncludeState

public boolean getIncludeState()

setIncludeState

public void setIncludeState(boolean _enable)

getEnabledState

public boolean getEnabledState()

setEnabledState

public void setEnabledState(boolean _enable)

getOhioIncludeState

public boolean getOhioIncludeState()

setOhioInclude

public void setOhioInclude(boolean includeON)

onccChange

public void onccChange()

onFileChange

public void onFileChange()

onNew

public void onNew()

onDesignChange

public void onDesignChange()

addOKListener

private void addOKListener()

onOK

public void onOK()

getRDThread

public Thread getRDThread()

onGenViewable

public void onGenViewable()
                   throws IOException,
                          MissingLocationException
Throws:
IOException
MissingLocationException

setGUIEnable

public void setGUIEnable(boolean _enable)

resetGUIEnable

public void resetGUIEnable()

setupEditability

private void setupEditability(boolean _enable)

updateGUIValues

private void updateGUIValues()

setCageCodeList

public static void setCageCodeList()

clearGUIValues

private void clearGUIValues()

updateDesignFromGUIValues

private void updateDesignFromGUIValues()

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