com.ptc.windchill.upgrade.tool
Class UpgradeSchemaState

java.lang.Object
  extended bycom.ptc.windchill.upgrade.util.fsm.State
      extended bycom.ptc.windchill.upgrade.tool.AbstractState
          extended bycom.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
              extended bycom.ptc.windchill.upgrade.tool.UpgradeSchemaState

public class UpgradeSchemaState
extends AbstractStateWithThreadedWork


Nested Class Summary
 class UpgradeSchemaState.UpgradeSchemaProgressDisplayAdapter
          Adapter that listens to the worker and updates the GUI appropriately.
 
Nested classes inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
AbstractState.NonExpressPhaseDone, AbstractStateWithThreadedWork.Cancel, AbstractStateWithThreadedWork.IsStateWithThreadedWorkDone, AbstractStateWithThreadedWork.IsThreadedWorkRunningAndNotCanceled, AbstractStateWithThreadedWork.Outcome, AbstractStateWithThreadedWork.WasThreadedWorkOutcomeSuccessful
 
Field Summary
private  JLabel activityName_
           
private  JLabel activitySubject_
           
private  JProgressBar activitySubjectProgressBar_
           
private  JLabel activitySubjectType_
           
private  JLabel blankLine1_
           
private  JLabel blankLine2_
           
private  JLabel blankLine3_
           
private  JLabel blankLine4_
           
private  JLabel blankLine5_
           
private  int bottom_
           
private  String intro_
           
private  String intro5_
           
private  JLabel introText3_
           
private  JLabel introText4_
           
private  JLabel introText5_
           
private  WrappingMultiLineTextMessage introWrap_
           
private  int left_
           
private  JProgressBar overallProgressBar_
           
private  int right_
           
private  SchemaResults schemaResults_
           
private  int top_
           
private  JComponent viewComponent_
           
 
Fields inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
 
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.State
 
Constructor Summary
UpgradeSchemaState(StateMachine sm, StateDefinition def)
          Creates a new UpgradeSchemaState object.
 
Method Summary
private  void defaultLook(GridBagConstraints gbc, int ii)
           
 JComponent getViewComponent()
          Display the fields needed by this state.
protected  AbstractStateWithThreadedWork.Outcome runThreadedWork()
          This method executes another class (UpgradeSchema) in a separate thread.
 
Methods inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
activate, clearStatus, deactivate, getApplication, getCancellationMonitor, getCancelPromptMessage, getCancelPromptTitle, getTitle, onCancelRequested, setApplication, setStatus, shouldBeEnclosed, toString
 
Methods inherited from class com.ptc.windchill.upgrade.util.fsm.State
getStateMachine, getStateMachine, isStartState, isStopState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

viewComponent_

private JComponent viewComponent_

blankLine1_

private JLabel blankLine1_

blankLine2_

private JLabel blankLine2_

blankLine3_

private JLabel blankLine3_

blankLine4_

private JLabel blankLine4_

blankLine5_

private JLabel blankLine5_

introWrap_

private WrappingMultiLineTextMessage introWrap_

intro_

private String intro_

introText3_

private JLabel introText3_

introText4_

private JLabel introText4_

intro5_

private String intro5_

introText5_

private JLabel introText5_

overallProgressBar_

private JProgressBar overallProgressBar_

activityName_

private JLabel activityName_

activitySubjectProgressBar_

private JProgressBar activitySubjectProgressBar_

activitySubjectType_

private JLabel activitySubjectType_

activitySubject_

private JLabel activitySubject_

schemaResults_

private SchemaResults schemaResults_

top_

private int top_

left_

private int left_

bottom_

private int bottom_

right_

private int right_
Constructor Detail

UpgradeSchemaState

public UpgradeSchemaState(StateMachine sm,
                          StateDefinition def)
Creates a new UpgradeSchemaState object.

Parameters:
sm - The StateMachine.
def - The StateDefinition.
Method Detail

getViewComponent

public JComponent getViewComponent()
Display the fields needed by this state. Required by abstract class AbstractState.

Specified by:
getViewComponent in class AbstractState
Returns:
The displayed state as an object.

defaultLook

private void defaultLook(GridBagConstraints gbc,
                         int ii)

runThreadedWork

protected AbstractStateWithThreadedWork.Outcome runThreadedWork()
                                                         throws Throwable
This method executes another class (UpgradeSchema) in a separate thread. The view is updated through a listener.

Specified by:
runThreadedWork in class AbstractStateWithThreadedWork
Returns:
Reports success or canceled.
Throws:
Throwable - Execution stopped due to an error, but specifically not due to a cancel.