com.ptc.wgmecad
Class CCAWGMMain

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended bycom.ptc.wgmecad.CCAWGMMain
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants

public class CCAWGMMain
extends JFrame

Created by IntelliJ IDEA. User: kevinj Date: Dec 18, 2002 Time: 1:20:13 PM To change this template use Options | File Templates.

See Also:
Serialized Form

Nested Class Summary
protected  class CCAWGMMain.LTabChangeListener
           
protected  class CCAWGMMain.RTabChangeListener
           
 
Nested classes inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
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
static GriddedPanel act
           
private  ActionTBControl actControl
           
 String actionBarLocation
           
static ImageIcon actionImage
           
static GriddedPanel AllPanel
           
private  AllDesignLocationControl allProjLocControl
           
private static ArgumentMap argMap
           
private static ArgumentRegister argReg
           
private  AssemblyControl asmControl
           
static JLabel boardLabel
           
static GriddedPanel BoardPanel
           
static ImageIcon bom
           
private  BomControl BOMControl
           
static JLabel bomLabel
           
static GriddedPanel BOMPanel
           
private static int borderSize
           
static JButton brdButton
           
private  BoardControl brdControl
           
private  BrowseControl browseControl
           
 Border buttonNotSelBorder
           
 Border buttonSelBorder
           
private  Cursor c
           
static String CANCEL
           
static int CANCEL_CHECKOUT
           
static GriddedPanel cardControlPanel
           
static CardLayout cardManager
           
private  CCAWGMMain ccawgm
           
static ImageIcon ccoImage
           
static int CHECKIN
           
static int CHECKOUT
           
static int CHECKPOINT
           
static ImageIcon ciImage
           
static ImageIcon coImage
           
static ImageIcon cpImage
           
static int CREATENEW
           
static String currentTab
           
static GriddedPanel deck
           
static DesignAll design
           
static JLabel designLabel
           
static GriddedPanel DesignPanel
           
 ImageIcon dServerImage
           
private  DesignControl dsnControl
           
static String EXIT
           
private  FileManager fileManager
           
static String frameTitle
           
private static String frameTitlePrefix
           
private static String frameTitleSpacing
           
static ImageIcon gcImage
           
static int GET_COPY
           
static String HCANCEL
           
static String HOK
           
private static WindchillIntegrationManager im
           
private static CCAWGMMain instance
           
static JLabel jLogoLabel
           
static JPanel jrp
           
private  JSortedCombo jServerText
           
private static JLabel label
           
(package private) static org.apache.log4j.Logger logger
           
static JButton loggerButton
           
static JLabel loggerLabel
           
static GriddedPanel LPanel
           
(package private)  JTabbedPane LTab
          Creates new form CCAWGMMain
private static CCAWGMMain mainFrame
           
private  Thread mainThread
           
static GriddedPanel MPanel
           
static int NEW_REVISION
           
static ImageIcon newButtonImage
           
static ImageIcon newImage
           
static int NONE
           
static ImageIcon nrImage
           
private  OvalBorder oborder
           
static String OK
           
(package private)  Set OKCancelListeners
           
(package private)  Set OKConfirmers
           
private  boolean okToProceed
           
private  OvalBorder omborder
           
private  OvalBorder onsborder
           
private  OvalSBorder osborder
           
private  ProgressControl pc
           
private  ProgressPanel pp
           
private static JProgressBar progress
           
 PrintStream ps
           
static int QUERY_WORKSPACE
           
static JButton queryButton
           
static QueryPanel queryDlg
           
static JLabel queryLabel
           
static GriddedPanel QueryPanel
           
static ImageIcon refreshButtonImage
           
(package private)  Set registeredLTabs
           
(package private)  Set registeredRTabs
           
static GriddedPanel rp
           
static GriddedPanel RPanel
           
(package private)  JTabbedPane RTab
           
private static SecondaryArgumentMap sargMap
           
private static SecondaryArgumentRegister sargReg
           
static String SAVE
           
static String SCANCEL
           
static JButton schButton
           
private  SchematicControl schControl
           
static ImageIcon schematicImage
           
static JLabel schematicLabel
           
static GriddedPanel SchematicPanel
           
 ImageIcon ServerImage
           
static JButton setupButton
           
private  CCASetup setupCard
           
static ImageIcon setupImage
           
static JLabel setupLabel
           
static String SOK
           
static JButton statusButton
           
private  CCAUploadPreContentStatus statusControl
           
static JLabel statusLabel
           
static String TAB_BOM
           
static String TAB_DESIGN
           
static String TAB_LOG
           
static String TAB_SEARCH
           
static String TAB_SETUP
           
static String TAB_STATUS
           
static GriddedPanel testPanel
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
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 javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CCAWGMMain()
           
 
Method Summary
 void addOKCancelListener(ActionListener l)
           
 void addOKConfirmation(IOKConfirmer okc)
           
protected  GriddedPanel createInteriorComponents()
           
private  GriddedPanel createLPanelComponents()
           
private  GriddedPanel createRPanelComponents()
           
