com.ptc.wgmecad
Class ActionTBControl

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

public class ActionTBControl
extends JToolBar

Created by IntelliJ IDEA. User: barky Date: Dec 31, 2002 Time: 12:44:39 AM To change this template use Options | File Templates.

See Also:
Serialized Form

Nested Class Summary
(package private)  class ActionTBControl.SmallButton
           
(package private)  class ActionTBControl.SmallToggleButton
           
 
Nested classes inherited from class javax.swing.JToolBar
JToolBar.AccessibleJToolBar, JToolBar.Separator
 
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
static ActionTBControl.SmallButton analyzeButton
           
private  ImageIcon analyzeImage
           
private static ArgumentMap argMap
           
private static ArgumentRegister argReg
           
static boolean asmEnable
           
static boolean asmInclude
           
static ActionTBControl.SmallButton bcancelcheckout
           
static boolean bcancelcheckoutSelState
           
static boolean bcancelcheckoutState
           
static ActionTBControl.SmallButton bcheckin
           
static boolean bcheckinSelState
           
static boolean bcheckinState
           
static ActionTBControl.SmallButton bcheckout
           
static boolean bcheckoutSelState
           
static boolean bcheckoutState
           
static ActionTBControl.SmallButton bcreatenew
           
static boolean bcreatenewSelState
           
static boolean bcreatenewState
           
static ActionTBControl.SmallButton bgetcopy
           
static boolean bgetcopySelState
           
static boolean bgetcopyState
           
static ActionTBControl.SmallButton bnewrev
           
static boolean bnewrevSelState
           
static boolean bnewrevState
           
static ActionTBControl.SmallToggleButton bomButton
           
private  ImageIcon bomImage
           
static boolean bomSelState
           
static boolean brdEnable
           
static boolean brdInclude
           
private static Dimension buttonDimension
           
static int CANCEL_CHECKOUT
           
static ActionTBControl.SmallButton cancelButton
           
private  ImageIcon cancelcheckoutImage
           
private  ImageIcon cancelImage
           
static String[] CCOOPTIONS
           
static int CHECKIN
           
private  ImageIcon checkinImage
           
static int CHECKOUT
           
private  ImageIcon checkoutImage
           
static int CHECKPOINT
           
static String[] CIOPTIONS
           
static ActionTBControl.SmallButton clearButton
           
private  ImageIcon clearImage
           
static String[] COOPTIONS
           
static String[] CPOPTIONS
           
static int CREATENEW
           
private  ImageIcon createnewImage
           
private  ImageIcon dcancelcheckoutImage
           
private  ImageIcon dcheckinImage
           
private  ImageIcon dcheckoutImage
           
private  ImageIcon dcreatenewImage
           
private  ImageIcon dgetcopyImage
           
private  ImageIcon dnewrevImage
           
private  ImageIcon doptionsImage
           
 ImageIcon dPDMLinkLogoImage
           
private  EmptyBorder eborder
           
private  String epmDocType
           
static JButton exitButton
           
private  ImageIcon exitImage
           
(package private)  boolean fComponentsAdjusted
           
static String[] GCOPTIONS
           
static int GET_COPY
           
private  ImageIcon getcopyImage
           
private  boolean ignoreChange
           
 String imageLoc
           
private static ActionTBControl instance
           
static JLabel jLogoLabel
           
private  JLabel jOptionsLabel
           
private  JComboBox jOptionsText
           
private  JSortedCombo jServerText
           
static String Last_CCO_Option
           
static String Last_CI_Option
           
static String Last_CO_Option
           
static String Last_GC_Option
           
static String Last_NewOption
           
static String Last_NewRev_Option
           
private  int last_options_menu
           
(package private) static org.apache.log4j.Logger logger
           
protected  JComboBox m_cbOptions
           
protected  JLabel m_cbOptionsLabel
           
protected  JMenuItem[] m_optionMenus
           
protected  Font[] m_options
           
private  Thread mainThread
           
static int NEW_REVISION
           
static String[] NewOPTIONS
           
private  ImageIcon newrevImage
           
static String[] NewRevOPTIONS
           
 ImageIcon NewServerImage
           
static String[] NO_OPTIONS
           
 ImageIcon NoConnectionLogoImage
           
static int NONE
           
static boolean noneButtonState
           
private  OvalBorder oborder
           
private  ImageIcon optionsImage
           
 ImageIcon PDMLinkLogoImage
           
private  ImageIcon ProcessDoneImage
           
private  ImageIcon ProcessRunImage
           
 ImageIcon ProjectLinkLogoImage
           
static int QUERY_WORKSPACE
           
private  ImageIcon refreshImage
           
static ActionTBControl.SmallButton runButton
           
private  ImageIcon runImage
           
protected static JLabel runLabel
           
static GriddedPanel runPanel
           
static boolean runState
           
static boolean RunSubmitState
           
private  Thread runThread
           
private static SecondaryArgumentMap sargMap
           
private static SecondaryArgumentRegister sargReg
           
static ActionTBControl.SmallButton saveButton
           
private  ImageIcon saveImage
           
static boolean schEnable
           
static boolean schInclude
           
 ImageIcon ServerClosedImage
           
 ImageIcon ServerImage
           
static ActionTBControl.SmallToggleButton statusButton
           
private  ImageIcon statusImage
           
static boolean statusSelState
           
static ActionTBControl.SmallButton submitButton
           
private  ImageIcon submitImage
           
private static Dimension tbarDimension
           
private  boolean variantTabSave
           
 ImageIcon WindchillLogoImage
           
private  int xSize
           
private  int ySize
           
 
Fields inherited from class javax.swing.JToolBar
 
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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
private ActionTBControl()
           
 
Method Summary
private  void addOKListener()
           
protected  void createToolBar()
           
 void enableAnalyze(boolean state)
           
 void enableSave(boolean _state)
           
static ActionTBControl getInstance()
           
 Thread getMainThread()
           
 boolean getRunState()
           
 boolean getRunSubmitState()
           
 Thread getRunThread()
           
 boolean getSaveState()
           
private  void initComponents()
           
private  boolean matchState(String state, String[] states)
           
protected  void onBOM()
           
protected  void onCancel(String CancelMsg)
           
protected  void onClear()
           
protected  void onNewRevision()
           
private  void onOK()
           
private  void onOptionsChange(ActionEvent e)
           
 void onOther(String whatButton)
           
protected  void onRun()
           
protected  void onSave()
           
protected  void onStatus()
           
protected  void onSubmit()
           
 void persistSettings(boolean isExit)
           
private  void persistWindowSize()
           
 void restoreRunState(boolean _cancel)
           
 void saveRunState()
           
 void selectDownload()
           
 void selectLegacyDownload()
           
 void selectNew()
           
 void selectNone()
           
 void selectRevision()
           
 void selectUpload()
           
 void setInitState()
           
 void setOpState()
           
 void setRunIcon(boolean runOn)
           
 void setRunState(boolean _runState)
           
 void setRunThread(Thread _runThread)
           
 void setToRun()
           
 void setToRunning()
           
 void setToSubmit()
           
 void setToWorking()
           
private  void updateComboWithStrings(JComboBox combo, String[] vals, boolean editable, boolean addToExisting, int selectIndex)
           
 
Methods inherited from class javax.swing.JToolBar
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, 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, 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, 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, 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

epmDocType

private String epmDocType

xSize

private int xSize

ySize

private int ySize

bcheckout

public static ActionTBControl.SmallButton bcheckout

bgetcopy

public static ActionTBControl.SmallButton bgetcopy

bcancelcheckout

public static ActionTBControl.SmallButton bcancelcheckout

bcheckin

public static ActionTBControl.SmallButton bcheckin

bcreatenew

public static ActionTBControl.SmallButton bcreatenew

exitButton

public static JButton exitButton

runButton

public static ActionTBControl.SmallButton runButton

statusButton

public static ActionTBControl.SmallToggleButton statusButton

bomButton

public static ActionTBControl.SmallToggleButton bomButton

submitButton

public static ActionTBControl.SmallButton submitButton

saveButton

public static ActionTBControl.SmallButton saveButton

cancelButton

public static ActionTBControl.SmallButton cancelButton

clearButton

public static ActionTBControl.SmallButton clearButton

analyzeButton

public static ActionTBControl.SmallButton analyzeButton

bnewrev

public static ActionTBControl.SmallButton bnewrev

bcreatenewState

public static boolean bcreatenewState

bcheckinState

public static boolean bcheckinState

bgetcopyState

public static boolean bgetcopyState

bcheckoutState

public static boolean bcheckoutState

bcancelcheckoutState

public static boolean bcancelcheckoutState

bnewrevState

public static boolean bnewrevState

bcreatenewSelState

public static boolean bcreatenewSelState

bcheckinSelState

public static boolean bcheckinSelState

bgetcopySelState

public static boolean bgetcopySelState

bcheckoutSelState

public static boolean bcheckoutSelState

bcancelcheckoutSelState

public static boolean bcancelcheckoutSelState

bnewrevSelState

public static boolean bnewrevSelState

statusSelState

public static boolean statusSelState

bomSelState

public static boolean bomSelState

asmInclude

public static boolean asmInclude

brdInclude

public static boolean brdInclude

schInclude

public static boolean schInclude

asmEnable

public static boolean asmEnable

brdEnable

public static boolean brdEnable

schEnable

public static boolean schEnable

runPanel

public static GriddedPanel runPanel

runLabel

protected static JLabel runLabel

jLogoLabel

public static JLabel jLogoLabel

jServerText

private JSortedCombo jServerText

NewServerImage

public ImageIcon NewServerImage

ServerImage

public ImageIcon ServerImage

ServerClosedImage

public ImageIcon ServerClosedImage

PDMLinkLogoImage

public ImageIcon PDMLinkLogoImage

dPDMLinkLogoImage

public ImageIcon dPDMLinkLogoImage

ProjectLinkLogoImage

public ImageIcon ProjectLinkLogoImage

WindchillLogoImage

public ImageIcon WindchillLogoImage

NoConnectionLogoImage

public ImageIcon NoConnectionLogoImage

runImage

private ImageIcon runImage

statusImage

private ImageIcon statusImage

bomImage

private ImageIcon bomImage

submitImage

private ImageIcon submitImage

cancelImage

private ImageIcon cancelImage

exitImage

private ImageIcon exitImage

saveImage

private ImageIcon saveImage

ProcessDoneImage

private ImageIcon ProcessDoneImage

ProcessRunImage

private ImageIcon ProcessRunImage

clearImage

private ImageIcon clearImage

refreshImage

private ImageIcon refreshImage

analyzeImage

private ImageIcon analyzeImage

createnewImage

private ImageIcon createnewImage

dcreatenewImage

private ImageIcon dcreatenewImage

checkinImage

private ImageIcon checkinImage

dcheckinImage

private ImageIcon dcheckinImage

checkoutImage

private ImageIcon checkoutImage

dcheckoutImage

private ImageIcon dcheckoutImage

cancelcheckoutImage

private ImageIcon cancelcheckoutImage

dcancelcheckoutImage

private ImageIcon dcancelcheckoutImage

getcopyImage

private ImageIcon getcopyImage

dgetcopyImage

private ImageIcon dgetcopyImage

newrevImage

private ImageIcon newrevImage

dnewrevImage

private ImageIcon dnewrevImage

optionsImage

private ImageIcon optionsImage

doptionsImage

private ImageIcon doptionsImage

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

noneButtonState

public static boolean noneButtonState

runState

public static boolean runState

RunSubmitState

public static boolean RunSubmitState

ignoreChange

private boolean ignoreChange

variantTabSave

private boolean variantTabSave

last_options_menu

private int last_options_menu

Last_NewOption

public static final String Last_NewOption
See Also:
Constant Field Values

Last_CI_Option

