wt.enterprise
Class ObjectPropertiesTemplateFactory

java.lang.Object
  extended bywt.enterprise.ObjectPropertiesTemplateFactory
All Implemented Interfaces:
ApplicationContextChild

public class ObjectPropertiesTemplateFactory
extends Object
implements ApplicationContextChild

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 serves as an HTML template file factory for the ObjectPropertiesProcessor. It is intended to be used only via the ObjectPropertiesProcessor.
In order to add a new HTML template file so that the factory is aware of it, put the file into the codebase/template/ObjectProperties directory and add an entry to the service.properties file for the "ObjectPropertiesTemplate" service. Here is an example entry:

wt.services/rsc/default/ObjectPropertiesTemplate/null/wt.part.WTPart/0=WTPart
This example tells the factory to use the WTPart(.html) HTML template file for objects of the wt.part.WTPart class.

Supported API: false
Extendable: false

See Also:
ObjectPropertiesProcessor

Field Summary
private  ApplicationContext applicationContext
          Deprecated.  
private static String CLASSNAME
          Deprecated.  
private  Vector preferences
          Deprecated.  
private static String RESOURCE
          Deprecated.  
private  HTTPState state
          Deprecated.  
private static boolean VERBOSE
          Deprecated.  
 
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild
APPLICATION_CONTEXT
 
Constructor Summary
ObjectPropertiesTemplateFactory()
          Deprecated.  
 
Method Summary
 ApplicationContext getApplicationContext()
          Deprecated.  
 ApplicationContextServices getApplicationContextServices()
          Deprecated.  
protected  HTMLTemplate getHTMLTemplate(Object requestor, String templateFileResource)
          Deprecated.  
 Vector getLanguagePreferences()
          Deprecated.  
 HTTPState getState()
          Deprecated.  
 void setApplicationContext(ApplicationContext a_ApplicationContext)
          Deprecated.  
 void setLanguagePreferences(Vector preferences)
          Deprecated.  
 void setState(HTTPState state)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static boolean VERBOSE
Deprecated. 

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

applicationContext

private ApplicationContext applicationContext
Deprecated. 

state

private HTTPState state
Deprecated. 

preferences

private Vector preferences
Deprecated. 
Constructor Detail

ObjectPropertiesTemplateFactory

public ObjectPropertiesTemplateFactory()
                                throws UnableToLoadServiceProperties
Deprecated.  



Supported API: false

Throws:
UnableToLoadServiceProperties
Method Detail

getHTMLTemplate

protected HTMLTemplate getHTMLTemplate(Object requestor,
                                       String templateFileResource)
                                throws WTException
Deprecated.  

Factory method to return an instance of the TemplateProcessor for the object passed. The templateFileResource is optional, and can be used to override the value normally returned by the factory.

Supported API: false

Returns:
TemplateProcessor
Throws:
WTException
PropertyVetoException

getApplicationContext

public ApplicationContext getApplicationContext()
Deprecated.  



Supported API: false Gets the object for the association that plays role: APPLICATION_CONTEXT.

Specified by:
getApplicationContext in interface ApplicationContextChild
Returns:
ApplicationContext

setApplicationContext

public void setApplicationContext(ApplicationContext a_ApplicationContext)
                           throws WTPropertyVetoException
Deprecated.  



Supported API: false Sets the object for the association that plays role: APPLICATION_CONTEXT.

Specified by:
setApplicationContext in interface ApplicationContextChild
Parameters:
a_ApplicationContext -
Throws:
WTPropertyVetoException

getApplicationContextServices

public ApplicationContextServices getApplicationContextServices()
Deprecated.  



Supported API: false


setState

public void setState(HTTPState state)
Deprecated.  

Set the context information to be used by this HTML template factory

Parameters:
state - the HTTPState representing the context

getState

public HTTPState getState()
Deprecated.  

Return the HTTPState which represents the context used by this template factory.

Returns:
the HTTPState representing the context

setLanguagePreferences

public void setLanguagePreferences(Vector preferences)
Deprecated.  

Set the language preference information to be used by this HTML template factory

Parameters:
preferences - the Vector representing the language preferences

getLanguagePreferences

public Vector getLanguagePreferences()
Deprecated.  

Return the Vector which represents the language preferences used by this template factory.

Returns:
the Vector representing the language preferences