public class QuestionBase extends Object implements Question
Constructor and Description |
---|
QuestionBase(String question,
ArrayList buttons)
default constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getButtonIndex(String btnText)
returns the index associated with a specified button
|
ArrayList |
getButtons() |
String |
getQuestion() |
void |
setButtons(ArrayList buttons) |
void |
setQuestion(String question) |
public QuestionBase(String question, ArrayList buttons)
question
- the question to assign to this question promptbuttons
- the buttons associated with itpublic String getButtonIndex(String btnText)
getButtonIndex
in interface Question
btnText
- the text of the buttonpublic ArrayList getButtons()
getButtons
in interface Question
public void setButtons(ArrayList buttons)
setButtons
in interface Question
buttons
- The buttons to set.public String getQuestion()
getQuestion
in interface Question
public void setQuestion(String question)
setQuestion
in interface Question
question
- The question to set.Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.