Class WizPrint
java.lang.Object
com.sun.interview.WizPrint
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis exception is to report problems that occur with command line arguments.static classThis exception is to report problems that occur while updating an interview. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether or not responses should be shown when the interview is "printed" to HTML.booleanDetermine whether or not the types of responses should be shown when the interview is "printed" to HTML.booleanDetermine whether or not question tags should be shown when the interview is "printed" to HTML.static voidSimple command-line front-end to the facilities of the API.voidsetShowResponses(boolean showResponses) Specify whether or not responses should be shown when the interview is "printed" to HTML.voidsetShowResponseTypes(boolean showResponseTypes) Specify whether or not the types of responses should be shown when the interview is "printed" to HTML.voidsetShowTags(boolean showTags) Specify whether or not question tags should be shown when the interview is "printed" to HTML.static voidusage()Write a short description of the command line syntax and options to System.err.voidWrite the selected questions to the given stream, as a complete HTML document.
-
Constructor Details
-
WizPrint
Create an object for printing the current set of questions from an interview.- Parameters:
interview- The parent interview which contains the questions.
-
WizPrint
-
-
Method Details
-
usage
public static void usage()Write a short description of the command line syntax and options to System.err. -
main
Simple command-line front-end to the facilities of the API.- Parameters:
args- Command line arguments.- See Also:
-
getShowResponses
public boolean getShowResponses()Determine whether or not responses should be shown when the interview is "printed" to HTML.- Returns:
- true if responses should be shown
- See Also:
-
setShowResponses
public void setShowResponses(boolean showResponses) Specify whether or not responses should be shown when the interview is "printed" to HTML.- Parameters:
showResponses- should be true if responses should be shown- See Also:
-
getShowResponseTypes
public boolean getShowResponseTypes()Determine whether or not the types of responses should be shown when the interview is "printed" to HTML.- Returns:
- true if the types of responses should be shown
- See Also:
-
setShowResponseTypes
public void setShowResponseTypes(boolean showResponseTypes) Specify whether or not the types of responses should be shown when the interview is "printed" to HTML.- Parameters:
showResponseTypes- should be true if the types of responses should be shown- See Also:
-
getShowTags
public boolean getShowTags()Determine whether or not question tags should be shown when the interview is "printed" to HTML.- Returns:
- true if the questions' tags should be shown
- See Also:
-
setShowTags
public void setShowTags(boolean showTags) Specify whether or not question tags should be shown when the interview is "printed" to HTML.- Parameters:
showTags- should be true if the questions' tags should be shown- See Also:
-
write
Write the selected questions to the given stream, as a complete HTML document. The stream is closed after the writing is complete.- Parameters:
o- the Writer to which to write the specified information about an interview- Throws:
IOException- if there are problems writing to the given Writer
-