|
|||||||||||
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
com.ptc.windchill.cadx.caddoc.PVXTemplateProcessor
Generates browser specific PVX html output when property page is run
in wildfire (embedded browser in ProE) mode.
The following arguments can be passed on the renderPVX to configure the
generated PVX.
These arguments have been added so the PVX can be customized solely thru
the
template file without modifiying this template processor class.
The following parameters are supported:
(Template Processor parameters are case sensitive so
make sure to use correct case when specifying parameters]
WIDTH
HEIGHT
showCopyright
showToolbar
showTitleBar
Work stil to do:
1)Add additional arguments in generated code per Michael K.
2)Add check to only generated PVX if object is in active
workspace - if this is necessary.
Supported API: false
Extendable: false
Fields inherited from class wt.templateutil.processor.DefaultTemplateProcessor |
ACTION, CLASS, CODEBASE, LINE_FEED_DELIMITER, MESSAGE_SEPARATOR, OID |
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 | |
PVXTemplateProcessor()
|
Method Summary | |
private boolean |
containsDocument(EPMWorkspace ws,
EPMDocument doc)
|
private void |
determineBrowserTags(Properties parameters,
Locale locale,
OutputStream os)
|
private boolean |
determineControls(EPMDocument doc)
|
private boolean |
determineControls(NewEPMDocument doc)
|
void |
generatePVXToolTips(Properties parameters,
Locale locale,
OutputStream os)
|
void |
generateUsePVXFlags(Properties parameters,
Locale locale,
OutputStream os)
|
private String |
getAdapterMethod()
|
private String |
getAnyEPMWorkspaceNameForCurrentUser()
|
private String |
getAssociatedWorkspaceName(EPMDocument target)
|
private boolean |
isLegalPVXUserAgent()
|
private boolean |
isProECADDocument(EPMDocument doc)
|
private String |
printIEInstallerLocation()
|
private void |
processParameters(Properties parameters)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(PVXTemplateProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
renderBlankImage(Properties parameters,
Locale locale,
OutputStream os)
|
void |
renderPVX(Properties parameters,
Locale locale,
OutputStream os)
Supported API: false |
private void |
renderPVXHtml(Properties parameters,
Locale locale,
OutputStream os)
|
void |
renderVisualData(Properties parameters,
Locale locale,
OutputStream os)
|
private void |
resetDefaults()
|
private void |
setLocalCacheWorkspace(EPMDocument currentDoc,
String assocWS)
|
private void |
setLocalCacheWTWSURI(EPMDocument currentDoc,
String docLocation)
|
private void |
setLocalCacheWTWSURI(NewEPMDocument currentDoc)
|
private boolean |
usePVX()
|
static boolean |
usePVX(Object obj,
HTTPRequest req)
|
private boolean |
useSheetControls(String name)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private String serverName
private String serverURL
private String activeWorkspaceName
private String workspaceNames
private String wsNameFromURL
private String modelname
private String modelnumber
private String wclocation
private String version
private String oid
private String pvxdriverJarLocationOnUnix
private static String wtwsProtocolString
private static String wtpubProtocolString
private static String disablePVX
private String localCacheUGCFileName
private String localCacheWTWSURI
private String width
private String height
private String showCopyright
private String showToolbar
private String showTitleBar
private String fromWS
private String userAgent
private String currentStartTag
private String currentPVXWindowsInstaller
private String currentEndTag
private final String IEClassId
private boolean newlf
private boolean displayPVX
private boolean addPVXWindowsCodebase
private static final String PVXRESOURCE
private static String pvxInstallerLocation
private static String cadxpvxInstallerLocation
private static String pvxdriverJarRelativeLocation
private static boolean placeholderdoc
private static boolean VERBOSE
Constructor Detail |
public PVXTemplateProcessor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class DefaultTemplateProcessor
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class DefaultTemplateProcessor
input
-
IOException
ClassNotFoundException
protected boolean readVersion(PVXTemplateProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void renderPVX(Properties parameters, Locale locale, OutputStream os)
parameters
- locale
- os
- private void renderBlankImage(Properties parameters, Locale locale, OutputStream os)
parameters
- locale
- os
- private void renderPVXHtml(Properties parameters, Locale locale, OutputStream os)
parameters
- locale
- os
- private void determineBrowserTags(Properties parameters, Locale locale, OutputStream os)
parameters
- locale
- os
- private boolean isLegalPVXUserAgent()
private void processParameters(Properties parameters)
private void resetDefaults()
private boolean isProECADDocument(EPMDocument doc)
public void generatePVXToolTips(Properties parameters, Locale locale, OutputStream os)
public void generateUsePVXFlags(Properties parameters, Locale locale, OutputStream os)
private String getAdapterMethod()
private boolean containsDocument(EPMWorkspace ws, EPMDocument doc) throws WTException
WTException
private String getAssociatedWorkspaceName(EPMDocument target) throws WTException
WTException
private void setLocalCacheWorkspace(EPMDocument currentDoc, String assocWS) throws WTException
WTException
private void setLocalCacheWTWSURI(NewEPMDocument currentDoc)
private void setLocalCacheWTWSURI(EPMDocument currentDoc, String docLocation) throws WTException
WTException
private boolean determineControls(EPMDocument doc)
private boolean determineControls(NewEPMDocument doc)
private boolean useSheetControls(String name)
private String getAnyEPMWorkspaceNameForCurrentUser()
private String printIEInstallerLocation()
public void renderVisualData(Properties parameters, Locale locale, OutputStream os)
private boolean usePVX()
public static boolean usePVX(Object obj, HTTPRequest req)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |