com.sun.interview
public class WizPrint extends java.lang.Object
interview
.Modifier and Type | Class and Description |
---|---|
static class |
WizPrint.BadArgs
This exception is to report problems that occur with command line arguments.
|
static class |
WizPrint.Fault
This exception is to report problems that occur while updating an interview.
|
Constructor and Description |
---|
WizPrint(Interview interview)
Create an object for printing the current set of questions from an interview.
|
WizPrint(Interview interview,
Question[] questions)
Create an object for printing a set of questions from an interview.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getShowResponses()
Determine whether or not responses should be shown when the
interview is "printed" to HTML.
|
boolean |
getShowResponseTypes()
Determine whether or not the types of responses should be shown
when the interview is "printed" to HTML.
|
boolean |
getShowTags()
Determine whether or not question tags should be shown
when the interview is "printed" to HTML.
|
static void |
main(java.lang.String[] args)
Simple command-line front-end to the facilities of the API.
|
void |
setShowResponses(boolean showResponses)
Specify whether or not responses should be shown when the
interview is "printed" to HTML.
|
void |
setShowResponseTypes(boolean showResponseTypes)
Specify whether or not the types of responses should be shown
when the interview is "printed" to HTML.
|
void |
setShowTags(boolean showTags)
Specify whether or not question tags should be shown
when the interview is "printed" to HTML.
|
static void |
usage()
Write a short description of the command line syntax and options to System.err.
|
void |
write(java.io.Writer o)
Write the selected questions to the given stream, as a complete
HTML document.
|
public WizPrint(Interview interview)
interview
- The parent interview which contains the questions.public static void usage()
public static void main(java.lang.String[] args)
args
- Command line arguments.usage()
public boolean getShowResponses()
setShowResponses(boolean)
public void setShowResponses(boolean showResponses)
showResponses
- should be true if responses should be showngetShowResponses()
public boolean getShowResponseTypes()
setShowResponseTypes(boolean)
public void setShowResponseTypes(boolean showResponseTypes)
showResponseTypes
- should be true if the types of responses should be showngetShowResponseTypes()
public boolean getShowTags()
setShowTags(boolean)
public void setShowTags(boolean showTags)
showTags
- should be true if the questions' tags should be showngetShowTags()
public void write(java.io.Writer o) throws java.io.IOException
o
- the Writer to which to write the specified information
about an interviewjava.io.IOException
- if there are problems writing to the given WriterCopyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.