com.ptc.windchill.upgrade.tool
Class UpgradeManager.GuiUpdater

java.lang.Object
  extended bycom.ptc.windchill.upgrade.util.fsm.AbstractStateMachineListener
      extended bycom.ptc.windchill.upgrade.tool.UpgradeManager.GuiUpdater
All Implemented Interfaces:
EventListener, StateMachineListener
Enclosing class:
UpgradeManager

private final class UpgradeManager.GuiUpdater
extends AbstractStateMachineListener


Constructor Summary
private UpgradeManager.GuiUpdater()
           
 
Method Summary
 void eventEnabledStateEvaluationError(Throwable throwable)
          Throws an error if there is an evaluation error.
 void eventHandlingError(Event event, Throwable throwable)
          An unexpected errorr occurs when the Upgrade Manager does not know how to handle an event.
 void eventTypeEnabledStateChanged(EventType event_type, boolean is_enabled)
          Enables the correct buttons for the current state.
 void postStateDeactivate(State state)
          When a screen has been deactivated a messages is displayed to the console and logfile, about which screen is about to be brought up, when the person types in the command UpgradeManager -debug at the command line.
 void preStateActivate(State state)
          When a screen is about to be activated a message is displayed to the console and logfile, about which screen is about to be brought up, when the person types in the command UpgradeManager -debug at the command line.
 void preStateDeactivate(State state)
          When a screen is about to be deactivated a message is displayed to the console and logfile, about which screen is about to be brought up, when the person types in the command UpgradeManager -debug at the command line.
 void stateMachineStopped()
          When the user is exiting out of the Upgrade Manager this is sent to the log file.
 
Methods inherited from class com.ptc.windchill.upgrade.util.fsm.AbstractStateMachineListener
postStateActivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeManager.GuiUpdater

private UpgradeManager.GuiUpdater()
Method Detail

preStateActivate

public void preStateActivate(State state)
When a screen is about to be activated a message is displayed to the console and logfile, about which screen is about to be brought up, when the person types in the command UpgradeManager -debug at the command line. Pre State Activate:(Welcome)

Specified by:
preStateActivate in interface StateMachineListener
Overrides:
preStateActivate in class AbstractStateMachineListener
Parameters:
state - State
Throws:
RuntimeException - When a state occurs that it does not know how to handle

preStateDeactivate

public void preStateDeactivate(State state)
When a screen is about to be deactivated a message is displayed to the console and logfile, about which screen is about to be brought up, when the person types in the command UpgradeManager -debug at the command line. Pre State Deactivate:(Welcome)

Specified by:
preStateDeactivate in interface StateMachineListener
Overrides:
preStateDeactivate in class AbstractStateMachineListener
Parameters:
state -

stateMachineStopped

public void stateMachineStopped()
When the user is exiting out of the Upgrade Manager this is sent to the log file. If a person chooses UpgradeManager -v or -debug this will also be displayed to the screen.

Specified by:
stateMachineStopped in interface StateMachineListener
Overrides:
stateMachineStopped in class AbstractStateMachineListener

postStateDeactivate

public void postStateDeactivate(State state)
When a screen has been deactivated a messages is displayed to the console and logfile, about which screen is about to be brought up, when the person types in the command UpgradeManager -debug at the command line. Post State Deactivate:(Welcome)

Specified by:
postStateDeactivate in interface StateMachineListener
Overrides:
postStateDeactivate in class AbstractStateMachineListener
Parameters:
state -

eventHandlingError

public void eventHandlingError(Event event,
                               Throwable throwable)
An unexpected errorr occurs when the Upgrade Manager does not know how to handle an event.

Specified by:
eventHandlingError in interface StateMachineListener
Overrides:
eventHandlingError in class AbstractStateMachineListener
Parameters:
event - Event

eventEnabledStateEvaluationError

public void eventEnabledStateEvaluationError(Throwable throwable)
Throws an error if there is an evaluation error.

Specified by:
eventEnabledStateEvaluationError in interface StateMachineListener
Overrides:
eventEnabledStateEvaluationError in class AbstractStateMachineListener
Parameters:
throwable -

eventTypeEnabledStateChanged

public void eventTypeEnabledStateChanged(EventType event_type,
                                         boolean is_enabled)
Enables the correct buttons for the current state.

Specified by:
eventTypeEnabledStateChanged in interface StateMachineListener
Overrides:
eventTypeEnabledStateChanged in class AbstractStateMachineListener
Parameters:
event_type - EventType
is_enabled - boolean