All Packages Class Hierarchy This Package Previous Next Index
Class duckMachine.GUI.stepListener
java.lang.Object
|
+----duckMachine.GUI.stepListener
- public class stepListener
- extends Object
- implements ActionListener
The listener for step commands.
-
stepListener(MachineFrame)
- The listener responds to clicks on the Step button.
-
actionPerformed(ActionEvent)
-
stepListener
public stepListener(MachineFrame p)
- The listener responds to clicks on the Step button. It calls the
step method in the machine with a default visitor that executes
instructions. It needs access to the parent frame to report
errors that might happen during the execution of the command.
Since the execution of the machine command might hang waiting for
input or might diverge, it runs within a newly created thread so
that the GUI can still respond to the user.
- See Also:
- step
actionPerformed
public void actionPerformed(ActionEvent evt)
All Packages Class Hierarchy This Package Previous Next Index