com.aspose.words

Interface IFieldUserPromptRespondent

  • public interface IFieldUserPromptRespondent 

Represents the respondent to user prompts during field update.
The ASK and FILLIN fields are the examples of fields that prompt the user for some response. Implement this interface and assign it to the FieldOptions.UserPromptRespondent property to establish interaction between field update and the user.

Method Summary
abstract java.lang.Stringrespond(java.lang.String promptText, java.lang.String defaultResponse)
When implemented, returns a response from the user on prompting. Your implementation should return null to indicate that the user has not responded to the prompt (i.e. the user has pressed the Cancel button in the prompt window).
 

    • Method Detail

      • respond

        public abstract java.lang.String respond(java.lang.String promptText, java.lang.String defaultResponse)
        When implemented, returns a response from the user on prompting. Your implementation should return null to indicate that the user has not responded to the prompt (i.e. the user has pressed the Cancel button in the prompt window).
        Parameters:
        promptText - Prompt text (i.e. title of the prompt window).
        defaultResponse - Default user response (i.e. initial value contained in the prompt window).
        Returns:
        User response (i.e. confirmed value contained in the prompt window).