com.ptc.windchill.upgrade.tool
Class PhaseTitleSideBanner

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.ptc.windchill.upgrade.tool.PhaseTitleSideBanner
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, MenuContainer, Serializable, UpgradeContextListener

public class PhaseTitleSideBanner
extends JPanel
implements UpgradeContextListener

See Also:
Serialized Form

Nested Class Summary
private static class PhaseTitleSideBanner.PhaseListCellRenderer
           
 
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
static int FAILED
           
private static String FAILED_ICON_NAME
           
private  JList list_
           
private  DefaultListModel listModel_
           
static int PENDING
           
private static String PENDING_ICON_NAME
           
private  String[] phaseTitles_
           
static int RUNNING
           
private static String RUNNING_ICON_NAME
           
private static JPanel splitStep_
           
private static ArrayList stepStatusList_
           
static int SUCCEEDED
           
private static String SUCCEEDED_ICON_NAME
           
private  UpgradeContext upgradeContext_
           
private static String WIZARD_BACKGROUND
           
private  WTProperties wtProperties_
           
 
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
PhaseTitleSideBanner(ArrayList steps_n_phases)
          Creates the left hand side of the UpgradeManager
 
Method Summary
 void createPhaseListModel(ArrayList step_phase_list)
          Creates a list of steps to be displayed on the left-hand side of the menu.
private  JList getList()
           
private  WTProperties getWtProperties()
           
private  void loadWTProperties()
           
 void paintComponent(Graphics g)
          Paints the image in the background
 void stepStatusNotifyChange(UpgradeStep upg_step)
          UpgradeContext calls this method when the icon of this step needs to be modified
 
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, 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

listModel_

private final DefaultListModel listModel_

list_

private final JList list_

upgradeContext_

private final UpgradeContext upgradeContext_

phaseTitles_

private String[] phaseTitles_

PENDING

public static final int PENDING
See Also:
Constant Field Values

RUNNING

public static final int RUNNING
See Also:
Constant Field Values

SUCCEEDED

public static final int SUCCEEDED
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values

PENDING_ICON_NAME

private static final String PENDING_ICON_NAME
See Also:
Constant Field Values

WIZARD_BACKGROUND

private static final String WIZARD_BACKGROUND
See Also:
Constant Field Values

RUNNING_ICON_NAME

private static final String RUNNING_ICON_NAME
See Also:
Constant Field Values

SUCCEEDED_ICON_NAME

private static final String SUCCEEDED_ICON_NAME
See Also:
Constant Field Values

FAILED_ICON_NAME

private static final String FAILED_ICON_NAME
See Also:
Constant Field Values

stepStatusList_

private static ArrayList stepStatusList_

wtProperties_

private WTProperties wtProperties_

splitStep_

private static JPanel splitStep_
Constructor Detail

PhaseTitleSideBanner

public PhaseTitleSideBanner(ArrayList steps_n_phases)
Creates the left hand side of the UpgradeManager

Method Detail

loadWTProperties

private void loadWTProperties()

getWtProperties

private WTProperties getWtProperties()

createPhaseListModel

public void createPhaseListModel(ArrayList step_phase_list)
Creates a list of steps to be displayed on the left-hand side of the menu.

Parameters:
step_phase_list - ArrayList

paintComponent

public void paintComponent(Graphics g)
Paints the image in the background

Parameters:
g -

getList

private JList getList()

stepStatusNotifyChange

public void stepStatusNotifyChange(UpgradeStep upg_step)
UpgradeContext calls this method when the icon of this step needs to be modified

Specified by:
stepStatusNotifyChange in interface UpgradeContextListener
Parameters:
upg_step - UpgradeStep