Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.httpunit
Interface DialogResponder  view DialogResponder download DialogResponder.java

All Known Implementing Classes:
DialogAdapter

public interface DialogResponder

Interface for an object to supply user responses to dialogs.


Method Summary
 boolean getConfirmation(java.lang.String confirmationPrompt)
          Invoked when the user agent needs to display a confirmation dialog.
 java.lang.String getUserResponse(java.lang.String prompt, java.lang.String defaultResponse)
          Invoked when the user agent needs to display a generic dialog and obtain a user response.
 

Method Detail

getConfirmation

public boolean getConfirmation(java.lang.String confirmationPrompt)
Invoked when the user agent needs to display a confirmation dialog. This method should return true to accept the proposed action or false to reject it.


getUserResponse

public java.lang.String getUserResponse(java.lang.String prompt,
                                        java.lang.String defaultResponse)
Invoked when the user agent needs to display a generic dialog and obtain a user response. This method should return the user's answer.