org.kuali.rice.kns.question
Class QuestionBase
java.lang.Object
   org.kuali.rice.kns.question.QuestionBase
org.kuali.rice.kns.question.QuestionBase
- All Implemented Interfaces: 
- Question
- Direct Known Subclasses: 
- ConfirmationQuestion, RecallQuestion
- public class QuestionBase 
- extends Object- implements Question
This class is a base class to implement questions types.
 
 
         "confirmation questions") rather than specific questions.
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
QuestionBase
public QuestionBase(String question,
                    ArrayList buttons)
- default constructor
 
- Parameters:
- question- the question to assign to this question prompt
- buttons- the buttons associated with it
 
getButtonIndex
public String getButtonIndex(String btnText)
- returns the index associated with a specified button
 
- 
- Specified by:
- getButtonIndexin interface- Question
 
- 
- Parameters:
- btnText- the text of the button
- Returns:
- the index of this button
 
getButtons
public ArrayList getButtons()
- 
- Specified by:
- getButtonsin interface- Question
 
- 
- Returns:
- Returns the buttons.
 
setButtons
public void setButtons(ArrayList buttons)
- 
- Specified by:
- setButtonsin interface- Question
 
- 
- Parameters:
- buttons- The buttons to set.
 
getQuestion
public String getQuestion()
- 
- Specified by:
- getQuestionin interface- Question
 
- 
- Returns:
- Returns the question.
 
setQuestion
public void setQuestion(String question)
- 
- Specified by:
- setQuestionin interface- Question
 
- 
- Parameters:
- question- The question to set.
 
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.