com.ptc.wgmecad
Class BoardControl

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

public class BoardControl
extends GriddedPanel

See Also:
Serialized Form

Nested Class Summary
protected  class BoardControl.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  boolean boardDescriptionEdit
           
private  boolean boardNameEdit
           
private  boolean boardNunberEdit
           
private  boolean boardRevisionEdit
           
private  BoardLocationControl brdProjLocControl
           
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 BoardControl instance
           
private  JLabel jBoardDescriptionLabel
           
private  JTextField jBoardDescriptionText
           
private  JLabel jBoardNameLabel
           
private  JTextField jBoardNameText
           
private  JLabel jBoardNumberLabel
           
private  JTextField jBoardNumberText
           
private  JLabel jBoardRevisionLabel
           
private  JTextField jBoardRevisionText
           
private  JLabel jcageCodeLabel
           
private static JSortedCombo jcageCodeList
           
private  JLabel jFileSelectorLabel
           
private  JSortedCombo jFileSelectorText
           
private  JLabel jOhioGenLabel
           
private  JLabel jOhioLabel
           
 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  ImageIcon searchImage
           
 File seledaFile
           
 String seledaFileName
           
 String seledaFilePath
           
 String selFile
           
 String selSch
           
private  DesignStatusControl status
           
(package private)  JTabbedPane tab
           
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
BoardControl()
           
BoardControl(DesignAll design, CCAWGMMain ccawgm)
           
BoardControl(DesignAll design, CCAWGMMain ccawgm, boolean editable, boolean includeTeam, boolean queryForCheckedOut)
          Creates new form BoardControl2
 
Method Summary
private  void addOKListener()
           
private  void clearGUIValues()
           
private  GriddedPanel createBrdDataPanel()
           
 boolean getEnabledState()
           
 boolean getIncludeState()
           
static BoardControl getInstance()
           
 boolean getOhioIncludeState()
           
 Thread getRDThread()
           
 String getSelFile()
           
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

brdProjLocControl

private BoardLocationControl brdProjLocControl

include

private JCheckBox include

ohioInclude

private JCheckBox ohioInclude

ecadTool

public String ecadTool

seledaFilePath

public String seledaFilePath

launchOhio

public boolean launchOhio

genEDA

public boolean genEDA

genOK

public boolean genOK

genOKcheck

public boolean genOKcheck

seledaFileName

public String seledaFileName

selFile

public String selFile

enable

boolean enable

selSch

public String selSch

seledaFile

public File seledaFile

contentImage

private ImageIcon contentImage

fileImage

private ImageIcon fileImage

ohioImage

private ImageIcon ohioImage

ohioButton

public static JButton ohioButton

searchImage

private ImageIcon searchImage

epmDocType

private String epmDocType

instance

private static BoardControl instance

boardNameEdit

private boolean boardNameEdit

boardNunberEdit

private boolean boardNunberEdit

boardRevisionEdit

private boolean boardRevisionEdit

boardDescriptionEdit

private boolean boardDescriptionEdit

argReg

private static ArgumentRegister argReg

sargReg

private static SecondaryArgumentRegister sargReg

argMap

private static ArgumentMap argMap

sargMap

private static SecondaryArgumentMap sargMap

logger

static org.apache.log4j.Logger logger

tab

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

jBoardNameLabel

private JLabel jBoardNameLabel

jBoardNameText

private JTextField jBoardNameText

jBoardNumberLabel

private JLabel jBoardNumberLabel

jBoardNumberText

private JTextField jBoardNumberText

jBoardRevisionLabel

private JLabel jBoardRevisionLabel

jBoardRevisionText

private JTextField jBoardRevisionText

jBoardDescriptionLabel

private JLabel jBoardDescriptionLabel

jBoardDescriptionText

private JTextField jBoardDescriptionText
Constructor Detail

BoardControl

public BoardControl(DesignAll design,
                    CCAWGMMain ccawgm,
                    boolean editable,
                    boolean includeTeam,
                    boolean queryForCheckedOut)
Creates new form BoardControl2


BoardControl

public BoardControl(DesignAll design,
                    CCAWGMMain ccawgm)

BoardControl

public BoardControl()
Method Detail

getInstance

public static BoardControl 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()

createBrdDataPanel

private GriddedPanel createBrdDataPanel()

onNew

public void onNew()

onccChange

public void onccChange()

onFileChange

public void onFileChange()

onDesignChange

public void onDesignChange()

addOKListener

private void addOKListener()

onOK

public void onOK()

getSelFile

public String getSelFile()

getRDThread

public Thread getRDThread()

onGenViewable

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

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)

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

updateDesignFromGUIValues

private void updateDesignFromGUIValues()

clearGUIValues

private void clearGUIValues()

updateDesignStatus

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