org.kuali.rice.kns.question
Class QuestionBase

java.lang.Object
  extended by 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.


Constructor Summary
QuestionBase(String question, ArrayList buttons)
          default constructor
 
Method Summary
 String getButtonIndex(String btnText)
          returns the index associated with a specified button
 ArrayList getButtons()
           
 String getQuestion()
           
 void setButtons(ArrayList buttons)
           
 void setQuestion(String question)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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-2012 The Kuali Foundation. All Rights Reserved.