|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.templateutil.processor.DefaultTemplateProcessor
public class DefaultTemplateProcessor
Deprecation Notice: This class is still valid for this release, however this serves as advance notice that it will be removed in the future. All user interfaces built using the Windchill HTML Template Processing client architecture will be rewritten using a different framework in an upcoming release. This class represents the base Template Processor that should be subclassed for the Template Processors that will be used to generate an HTML page that purely present information, i.e., there is not an HTML Form in the page. By subclassing this Template Processor, all of set up to process an HTML template is done for you. One of the most important default services is finding and initializing the HTML Template. The DefaultHTMLTemplateFactory is used behind the scenes to do this based on the current settings in the the HTTPState object.
Once you have subclassed this class and added the proper entries in an .properties file to that you subclass and the corresponding HTML Template can be found, you only need to implement the methods to support the Windchill script calls in the HTML Template.
Supported API: true
Extendable: false
| Field Summary |
|---|
| 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 |
| Method Summary | |
|---|---|
void |
displayAttributeLabel(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
displayAttributeVal(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
getAttributes(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
String |
getContextPropertyValue(String token)
Deprecated. |
AbstractHTMLTemplateFactory |
getHtmlTemplateFactory()
Deprecated. Gets the object for the association that plays role: htmlTemplateFactory. |
int |
getPAGE_EXPIRATION()
Deprecated. |
String |
getPageExpirationResource()
Deprecated. |
wt.htmlutil.HTMLTemplate |
getTemplate(HTTPRequest req)
Deprecated. |
void |
setContextPropertyValue(String propertyName,
String propertyValue)
Deprecated. |
void |
setNameProcessor(TemplateNameProcessor a_NameProcessor)
Deprecated. |
void |
setPAGE_EXPIRATION(int a_PAGE_EXPIRATION)
Deprecated. |
void |
setPageExpirationResource(String a_PageExpirationResource)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getPageExpirationResource()
public void setPageExpirationResource(String a_PageExpirationResource)
a_PageExpirationResource - public int getPAGE_EXPIRATION()
public void setPAGE_EXPIRATION(int a_PAGE_EXPIRATION)
a_PAGE_EXPIRATION -
public AbstractHTMLTemplateFactory getHtmlTemplateFactory()
throws WTException
Returns the current implementation of an AbstractHTMLTemplateFactory
that will be used to locate the HTML Template to be used. The default
implementation of an AbstractHTMLTemplateFactory to be used is the
DefaultHTMLTemplateFactory. However, any implementation of an
AbstractHTMLTemplateFactory is valid.
Supported API: true
WTException
public wt.htmlutil.HTMLTemplate getTemplate(HTTPRequest req)
throws WTException
The current "state" and locale is used to find the correct HTML
template.
Supported API: true
req -
WTException
public void setNameProcessor(TemplateNameProcessor a_NameProcessor)
throws WTException
a_NameProcessor -
WTException
public void setContextPropertyValue(String propertyName,
String propertyValue)
propertyName - propertyValue - public String getContextPropertyValue(String token)
token -
public void displayAttributeLabel(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
parameters - locale - Locale to use for localizing the attribute labelos - HTTP output stream
WTException
public void displayAttributeVal(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
parameters - locale - Locale to use for localizing the attribute valueos - HTTP output stream
WTException
public void getAttributes(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
parameters - locale - Locale to use for localizing the attribute labels and valuesos - Output stream
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||