choice.append(Resources.get(Resources.SINGLE_ENTRY), null);
}
protected void setData(String option) {
if (parentScreen instanceof CommandListener) {
CommandListener commandListener = (CommandListener)parentScreen;
String title = getTitle();
if (option.equals(Resources.get(Resources.ALL_RECURRENCES))) {
if (title.equals(Resources.get(Resources.EDIT_RECURRENCE))) {
commandListener.commandAction(Commands.getEditAllCommand(), this);
}
else if (title.equals(Resources.get(Resources.DELETE_RECURRENCE))) {
commandListener.commandAction(Commands.getDeleteAllCommand(), this);
}
}
else if (option.equals(Resources.get(Resources.SINGLE_ENTRY))) {
if (title.equals(Resources.get(Resources.EDIT_RECURRENCE))) {
commandListener.commandAction(Commands.getEditSingleCommand(), this);
}
else if (title.equals(Resources.get(Resources.DELETE_RECURRENCE))) {
commandListener.commandAction(Commands.getDeleteSingleCommand(), this);
}
}
}
}