public interface DialogRunnerI
{
- /**
- * Adds a new response for this dialog, and returns the dialog (this), to allow chaining, eg.
- * <pre>
- * dialog.addResponse(newRunResponse(OK_PRessed) { run()...})
- * .addResponse(new RunResponse(CANCEL_PRESSED);
- * </pre>
- *
- * @param action
- * @return
- */
- DialogRunnerI addResponse(RunResponse action);
+ DialogRunnerI addResponse(Object response, RunResponse action);
/**
* Runs any registered handlers for the given response, and answers the list