All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class guinea.ui.RankQuestion
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----guinea.awt.GPContainer
                           |
                           +----guinea.ui.RankQuestion
  -  public class RankQuestion
  
-  extends GPContainer
  
-  implements QuestionInterface, PropertyLoader
   
  Constructor Index
  -   · 
	RankQuestion()
  
 -  
 
  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.
  
 -   · 
	propertyLoad(Properties, String)
  
 -  
  
 -   · 
	removeAnswerListener(AnswerListener)
  
 -  Removes the specified listener so it no longer receives answer
events from this component.
  
 -   · 
	reset()
  
 -  Reset question to default answer and/or to unanswered state.
  
 -   · 
	setAnswer(Object)
  
 -  Set answer of question.
  
 -   · 
	setEnabled(boolean)
  
 -  Disable or enable the question.
  
 -   · 
	setLabels(String[])
  
 -  
  
 -   · 
	setQuestion(String)
  
 -  Set the text of the question.
  
 -   · 
	setQuestionEnabled(boolean)
  
 -  Enable or disable question component.
  
 -   · 
	setQuestionID(String)
  
 -  Set the ID of this question.
 
  Constructors
 · 
RankQuestion
 public RankQuestion()
  Methods
 · 
setLabels
 public void setLabels(String labels[])
 · 
getAnswer
 public 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 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 boolean isAnswered()
  -  See if an answer has been given.
  
    -  Returns:
    
 -  true if user has given an answer.
  
 
 
 
 · 
setEnabled
 public void setEnabled(boolean enable)
  -  Disable or enable the question.  When enabled the question can
be answered.
  
    -  Parameters:
    
 -  enable - true/false to enable/disable
answering.
    
 -  Overrides:
    
 -  setEnabled in class GPContainer
  
 
 
 
 · 
isEnabled
 public boolean isEnabled()
  -  Test whether question is enabled for answering.
  
    -  Overrides:
    
 -  isEnabled in class Component
  
 
 
 
 · 
setQuestion
 public void setQuestion(String question)
  -  Set the text of the question.
  
    -  Parameters:
    
 -  question - text of the question.
  
 
 
 
 · 
getQuestion
 public String getQuestion()
  -  Get the text of the question.
  
    -  Returns:
    
 -  text of the question.
  
 
 
 
 · 
setQuestionID
 public void setQuestionID(String id)
  -  Set the ID of this question.
  
    -  Parameters:
    
 -  id - ID label of question.
  
 
 
 
 · 
getQuestionID
 public String getQuestionID()
  -  Get the ID of the question.
  
    -  Returns:
    
 -  ID label of the question.
  
 
 
 
 · 
reset
 public void reset()
  -  Reset question to default answer and/or to unanswered state.
 
 · 
setQuestionEnabled
 public void setQuestionEnabled(boolean enabled)
  -  Enable or disable question component.
  
    -  Parameters:
    
 -  enabled - Use 
true to enable,
false to disable the question.
   
 
 
 · 
isQuestionEnabled
 public boolean isQuestionEnabled()
  -  Test whether question is enabled or disabled.
  
    -  Returns:
    
 -  
true if question is enabled,
false if not.
   
 
 
 · 
addAnswerListener
 public synchronized void addAnswerListener(AnswerListener listener)
  -  Add a listener that is interested to receive answer events.
  
    -  Parameters:
    
 -  listener - A listener.
  
 
 
 
 · 
removeAnswerListener
 public synchronized void removeAnswerListener(AnswerListener listener)
  -  Removes the specified listener so it no longer receives answer
events from this component.
  
    -  Parameters:
    
 -  listener - A control listener.
  
 
 
 
 · 
propertyLoad
 public void propertyLoad(Properties p,
                          String name) throws IllegalArgumentException
All Packages  Class Hierarchy  This Package  Previous  Next  Index