CS 4773 Object Oriented Systems April 15, 2005
Topics for today:
- Assignment 5 turnin requirements
- Editor changes that may affect you
- UserInterface requires getKeyDescriptor.
You can get this String from the KeyCommands
- KeyCommands is now a class rather than an interface
- KeyCommandsNormal extends KeyCommands
- KeyCommands no longer has a setSesion() method
- The getCommand method of KeyCommand returns an ArgumentCommand
rather than an ExecutableCommand. This allows you to use the
same KeyCommand for all sessions of a user interface.
- KeyCommands has a method setCodesFromFileFile that reads from a
configuration file.
- Problem: how do you make a configuration file for Key Commands?
- The program nees to convert from a key description (String)
to a key code (int)
- A simple key description in the name of the key given in
the KeyEvent class
- How does a program convert the name of a field to the value of
that field?