private  void defaultAttribDefFileName()
           
 void fireOKCancel(String action)
           
 boolean getConfirmationOfOK()
          walk thru the confirmers until we either find one that refuses to allow an OK, then display its error message.
 String getCurrentTab()
           
 int getGUISpacing()
           
static CCAWGMMain getInstance()
           
 Thread getMainThread()
           
static JProgressBar getProgress()
           
 String getStatus()
           
private  void init()
           
 boolean isOkToProceed()
           
 void notifyOKCancelListeners(String action)
           
 void onClear()
           
 void onExit()
           
private  void onLTabStateChanged(ChangeEvent e)
           
private  void onNew()
           
 void onNewServer(String serverName)
           
private  void onRTabStateChanged(ChangeEvent e)
           
 void preNotifyOKCancelListeners(String action)
           
 void proceed()
           
 void refreshFrame()
           
 void setBOMTabTitle()
           
 void setFrameTitle(String newTitle)
           
 void setServerLogo(boolean isConnected)
           
 void setStatus(String newLabel)
           
static void setStatusLabel(String newLabel)
           
 void setToolVisible()
           
private  PrintStream startStatusPanelAndLogging()
           
private  void switchToLTab(Component LTabComp)
          Changes to the tab with the component that is passed in.
private  void switchToRTab(Component RTabComp)
          Changes to the tab with the component that is passed in.
 void switchToStatus(int _currentAction)
           
 void switchToTab(String tabName)
           
 void updateOverall()
           
 void waitCursorStart(String whereCalled)
           
 void waitCursorStop(String whereCalled)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, 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, 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, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

ccawgm

private CCAWGMMain ccawgm

OK

public static final String OK
See Also:
Constant Field Values

SOK

public static final String SOK
See Also:
Constant Field Values

HOK

public static final String HOK
See Also:
Constant Field Values

SAVE

public static final String SAVE
See Also:
Constant Field Values

CANCEL

public static final String CANCEL
See Also:
Constant Field Values

SCANCEL

public static final String SCANCEL
See Also:
Constant Field Values

HCANCEL

public static final String HCANCEL
See Also:
Constant Field Values

EXIT

public static final String EXIT
See Also:
Constant Field Values

pc

private ProgressControl pc

mainFrame

private static CCAWGMMain mainFrame

label

private static final JLabel label

progress

private static JProgressBar progress

oborder

private final OvalBorder oborder

omborder

private final OvalBorder omborder

osborder

private final OvalSBorder osborder

onsborder

private final OvalBorder onsborder

OKCancelListeners

Set OKCancelListeners

OKConfirmers

Set OKConfirmers

frameTitlePrefix

private static final String frameTitlePrefix

frameTitleSpacing

private static final String frameTitleSpacing
See Also:
Constant Field Values

frameTitle

public static String frameTitle

borderSize

private static final int borderSize
See Also:
Constant Field Values

argReg

private static ArgumentRegister argReg

sargReg

private static SecondaryArgumentRegister sargReg

argMap

private static ArgumentMap argMap

sargMap

private static SecondaryArgumentMap sargMap

im

private static WindchillIntegrationManager im

setupCard

private CCASetup setupCard

fileManager

private FileManager fileManager

dsnControl

private DesignControl dsnControl

schControl

private SchematicControl schControl

asmControl

private AssemblyControl asmControl

BOMControl

private BomControl BOMControl

brdControl

private BoardControl brdControl

actControl

private ActionTBControl actControl

browseControl

private BrowseControl browseControl

statusControl

private CCAUploadPreContentStatus statusControl

instance

private static CCAWGMMain instance

pp

private ProgressPanel pp

allProjLocControl

private AllDesignLocationControl allProjLocControl

NONE

public static final int NONE
See Also:
Constant Field Values

CREATENEW

public static final int CREATENEW
See Also:
Constant Field Values

CHECKIN

public static final int CHECKIN
See Also:
Constant Field Values

CHECKPOINT

public static final int CHECKPOINT
See Also:
Constant Field Values

CHECKOUT

public static final int CHECKOUT
See Also:
Constant Field Values

CANCEL_CHECKOUT

public static final int CANCEL_CHECKOUT
See Also:
Constant Field Values

NEW_REVISION

public static final int NEW_REVISION
See Also:
Constant Field Values

GET_COPY

public static final int GET_COPY
See Also:
Constant Field Values

QUERY_WORKSPACE

public static final int QUERY_WORKSPACE
See Also:
Constant Field Values

currentTab

public static String currentTab

newImage

public static ImageIcon newImage

ciImage

public static ImageIcon ciImage

coImage

public static ImageIcon coImage

gcImage

public static ImageIcon gcImage

cpImage

public static ImageIcon cpImage

ccoImage

public static ImageIcon ccoImage

nrImage

public static ImageIcon nrImage

refreshButtonImage

public static ImageIcon refreshButtonImage

newButtonImage

public static ImageIcon newButtonImage

actionImage

public static ImageIcon actionImage

QueryPanel

public static GriddedPanel QueryPanel

setupImage

public static ImageIcon setupImage

bom

public static ImageIcon bom

