Class QuestionBase

java.lang.Object
org.kuali.rice.kns.question.QuestionBase
All Implemented Interfaces:
Question
Direct Known Subclasses:
ConfirmationQuestion, RecallQuestion

@Deprecated public class QuestionBase extends Object implements Question
Deprecated.
Only used in KNS classes, use KRAD.
This class is a base class to implement questions types. "confirmation questions") rather than specific questions.
  • Constructor Details

    • QuestionBase

      public QuestionBase(String question, ArrayList buttons)
      Deprecated.
      default constructor
      Parameters:
      question - the question to assign to this question prompt
      buttons - the buttons associated with it
  • Method Details

    • getButtonIndex

      public String getButtonIndex(String btnText)
      Deprecated.
      returns the index associated with a specified button
      Specified by:
      getButtonIndex in interface Question
      Parameters:
      btnText - the text of the button
      Returns:
      the index of this button
    • getButtons

      public ArrayList getButtons()
      Deprecated.
      Specified by:
      getButtons in interface Question
      Returns:
      Returns the buttons.
    • setButtons

      public void setButtons(ArrayList buttons)
      Deprecated.
      Specified by:
      setButtons in interface Question
      Parameters:
      buttons - The buttons to set.
    • getQuestion

      public String getQuestion()
      Deprecated.
      Specified by:
      getQuestion in interface Question
      Returns:
      Returns the question.
    • setQuestion

      public void setQuestion(String question)
      Deprecated.
      Specified by:
      setQuestion in interface Question
      Parameters:
      question - The question to set.