sbr.resources
Class Previewer

java.lang.Object
  extended by sbr.resources.Previewer

public class Previewer
extends java.lang.Object

A method to preview the developed survey in a browser. Currently under development and not being used.

Author:
John H. Krantz, Ph.D.

Constructor Summary
Previewer()
           
 
Method Summary
 void showPreview(java.lang.String html, boolean applet)
          show a preview of the survey.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Previewer

public Previewer()
Method Detail

showPreview

public void showPreview(java.lang.String html,
                        boolean applet)
show a preview of the survey. If an applet, submit the file to psych.hanover.edu and display from there. Always same filename so it is always overwritten. If running as a application, save to the home directory and open from there. The file name is survey.html

Parameters:
html - the webpage to preview.
applet - true if this is running as an applet.