|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.visitor.VisitorAdapter
wt.visitor.TextOutputVisitor
public class TextOutputVisitor
The TextOutputVisitor can be used as a base class for Visitor implementations
that are primarily used to produce text output. This class contains
a reference to a PrintWriter for producing text output. Connvenience
methods are also available for localizing text output.
Supported API: true
Extendable: true
| Constructor Summary | |
|---|---|
TextOutputVisitor()
Construct an instance. |
|
TextOutputVisitor(OutputStream a_outputStream)
Construct an instance. |
|
TextOutputVisitor(OutputStream a_outputStream,
ResourceBundle a_resourceBundle)
Construct an instance. |
|
| Method Summary | |
|---|---|
PrintWriter |
getPrintWriter()
Gets the value of the attribute: printWriter. |
ResourceBundle |
getResourceBundle()
Gets the object for the association that plays role: theResourceBundle. |
void |
printLocalizedMessage(LocalizableMessage a_localizedMessage)
Prints a message using the locale. |
void |
printLocalizedMessage(ResourceBundle a_resourceBundle,
String a_messageKey,
Object[] a_params)
Prints a message using the message key, parameters, and resource bundle. |
void |
printLocalizedMessage(String a_messageKey,
Object[] a_params)
Prints a message using the message key, parameters, and the instance resource bundle. |
void |
setPrintWriter(OutputStream a_outputStream)
Sets the PrintWriter instance. |
void |
setPrintWriter(PrintWriter a_PrintWriter)
Sets the value of the attribute: printWriter. |
void |
setResourceBundle(ResourceBundle a_ResourceBundle)
Sets the object for the association that plays role: theResourceBundle. |
| Methods inherited from class wt.visitor.VisitorAdapter |
|---|
visit, visitLevel, visitLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextOutputVisitor(OutputStream a_outputStream,
ResourceBundle a_resourceBundle)
throws WTPropertyVetoException
a_outputStream - a_resourceBundle -
WTPropertyVetoException
public TextOutputVisitor(OutputStream a_outputStream)
throws WTPropertyVetoException
a_outputStream -
WTPropertyVetoExceptionpublic TextOutputVisitor()
| Method Detail |
|---|
public PrintWriter getPrintWriter()
public void setPrintWriter(PrintWriter a_PrintWriter)
throws WTPropertyVetoException
a_PrintWriter -
WTPropertyVetoExceptionpublic ResourceBundle getResourceBundle()
public void setResourceBundle(ResourceBundle a_ResourceBundle)
throws WTPropertyVetoException
a_ResourceBundle -
WTPropertyVetoException
public void setPrintWriter(OutputStream a_outputStream)
throws WTPropertyVetoException
a_outputStream -
WTPropertyVetoException
public void printLocalizedMessage(String a_messageKey,
Object[] a_params)
a_messageKey - a_params -
public void printLocalizedMessage(ResourceBundle a_resourceBundle,
String a_messageKey,
Object[] a_params)
a_resourceBundle - a_messageKey - a_params - public void printLocalizedMessage(LocalizableMessage a_localizedMessage)
a_localizedMessage -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||