* Creates a new EventScreen object
*/
public EventScreen() {
final MenuItem saveMenuItem =
new MenuItem(new StringProvider("Save Event"), 0x230020, 1);
saveMenuItem.setCommand(new Command(new CommandHandler() {
/**
* @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
* Object)
*/
public void execute(final ReadOnlyCommandMetadata metadata,
final Object context) {
// If successful display message and close screen.
if (onSave()) {
Dialog.alert("Event was saved successfully");
UiApplication.getUiApplication().pushScreen(
new EventScreen());
onClose();
}
}
}));
;
_invitees = new Vector();
// MenuItem for adding an invite field to the create screen
final MenuItem inviteContactMenuItem =
new MenuItem(new StringProvider("Invite Contact"), 0x230010, 0);
inviteContactMenuItem.setCommand(new Command(new CommandHandler() {
/**
* @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
* Object)
*/
public void execute(final ReadOnlyCommandMetadata metadata,