public SimpleDialog setButtonClickAction(final Func1<Integer, Boolean> buttonClickAction) {
        this.buttonClickAction = buttonClickAction;
        return this;
    }
Sets an action to execute on button click. Action shall return true if processing shall stop
main/src/main/java/cgeo/geocaching/ui/dialog/SimpleDialog.java