|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.enterprise.tabularresults.StdDataFormatService
This is a concrete implementation of the DataFormatService.
The current implementation is a little sloppy and ad-hoc. It
is designed to be used with the 2.0 release and provide only
the required functionality that is needed for the 7 templates
that it supports. In the future, it is likely that this class
or at least it implementation will be replaced with a
PropertyValueDelegate of some sort. Currently, a number of
if statements are used to decide how to present a class and
any future classes or customization will need to be hardcoded.
Supported API: false
Extensible: false
,
Serialized FormField Summary | |
private static String |
CODEBASE
|
(package private) Object |
contextObj
|
protected String[] |
HTMLFonts
|
protected String[] |
HTMLTextFormats
|
(package private) Locale |
locale
|
(package private) PrintWriter |
out
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE
|
Fields inherited from interface wt.templateutil.processor.ContextTranslator |
CONTEXT_LIST_IN, CONTEXT_LIST_OUT |
Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Constructor Summary | |
StdDataFormatService()
Supported API: false |
Method Summary | |
String |
addImage(Object imageObj,
String label)
Supported API: false |
String |
addLink(Object linkObj,
String action,
String label)
Supported API: false |
String |
adornBaseData(String baseDataEntry,
Object context_obj,
Properties properties)
Supported API: false |
Object |
getContextObj()
Supported API: false |
Locale |
getLocale()
Supported API: false |
String |
getTableCell(Object new_context_obj,
Locale new_locale,
Properties properties)
Supported API: false |
void |
handleRequest(HTTPRequest req,
HTTPResponse resp)
Required method to extend BasicTemplateProcessor Supported API: false |
String |
objectPropertyName(Class contextClass,
Properties parameters,
Locale locale)
Supported API: false |
String |
objectPropertyName(Object contextObj,
Properties parameters,
Locale locale)
Supported API: false |
String |
objectPropertyName(Properties parameters,
Locale locale)
Supported API: false |
void |
printAttributes(Properties parameters,
Locale locale,
OutputStream os)
This call can be made from an HTML template and results in all of the attibrutes of the current context object being printed out, using introspection. |
void |
setContextObj(Object new_context_obj)
Supported API: false |
void |
setLocale(Locale data_locale)
Supported API: false |
void |
setOutput(PrintWriter data_out)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String CODEBASE
private static boolean VERBOSE
private static final String RESOURCE
protected String[] HTMLTextFormats
protected String[] HTMLFonts
Locale locale
PrintWriter out
Object contextObj
Constructor Detail |
public StdDataFormatService()
Method Detail |
public void setLocale(Locale data_locale)
data_locale
- The new locale valuepublic Locale getLocale()
public void setOutput(PrintWriter data_out)
data_out
- The PrintWriter stream to the HTTP connnection for the webpagepublic void setContextObj(Object new_context_obj)
setContextObj
in interface ContextHolder
setContextObj
in class BasicTemplateProcessor
new_context_obj
- public Object getContextObj()
getContextObj
in interface ContextHolder
getContextObj
in class BasicTemplateProcessor
public String getTableCell(Object new_context_obj, Locale new_locale, Properties properties)
getTableCell
in interface DataFormatService
new_context_obj
- The contect object that will drive the presentationnew_locale
- The new locale to determine location sensitive outputproperties
- The parameters that will determine what is output and how it is output
public String addLink(Object linkObj, String action, String label)
linkObj
- the object used to create the HTTP parameter "oid"action
- the "action" parameter in the HTTP GET URLlabel
- The label to present to in the Browser
public String addImage(Object imageObj, String label)
public String adornBaseData(String baseDataEntry, Object context_obj, Properties properties)
baseDataEntry
- The original string to be modified with additional HTML attributescontext_obj
- the object to be used as the "context object"properties
- has the HTML attribute values to be used
public void printAttributes(Properties parameters, Locale locale, OutputStream os) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
parameters
- locale
- os
-
WTException
PropertyVetoException
InvocationTargetException
IllegalAccessException
public void handleRequest(HTTPRequest req, HTTPResponse resp) throws WTException
handleRequest
in interface TemplateProcessor
req
- resp
-
WTException
public String objectPropertyName(Properties parameters, Locale locale)
public String objectPropertyName(Object contextObj, Properties parameters, Locale locale)
public String objectPropertyName(Class contextClass, Properties parameters, Locale locale)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |