|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.part.PartOccurrenceProcessor
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.
Template processor class which displays a hierarchical product
structure view for a given part.
Supported API: false
Extendable: false
Nested Class Summary | |
class |
PartOccurrenceProcessor.Attribute
Deprecated. Helper class which maintains information about an attribute. |
Field Summary | |
private PartOccurrenceProcessor.Attribute[] |
attributes
Deprecated. |
private static String |
CODEBASE
Deprecated. |
static String |
CODED_NAME
Deprecated. |
static String |
COMBINED_PATH_OCCURRENCE_INDEX
Deprecated. |
private Vector |
combinedPathOccurrences
Deprecated. |
private boolean |
combinedPathOccurrencesAreDone
Deprecated. |
private ConfigSpec |
configSpec
Deprecated. |
static String |
CONTEXT_ACTION
Deprecated. |
private String |
contextAction
Deprecated. |
static String |
DEFAULT_ACTION
Deprecated. |
private static String |
DEFAULT_ATTRIBUTE_LIST
Deprecated. |
private static String |
DEFAULT_PI_VIEW
Deprecated. |
static String |
DEFAULT_TEMPLATE
Deprecated. |
static String |
DISPLAY_SEPARATOR
Deprecated. |
private boolean |
hasOccurrenceInformation
Deprecated. |
static String |
ID_SEPARATOR
Deprecated. |
static String |
LINE_BREAK
Deprecated. |
static String |
LINK_ATTRIBUTE
Deprecated. |
static String |
LIST_SEPARATOR
Deprecated. |
private static Cache |
nodeCache
Deprecated. |
static String |
NULL_STRING
Deprecated. |
static String |
OCCURRENCE
Deprecated. |
static String |
PAGE_ID
Deprecated. |
private String |
pageId
Deprecated. |
private Properties |
params
Deprecated. |
private Vector |
parentsForCombinedPaths
Deprecated. |
private PartPathOccurrence |
pathOccurrence
Deprecated. |
private WTProduct |
pathParent
Deprecated. |
private Vector |
pathsForCombinedPathOccurrences
Deprecated. |
protected static String |
RESOURCE
Deprecated. |
static String |
SINGLE_SEPARATOR
Deprecated. |
static String |
TEMPLATE_PATH
Deprecated. |
private WTPart |
topLevelPart
Deprecated. |
static boolean |
USE_STYLE_SHEET
Deprecated. |
private WTPartUsageLink |
usesLink
Deprecated. |
private PartUsesOccurrence |
usesOccurrence
Deprecated. |
private WTPart |
usesOwner
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_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Constructor Summary | |
PartOccurrenceProcessor()
Deprecated. |
Method Summary | |
protected static Properties |
combineParameters(Properties params_to_add,
Properties original_params)
Deprecated. |
void |
extractOccurrenceInformation(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Extracts the Occurrence Information from the OCCURRENCE parameter in the URL. |
protected PartOccurrenceProcessor.Attribute[] |
getAttributeList(String attr_list)
Deprecated. Returns an array of Attribute objects corresponding to the given String. |
protected PartCombinedPathOccurrence |
getCombinedPathOccurrence(int index)
Deprecated. |
protected Vector |
getCombinedPathOccurrences()
Deprecated. |
protected static String |
getContextActionLink(String part_id,
String label)
Deprecated. |
protected PartOccurrenceProcessor.Attribute[] |
getDefaultAttributeList()
Deprecated. Returns an array of Attribute objects corresponding to the default list of attributes specified in wt.properties. |
protected String |
getFormEnd()
Deprecated. Return the ending tag. |
protected String |
getFormStart(String name)
Deprecated. Output the starting |
protected String |
getFormStart(String name,
String action,
String method)
Deprecated. Retrieve the starting |
protected String |
getFormStart(String name,
String action,
String method,
String target)
Deprecated. Retrieve the starting |
static String |
getHiddenFieldHTML(String name,
String value)
Deprecated. |
String |
getIcon(Object object)
Deprecated. |
String |
getIcon(WTObject object)
Deprecated. |
String |
getIdentification(Object object,
Locale locale)
Deprecated. |
String |
getIdentificationLink(Object object,
Locale locale)
Deprecated. |
static Persistable |
getObjectFromReference(String reference)
Deprecated. Returns the Persistable which corresponds to the given String object reference. |
protected Properties |
getParameters(HTTPRequest request)
Deprecated. Returns a Properties object containing the parameters received in the given HTTPRequest. |
static String |
getReferenceStringForPersistable(Persistable obj)
Deprecated. |
HTMLTemplate |
getTemplate(Vector preferences)
Deprecated. Method which retrieves the HTML template to be processed by this processor. |
protected String |
getUniqueId()
Deprecated. Returns a String representation of a unique page id. |
void |
handleRequest(HTTPRequest request,
HTTPResponse response)
Deprecated. Method invoked when a URL to this template processor is followed. |
void |
outputCombinedPathOccurrence(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Outputs Combined Path Occurrence information. |
void |
outputCombinedPathOccurrenceData(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Outputs Combined Path Occurrence information. |
void |
outputCombinedPathOccurrenceList(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Outputs Combined Path Occurrence information. |
protected void |
outputContext(PrintWriter out)
Deprecated. Method to output the current oid and action in hidden fields. |
void |
outputGoToPageFunction(PrintWriter out,
String name)
Deprecated. Outputs the JavaScript function which opens the page corresponding to the given action and the given object. |
static void |
outputHiddenField(String name,
String value,
PrintWriter out)
Deprecated. Outputs a HIDDEN form field with the given name and given value to the given printwriter. |
void |
outputOccurrenceHeader(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Outputs Path Occurrence information. |
void |
outputPathOccurrence(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Outputs Path Occurrence information. |
void |
outputPathOccurrenceData(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Outputs Path Occurrence information. |
void |
outputScriptEnd(PrintWriter out)
Deprecated. Outputs the closing tag for a scripting section in an HTML page. |
void |
outputScriptStart(PrintWriter out,
String language)
Deprecated. Outputs the starting tag for a scripting section in an HTML page. |
void |
outputSubmitFunction(PrintWriter out,
String name)
Deprecated. Outputs the JavaScript code to build the function to submit the form. |
void |
outputUsesOccurrence(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Outputs Uses Occurrence information. |
void |
outputUsesOccurrenceData(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Outputs Uses Occurrence information. |
void |
setContextObj(Object obj)
Deprecated. Sets the context object for this processor. |
static void |
setDefaultAction(String action)
Deprecated. |
static void |
setDefaultTemplate(String template)
Deprecated. |
static void |
setResource(String resource)
Deprecated. |
static void |
setTemplatePath(String path)
Deprecated. |
static void |
setUseStyleSheet(boolean useStyleSheet)
Deprecated. |
protected static String |
splitString(String string_to_split)
Deprecated. Removes the ID_SEPARATOR characters in the given string and replaces them with spaces. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private WTPart topLevelPart
private Properties params
private ConfigSpec configSpec
private String pageId
private String contextAction
private PartOccurrenceProcessor.Attribute[] attributes
private boolean hasOccurrenceInformation
private PartUsesOccurrence usesOccurrence
private WTPartUsageLink usesLink
private WTPart usesOwner
private PartPathOccurrence pathOccurrence
private WTProduct pathParent
private Vector pathsForCombinedPathOccurrences
private Vector parentsForCombinedPaths
private Vector combinedPathOccurrences
private boolean combinedPathOccurrencesAreDone
private static boolean VERBOSE
private static String CODEBASE
private static String DEFAULT_ATTRIBUTE_LIST
private static String DEFAULT_PI_VIEW
private static Cache nodeCache
public static final String ID_SEPARATOR
public static final String DISPLAY_SEPARATOR
public static final String SINGLE_SEPARATOR
public static final String LIST_SEPARATOR
public static final String LINK_ATTRIBUTE
public static String DEFAULT_ACTION
public static String DEFAULT_TEMPLATE
public static String TEMPLATE_PATH
public static boolean USE_STYLE_SHEET
public static final String LINE_BREAK
public static final String CODED_NAME
public static final String NULL_STRING
public static final String PAGE_ID
public static final String CONTEXT_ACTION
public static final String OCCURRENCE
public static final String COMBINED_PATH_OCCURRENCE_INDEX
protected static String RESOURCE
Constructor Detail |
public PartOccurrenceProcessor()
Method Detail |
public void handleRequest(HTTPRequest request, HTTPResponse response) throws WTException
request
- the HTTPRequest objectresponse
- the HTTPResponse object
WTException
public HTMLTemplate getTemplate(Vector preferences) throws WTException
preferences
- the Vector of preferences used to initialize
the HTML template
WTException
public void setContextObj(Object obj)
setContextObj
in interface ContextHolder
setContextObj
in class BasicTemplateProcessor
obj
- protected String getFormStart(String name) throws WTException
protected String getFormStart(String name, String action, String method)
protected String getFormStart(String name, String action, String method, String target)
protected String getUniqueId()
protected String getFormEnd()
protected void outputContext(PrintWriter out) throws WTException
WTException
protected PartCombinedPathOccurrence getCombinedPathOccurrence(int index)
protected Vector getCombinedPathOccurrences() throws WTException
WTException
protected static String getContextActionLink(String part_id, String label)
public static void outputHiddenField(String name, String value, PrintWriter out)
name
- the Name of the hidden fieldvalue
- the value of the hidden fieldout
- the PrintWriter to write to.public static String getHiddenFieldHTML(String name, String value)
public void outputGoToPageFunction(PrintWriter out, String name) throws WTException
out
- the PrintWriter to write the function to.name
- the name of the JavaScript function. If no name
is given, 'goToPage' is used.
WTException
public void outputSubmitFunction(PrintWriter out, String name)
out
- the PrintWriter to write toname
- the name of the functionpublic void outputScriptStart(PrintWriter out, String language)
out
- the PrintWriter to write to.language
- the String language to specify in the script tagpublic void outputScriptEnd(PrintWriter out)
out
- the PrintWriter to write to.protected Properties getParameters(HTTPRequest request)
protected static Properties combineParameters(Properties params_to_add, Properties original_params)
public static Persistable getObjectFromReference(String reference) throws WTException
WTException
public void outputUsesOccurrence(Properties properties, Locale locale, OutputStream os)
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link topublic void outputUsesOccurrenceData(Properties properties, Locale locale, OutputStream os)
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link topublic void extractOccurrenceInformation(Properties properties, Locale locale, OutputStream os) throws WTException
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link to
WTException
public void outputOccurrenceHeader(Properties properties, Locale locale, OutputStream os)
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link topublic void outputPathOccurrence(Properties properties, Locale locale, OutputStream os)
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link topublic void outputPathOccurrenceData(Properties properties, Locale locale, OutputStream os)
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link topublic void outputCombinedPathOccurrenceList(Properties properties, Locale locale, OutputStream os)
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link topublic void outputCombinedPathOccurrence(Properties properties, Locale locale, OutputStream os)
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link topublic void outputCombinedPathOccurrenceData(Properties properties, Locale locale, OutputStream os)
properties
- the Properties object containing the script parameterslocale
- the locale in which to display the linkos
- the OutputStream to write the link toprotected static String splitString(String string_to_split)
string_to_split
- the string to split
protected PartOccurrenceProcessor.Attribute[] getAttributeList(String attr_list)
attr_list
- a string containing a comma-separated list of
attributes
protected PartOccurrenceProcessor.Attribute[] getDefaultAttributeList()
public String getIcon(Object object)
public String getIcon(WTObject object)
public static String getReferenceStringForPersistable(Persistable obj) throws WTException
WTException
public String getIdentificationLink(Object object, Locale locale) throws WTException
WTException
public String getIdentification(Object object, Locale locale) throws WTException
WTException
public static void setUseStyleSheet(boolean useStyleSheet)
public static void setDefaultAction(String action)
public static void setDefaultTemplate(String template)
public static void setResource(String resource)
public static void setTemplatePath(String path)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |