Previous | Next |
Use the Commands panel to identify any command classes you want to include in the project. You enter a name and press the Add Command button, and the wizard defines a command class by appending "Command" to the string you specify.
When you generate code for each command class (from the code generation panel), the wizard generates skeletal code for a serially undoable command. This includes handleDo, handleUndo, and handleRedo methods that you must override to implement the functionality of your command. You may also want to override the handleCanDo method to define the circumstances in which the command can be executed.
You can remove commands that are added in the current session by returning to the Commands panel, select the command you want to remove, and pressing the Remove button. However if you are modifying an existing project, you cannot use the wizard to remove commands that were added in an earlier session.You must do this manually.
Select another tab to define other aspects of the component. Press the Next>> button to go to the code generation panel.
Previous | Next |
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.