public void saveLastResponse ( DialogResponse < T > response ) { if ( saveResponseId != null && ( response == null || ! response . isExcluded ( ) ) ) { int index = response == null ? - 1 : responses . indexOf ( response ) ; PropertyUtil . saveValue ( SAVED_RESPONSE_PROP_NAME , saveResponseId , false , index < 0 ? null : Integer . toString ( index ) ) ; } }
Saves the last response under the named responseId .