public static final String Last_CI_Option
See Also:
Constant Field Values

Last_CO_Option

public static final String Last_CO_Option
See Also:
Constant Field Values

Last_CCO_Option

public static final String Last_CCO_Option
See Also:
Constant Field Values

Last_GC_Option

public static final String Last_GC_Option
See Also:
Constant Field Values

Last_NewRev_Option

public static final String Last_NewRev_Option
See Also:
Constant Field Values

sargReg

private static SecondaryArgumentRegister sargReg

sargMap

private static SecondaryArgumentMap sargMap

argReg

private static ArgumentRegister argReg

argMap

private static ArgumentMap argMap

NO_OPTIONS

public static final String[] NO_OPTIONS

CIOPTIONS

public static final String[] CIOPTIONS

CPOPTIONS

public static final String[] CPOPTIONS

COOPTIONS

public static final String[] COOPTIONS

CCOOPTIONS

public static final String[] CCOOPTIONS

GCOPTIONS

public static final String[] GCOPTIONS

NewRevOPTIONS

public static final String[] NewRevOPTIONS

NewOPTIONS

public static final String[] NewOPTIONS

jOptionsLabel

private JLabel jOptionsLabel

jOptionsText

private JComboBox jOptionsText

fComponentsAdjusted

boolean fComponentsAdjusted

m_options

protected Font[] m_options

oborder

private final OvalBorder oborder

eborder

private final EmptyBorder eborder

m_optionMenus

protected JMenuItem[] m_optionMenus

m_cbOptionsLabel

protected JLabel m_cbOptionsLabel

m_cbOptions

protected JComboBox m_cbOptions

instance

private static ActionTBControl instance

buttonDimension

private static final Dimension buttonDimension

tbarDimension

private static final Dimension tbarDimension

imageLoc

public final String imageLoc

logger

static org.apache.log4j.Logger logger

mainThread

private Thread mainThread

runThread

private Thread runThread
Constructor Detail

ActionTBControl

private ActionTBControl()
Method Detail

getInstance

public static ActionTBControl getInstance()

addOKListener

private void addOKListener()

initComponents

private void initComponents()

getRunState

public boolean getRunState()

setRunState

public void setRunState(boolean _runState)

getRunSubmitState

public boolean getRunSubmitState()

setRunIcon

public void setRunIcon(boolean runOn)

selectNone

public void selectNone()

selectRevision

public void selectRevision()

selectNew

public void selectNew()

selectUpload

public void selectUpload()

selectDownload

public void selectDownload()

selectLegacyDownload

public void selectLegacyDownload()

setToRun

public void setToRun()

setToSubmit

public void setToSubmit()

setToRunning

public void setToRunning()

setToWorking

public void setToWorking()

setInitState

public void setInitState()

saveRunState

public void saveRunState()

restoreRunState

public void restoreRunState(boolean _cancel)

enableSave

public void enableSave(boolean _state)

getSaveState

public boolean getSaveState()

enableAnalyze

public void enableAnalyze(boolean state)

onClear

protected void onClear()

onNewRevision

protected void onNewRevision()

onOther

public void onOther(String whatButton)

onOptionsChange

private void onOptionsChange(ActionEvent e)

updateComboWithStrings

private void updateComboWithStrings(JComboBox combo,
                                    String[] vals,
                                    boolean editable,
                                    boolean addToExisting,
                                    int selectIndex)

onStatus

protected void onStatus()

onBOM

protected void onBOM()

onRun

protected void onRun()

onOK

private void onOK()

getMainThread

public Thread getMainThread()

onSubmit

protected void onSubmit()

getRunThread

public Thread getRunThread()

setRunThread

public void setRunThread(Thread _runThread)

onCancel

protected void onCancel(String CancelMsg)

onSave

protected void onSave()

persistSettings

public void persistSettings(boolean isExit)

persistWindowSize

private void persistWindowSize()

createToolBar

protected void createToolBar()

matchState

private boolean matchState(String state,
                           String[] states)

setOpState

public void setOpState()