All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Interface guinea.ui.QuestionInterface
  -  public interface QuestionInterface
 
This interface is implemented all UI components that are used by 
subjects to answer to questions.
  Method Index
  -   · 
	addAnswerListener(AnswerListener)
  
 -  Add a listener that is interested to receive answer events.
  
 -   · 
	getAnswer()
  
 -  Get answer for question.
  
 -   · 
	getQuestion()
  
 -  Get the text of the question.
  
 -   · 
	getQuestionID()
  
 -  Get the ID of the question.
  
 -   · 
	isAnswered()
  
 -  See if an answer has been given.
  
 -   · 
	isEnabled()
  
 -  Test whether question is enabled for answering.
  
 -   · 
	isQuestionEnabled()
  
 -  Test whether question is enabled or disabled.
  
 -   · 
	removeAnswerListener(AnswerListener)
  
 -  Remove a listener from listener list.
  
 -   · 
	reset()
  
 -  Reset question to default answer and/or to unanswered state.
  
 -   · 
	setAnswer(Object)
  
 -  Set answer of question.
  
 -   · 
	setEnabled(boolean)
  
 -  Disable or enable the question.
  
 -   · 
	setQuestion(String)
  
 -  Set the text of the question.
  
 -   · 
	setQuestionEnabled(boolean)
  
 -  Enable or disable question component.
  
 -   · 
	setQuestionID(String)
  
 -  Set the ID of this question.
 
  Methods
 · 
setQuestionEnabled
 public abstract void setQuestionEnabled(boolean enabled)
  -  Enable or disable question component.
  
    -  Parameters:
    
 -  enabled - Use 
true to enable,
false to disable the question.
   
 
 
 · 
isQuestionEnabled
 public abstract boolean isQuestionEnabled()
  -  Test whether question is enabled or disabled.
  
    -  Returns:
    
 -  
true if question is enabled,
false if not.
   
 
 
 · 
getAnswer
 public abstract Object getAnswer()
  -  Get answer for question.  Usually answers are delivered with
AnswerEvents.
  
    -  Returns:
    
 -  the answer or null if answer havent geen
given yet.
  
 
 
 
 · 
setAnswer
 public abstract void setAnswer(Object answer)
  -  Set answer of question.  Used to set default answer or
  
    -  Parameters:
    
 -  answer - the answer to question.  If answer is
null the answer is reset and marked as not answered.
  
 
 
 
 · 
isAnswered
 public abstract boolean isAnswered()
  -  See if an answer has been given.
  
    -  Returns:
    
 -  true if user has given an answer.
  
 
 
 
 · 
setEnabled
 public abstract void setEnabled(boolean enable)
  -  Disable or enable the question.  When enabled the question can
be answered.
  
    -  Parameters:
    
 -  enable - true/false to enable/disable
answering.
  
 
 
 
 · 
isEnabled
 public abstract boolean isEnabled()
  -  Test whether question is enabled for answering.
  
    -  Returns:
    
 -  
true if enabled.
   
 
 
 · 
setQuestion
 public abstract void setQuestion(String question)
  -  Set the text of the question.
  
    -  Parameters:
    
 -  question - text of the question.
  
 
 
 
 · 
getQuestion
 public abstract String getQuestion()
  -  Get the text of the question.
  
    -  Returns:
    
 -  text of the question.
  
 
 
 
 · 
setQuestionID
 public abstract void setQuestionID(String id)
  -  Set the ID of this question.
  
    -  Parameters:
    
 -  id - ID label of question.
  
 
 
 
 · 
getQuestionID
 public abstract String getQuestionID()
  -  Get the ID of the question.
  
    -  Returns:
    
 -  ID label of the question.
  
 
 
 
 · 
reset
 public abstract void reset()
  -  Reset question to default answer and/or to unanswered state.
 
 · 
addAnswerListener
 public abstract void addAnswerListener(AnswerListener listener)
  -  Add a listener that is interested to receive answer events.
  
    -  Parameters:
    
 -  listener - a listener.
  
 
 
 
 · 
removeAnswerListener
 public abstract void removeAnswerListener(AnswerListener listener)
  -  Remove a listener from listener list.
  
    -  Parameters:
    
 -  listener - a listener.
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index