org.kuali.rice.kns.question
Class QuestionBase
java.lang.Object
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 promptbuttons
- the buttons associated with it
getButtonIndex
public String getButtonIndex(String btnText)
- 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()
- Specified by:
getButtons
in interface Question
- Returns:
- Returns the buttons.
setButtons
public void setButtons(ArrayList buttons)
- Specified by:
setButtons
in interface Question
- Parameters:
buttons
- The buttons to set.
getQuestion
public String getQuestion()
- Specified by:
getQuestion
in interface Question
- Returns:
- Returns the question.
setQuestion
public void setQuestion(String question)
- Specified by:
setQuestion
in interface Question
- Parameters:
question
- The question to set.
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.