schematicImage

public static ImageIcon schematicImage

actionBarLocation

public String actionBarLocation

TAB_DESIGN

public static final String TAB_DESIGN
See Also:
Constant Field Values

TAB_BOM

public static final String TAB_BOM
See Also:
Constant Field Values

TAB_SEARCH

public static final String TAB_SEARCH
See Also:
Constant Field Values

TAB_LOG

public static final String TAB_LOG
See Also:
Constant Field Values

TAB_STATUS

public static final String TAB_STATUS
See Also:
Constant Field Values

TAB_SETUP

public static final String TAB_SETUP
See Also:
Constant Field Values

ps

public PrintStream ps

logger

static org.apache.log4j.Logger logger

LTab

JTabbedPane LTab
Creates new form CCAWGMMain


registeredLTabs

Set registeredLTabs

RTab

JTabbedPane RTab

registeredRTabs

Set registeredRTabs

c

private Cursor c

mainThread

private Thread mainThread

okToProceed

private boolean okToProceed

cardManager

public static CardLayout cardManager

design

public static DesignAll design

queryDlg

public static QueryPanel queryDlg

deck

public static GriddedPanel deck

act

public static GriddedPanel act

MPanel

public static GriddedPanel MPanel

DesignPanel

public static GriddedPanel DesignPanel

AllPanel

public static GriddedPanel AllPanel

BoardPanel

public static GriddedPanel BoardPanel

SchematicPanel

public static GriddedPanel SchematicPanel

jrp

public static JPanel jrp

rp

public static GriddedPanel rp

cardControlPanel

public static GriddedPanel cardControlPanel

LPanel

public static GriddedPanel LPanel

testPanel

public static GriddedPanel testPanel

RPanel

public static GriddedPanel RPanel

BOMPanel

public static GriddedPanel BOMPanel

schButton

public static JButton schButton

brdButton

public static JButton brdButton

queryButton

public static JButton queryButton

setupButton

public static JButton setupButton

loggerButton

public static JButton loggerButton

statusButton

public static JButton statusButton

jLogoLabel

public static JLabel jLogoLabel

jServerText

private JSortedCombo jServerText

ServerImage

public ImageIcon ServerImage

dServerImage

public ImageIcon dServerImage

schematicLabel

public static JLabel schematicLabel

boardLabel

public static JLabel boardLabel

designLabel

public static JLabel designLabel

bomLabel

public static JLabel bomLabel

queryLabel

public static JLabel queryLabel

loggerLabel

public static JLabel loggerLabel

statusLabel

public static JLabel statusLabel

setupLabel

public static JLabel setupLabel

buttonSelBorder

public Border buttonSelBorder

buttonNotSelBorder

public Border buttonNotSelBorder
Constructor Detail

CCAWGMMain

public CCAWGMMain()
Method Detail

getProgress

public static JProgressBar getProgress()

getInstance

public static CCAWGMMain getInstance()

init

private void init()

onLTabStateChanged

private void onLTabStateChanged(ChangeEvent e)

switchToLTab

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


onRTabStateChanged

private void onRTabStateChanged(ChangeEvent e)

switchToRTab

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


getCurrentTab

public String getCurrentTab()

switchToTab

public void switchToTab(String tabName)

setBOMTabTitle

public void setBOMTabTitle()

switchToStatus

public void switchToStatus(int _currentAction)

createInteriorComponents

protected GriddedPanel createInteriorComponents()

createRPanelComponents

private GriddedPanel createRPanelComponents()

createLPanelComponents

private GriddedPanel createLPanelComponents()

setServerLogo

public void setServerLogo(boolean isConnected)

setToolVisible

public void setToolVisible()

onNew

private void onNew()

onClear

public void onClear()

onNewServer

public void onNewServer(String serverName)

waitCursorStart

public void waitCursorStart(String whereCalled)

waitCursorStop

public void waitCursorStop(String whereCalled)

addOKCancelListener

public void addOKCancelListener(ActionListener l)

notifyOKCancelListeners

public void notifyOKCancelListeners(String action)

preNotifyOKCancelListeners

public void preNotifyOKCancelListeners(String action)

addOKConfirmation

public void addOKConfirmation(IOKConfirmer okc)

getConfirmationOfOK

public boolean getConfirmationOfOK()
walk thru the confirmers until we either find one that refuses to allow an OK, then display its error message. If none give an error message, then proceed with OK.

Returns:

setFrameTitle

public void setFrameTitle(String newTitle)

refreshFrame

public void refreshFrame()

onExit

public void onExit()

getMainThread

public Thread getMainThread()

updateOverall

public void updateOverall()

isOkToProceed

public boolean isOkToProceed()

proceed

public void proceed()

fireOKCancel

public void fireOKCancel(String action)

setStatusLabel

public static void setStatusLabel(String newLabel)

setStatus

public void setStatus(String newLabel)

getStatus

public String getStatus()

getGUISpacing

public int getGUISpacing()

startStatusPanelAndLogging

private PrintStream startStatusPanelAndLogging()

defaultAttribDefFileName

private void defaultAttribDefFileName()