|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.content.ObjectContentProcessor
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 provides support for generating the HTML page
to display the contents of a ContentHolder object.
Supported API: false
Extendable: false
BasicTemplateProcessor
,
ContentHolder
,
Serialized FormField Summary | |
private static String |
CODEBASE
Deprecated. |
private Object |
contextObj
Deprecated. |
private String |
pOid
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
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 | |
ObjectContentProcessor()
Deprecated. A no argument constructor with no side effects. |
Method Summary | |
Object |
getContextObj()
Deprecated. Returns the object providing the context for this template. |
String |
getObjectOid()
Deprecated. Returns a String representation of the Object ID of the object providing the context for this processor. |
HTMLTemplate |
getTemplate(Vector preferences)
Deprecated. Return an initialized HTMLTemplate for displaying the content of an object. |
void |
handleRequest(HTTPRequest req,
HTTPResponse resp)
Deprecated. This method handles HTTP GET requests to produce and HTML page which describes properties of the contextual object of aObjectPropertiesProcessor instance. |
void |
setContextObj(Object context)
Deprecated. Sets the object which provides the context for this processor. |
void |
setObjectOid(String oid)
Deprecated. Sets the object ID of the object providing the context for this processor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Object contextObj
private String pOid
private static String CODEBASE
private static boolean VERBOSE
private static final String RESOURCE
Constructor Detail |
public ObjectContentProcessor()
Method Detail |
public void handleRequest(HTTPRequest req, HTTPResponse resp) throws WTException
It is expected that this method will be called via an objectActionLink (defined by the URLProcessor class) by script call within an HTML file.
The format of the HTML that is output is determined by an HTML template file. The template that is used is chosen from the templates directory based on the class of the contextual object, the locale and the parameters passed to the objectProperties call Currently the template file is chosen from the ObjectProperties directory. Within that directory the template is chosen on the basis of:
1. the class name of the context object 2. the wt.enterprise super class of the context object 3. the default templateWatch this space for more information regarding the determination of template files.
req
- HTTPRequestresp
- HTTPResponse
WTException
URLProcessor
public HTMLTemplate getTemplate(Vector preferences) throws WTException
preferences
- a Vector of language preferences
WTException
- if an error occurs initializing the
templatepublic Object getContextObj()
getContextObj
in interface ContextHolder
getContextObj
in class BasicTemplateProcessor
public void setContextObj(Object context)
setContextObj
in interface ContextHolder
setContextObj
in class BasicTemplateProcessor
context
- public String getObjectOid()
public void setObjectOid(String oid)
oid
- a String object ID corresponding to the object
providing the context for this processor.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |