|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.visitor.VisitorAdapter
wt.visitor.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
Field Summary | |
private static String |
CLASSNAME
|
private PrintWriter |
printWriter
|
private static String |
RESOURCE
|
private Locale |
theLocale
|
private ResourceBundle |
theResourceBundle
|
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 | |
Locale |
getLocale()
Gets the object for the association that plays role: theLocale. |
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 |
setLocale(Locale a_Locale)
Sets the object for the association that plays role: theLocale. |
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. |
private void |
theLocaleValidate(Locale a_Locale)
|
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 |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private PrintWriter printWriter
private ResourceBundle theResourceBundle
private Locale theLocale
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
-
WTPropertyVetoException
public TextOutputVisitor()
Method Detail |
public PrintWriter getPrintWriter()
public void setPrintWriter(PrintWriter a_PrintWriter) throws WTPropertyVetoException
a_PrintWriter
-
WTPropertyVetoException
public ResourceBundle getResourceBundle()
public void setResourceBundle(ResourceBundle a_ResourceBundle) throws WTPropertyVetoException
a_ResourceBundle
-
WTPropertyVetoException
public Locale getLocale()
public void setLocale(Locale a_Locale) throws WTPropertyVetoException
a_Locale
-
WTPropertyVetoException
private void theLocaleValidate(Locale a_Locale) throws WTPropertyVetoException
a_Locale
-
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 |