com.ptc.windchill.upgrade.tool
Class UpgradeSchemaState
java.lang.Object
com.ptc.windchill.upgrade.util.fsm.State
com.ptc.windchill.upgrade.tool.AbstractState
com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork
com.ptc.windchill.upgrade.tool.UpgradeSchemaState
- public class UpgradeSchemaState
- extends AbstractStateWithThreadedWork
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.State |
|
Methods inherited from class com.ptc.windchill.upgrade.tool.AbstractStateWithThreadedWork |
activate, clearStatus, deactivate, getApplication, getCancellationMonitor, getCancelPromptMessage, getCancelPromptTitle, getTitle, onCancelRequested, setApplication, setStatus, shouldBeEnclosed, toString |
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_
UpgradeSchemaState
public UpgradeSchemaState(StateMachine sm,
StateDefinition def)
- Creates a new UpgradeSchemaState object.
- Parameters:
sm
- The StateMachine.def
- The StateDefinition.
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.