org.jsurveylib.gui.swing.renderer
Class TextAreaRenderer

java.lang.Object
  extended by org.jsurveylib.gui.swing.renderer.QuestionRenderer
      extended by org.jsurveylib.gui.swing.renderer.TextAreaRenderer
All Implemented Interfaces:
SurveyElementRenderer, TextChangeListener, AnswerListener, EnableListener, ValidationListener, VisibilityListener

public class TextAreaRenderer
extends QuestionRenderer
implements TextChangeListener

A renderer component for a question of type TextArea

FOR INTERNAL USE ONLY.


Field Summary
 
Fields inherited from class org.jsurveylib.gui.swing.renderer.QuestionRenderer
SPACE_BEFORE_VALIDATION
 
Constructor Summary
TextAreaRenderer(TextAreaQuestion type)
           
 
Method Summary
 void setEnabled(boolean editable)
          Change the Editable property
 void textChanged(TextChangeEvent event)
          Notifies a listeners that a textfield has changed it's value
 void updateRenderer()
          Update the question state (i.e.
 
Methods inherited from class org.jsurveylib.gui.swing.renderer.QuestionRenderer
answerChanged, enableStateChanged, getRowSpan, renderOn, shiftComponents, validationChanged, visibilityChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaRenderer

public TextAreaRenderer(TextAreaQuestion type)
Method Detail

textChanged

public void textChanged(TextChangeEvent event)
Notifies a listeners that a textfield has changed it's value

Specified by:
textChanged in interface TextChangeListener
Parameters:
event - Event describing the change

updateRenderer

public void updateRenderer()
Update the question state (i.e. after a model element has been set programatically)


setEnabled

public void setEnabled(boolean editable)
Change the Editable property

Parameters:
editable - if true, the question becomes editable, otherwise it becomes disabled