cmu.survey.objects.renderers.html
Class HTMLRendererUtilities

java.lang.Object
  extended by cmu.survey.objects.renderers.html.HTMLRendererUtilities

public class HTMLRendererUtilities
extends java.lang.Object


Constructor Summary
HTMLRendererUtilities()
           
 
Method Summary
static java.lang.String cleanStringForJavaScript1Layer(java.lang.String stringInJavaScript)
           
static java.lang.String cleanStringForJavaScript2Layers(java.lang.String stringInJavaScript)
           
static java.lang.String getExtraJavaScripts(boolean timeResponses, boolean thisIsWrittenInJavaScript, Answer answer)
           
static java.lang.String getSubmitInJavaScript(boolean timeResponses)
           
static java.lang.String getTimeSpentInOnClickOrPressed(boolean timeResponses, boolean thisIsWrittenInJavaScript, java.lang.String fieldName)
           
static java.lang.String printTimeSpentField(boolean timeResponses, java.lang.String fieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLRendererUtilities

public HTMLRendererUtilities()
Method Detail

getTimeSpentInOnClickOrPressed

public static java.lang.String getTimeSpentInOnClickOrPressed(boolean timeResponses,
                                                              boolean thisIsWrittenInJavaScript,
                                                              java.lang.String fieldName)

printTimeSpentField

public static java.lang.String printTimeSpentField(boolean timeResponses,
                                                   java.lang.String fieldName)

getExtraJavaScripts

public static java.lang.String getExtraJavaScripts(boolean timeResponses,
                                                   boolean thisIsWrittenInJavaScript,
                                                   Answer answer)

cleanStringForJavaScript1Layer

public static final java.lang.String cleanStringForJavaScript1Layer(java.lang.String stringInJavaScript)

cleanStringForJavaScript2Layers

public static final java.lang.String cleanStringForJavaScript2Layers(java.lang.String stringInJavaScript)

getSubmitInJavaScript

public static java.lang.String getSubmitInJavaScript(boolean timeResponses)