Write an application that registers a custom Menu Item to the message view screen.
- Discover how to make an application auto-start
- Discover how to register a custom menu item
- Discover how to perform a task in the menu item’s run() method
- Option MenuItem_1.zip
- In the IDE, open the MenuItem.jdw workspace
- Open the MenuItemDemo.java source file.
- Create an instance of MyMenuItem and register the instance
- Modify registerInstance to register the custom menu item with the email view screen.
- Implement toString to return the custom name for the menu item.
- In the run method determine if the object passed into the method is an instance of a message object.
- In the run method open a PIM ToDo List for WRITE only.
- In the run method save the newly created task to the ToDo List.
Check out MenuItem_2.zip
In this exercise, you discovered the following things:
- to make an application auto-start
- to register a custom menu item
- to perform a task in the menu item’s run method