|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.components.HTMLComponent
This abstract component contains the common processing code for displaying
and HTML component. It handles tag fomat, tag attributes, and nesting
of components.In most cases any HTML component can be displayed simply
by calling the show() method defined in this class.
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.
Supported API: true
Extendable: true
Field Summary | |
static String |
CLASS
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
private static String |
CODEBASE
Deprecated. |
static String |
COMPONENT_ID
Deprecated. |
static String |
COMPONENT_ID_SEPARATOR
Deprecated. |
static String |
CREATE
Deprecated. |
static String |
DEFAULT_SERVICE_NAME
Deprecated. |
static String |
DEFAULTS_ONLY
Deprecated. |
static String |
EMPTY_STRING
Deprecated. |
private Vector |
htmlComponents
Deprecated. |
static String |
ID
Deprecated. |
static Locale |
ID_US_ENGLISH_LOCALE
Deprecated. |
private boolean |
inheritStyle
Deprecated. |
private String |
name
Deprecated. |
static String |
NAME
Deprecated. |
static String |
NULLVALUE
Deprecated. |
static String |
PRINT_TAG_ATTR
Deprecated. |
private boolean |
printTagAttributes
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private String |
serviceName
Deprecated. |
static String |
SERVICENAME
Deprecated. |
private HTTPState |
state
Deprecated. |
private String |
tag
Deprecated. |
static String |
TAG
Deprecated. |
private String[] |
tagList
Deprecated. |
private static Hashtable |
tagResourceKeys
Deprecated. |
private Hashtable |
tagSettings
Deprecated. |
static String |
UPDATE
Deprecated. |
private boolean |
useDefaultsOnly
Deprecated. |
protected static boolean |
VERBOSE
Deprecated. |
static String |
VIEW
Deprecated. |
private PrintWriter |
writer
Deprecated. |
Constructor Summary | |
HTMLComponent()
Deprecated. |
Method Summary | |
private void |
addAdditionalAttributes()
Deprecated. |
private void |
addAttribute(String attribute)
Deprecated. |
private void |
addClassAttribute()
Deprecated. |
private void |
addIDAttribute()
Deprecated. |
StringBuffer |
appendID(StringBuffer buffer)
Deprecated. Appends ID= |
StringBuffer |
appendID(StringBuffer buffer,
String suffix)
Deprecated. Appends " ID= |
String |
appendToID(String suffix)
Deprecated. Returns a string in the format |
static String |
appendToID(String id,
String suffix)
Deprecated. Returns a string in the format |
static String |
createIDForComponent(Object value)
Deprecated. If value is WTObject, DefaultMutableTreeNode, shortcut, or WTAttribute then a unique id on the objects DisplayIdentity is created and returned. |
String |
endComponent(Object value,
OutputStream os,
Locale locale)
Deprecated. |
Vector |
getHtmlComponents()
Deprecated. |
String |
getID()
Deprecated. Returns the component's ID value. |
private String |
getID(Hashtable props)
Deprecated. Returns the value of the ID property set in props. |
private String |
getIDEqualsValue(String value)
Deprecated. |
protected static String |
getIdProp(Properties props)
Deprecated. Looks for value for the key "id" (case insensitive) in props. |
String |
getName()
Deprecated. |
protected String |
getOID(Object value)
Deprecated. As of WNC 6.2.6 DSU03. To get a unique string see createIDForComponent. |
PrintWriter |
getPrintWriter(OutputStream out,
Locale locale)
Deprecated. |
protected Object |
getRealValue(Object value)
Deprecated. Used by components to get the right object to use to creat trail ids, urls, label values etc. |
String |
getServiceName()
Deprecated. |
HTTPState |
getState()
Deprecated. |
String |
getTag()
Deprecated. |
String |
getTagID(Hashtable props)
Deprecated. If there is an entry for the |
String |
getTagIDKey()
Deprecated. Returns the |
String[] |
getTagList()
Deprecated. |
Hashtable |
getTagSettings()
Deprecated. |
static URLFactory |
getURLFactory()
Deprecated. |
void |
init(String selector,
Object value,
HTMLComponentFactory componentFactory,
String mode,
Properties props)
Deprecated. |
String |
insertID(String htmlString)
Deprecated. Inserts ID= |
String |
insertID(String tag,
String htmlString)
Deprecated. Inserts ID= |
boolean |
isInheritStyle()
Deprecated. |
boolean |
isPrintTagAttributes()
Deprecated. |
boolean |
isUseDefaultsOnly()
Deprecated. |
static void |
main(String[] args)
Deprecated. |
private static String |
makeSureNotQuoted(String value)
Deprecated. |
String |
putTagID(Hashtable props,
String value)
Deprecated. |
String |
putTagID(Hashtable props,
String tagIDKey,
String idSuffix)
Deprecated. |
String |
removeID(Hashtable props)
Deprecated. Removes entry for ID property from props. |
String |
removeTagID(Hashtable props)
Deprecated. Removes entry for |
void |
setHtmlComponents(Vector a_HtmlComponents)
Deprecated. |
void |
setID(String value)
Deprecated. Sets the components ID value to the specified value. |
void |
setInheritStyle(boolean a_InheritStyle)
Deprecated. |
void |
setName(String name)
Deprecated. |
void |
setPrintTagAttributes(boolean a_PrintTagAttributes)
Deprecated. |
void |
setServiceName(String a_ServiceName)
Deprecated. |
void |
setState(HTTPState state)
Deprecated. |
void |
setTag(String a_Tag)
Deprecated. |
void |
setTagList(String[] a_TagList)
Deprecated. |
abstract void |
setTagListArray()
Deprecated. |
void |
setTagListDefaults(WTProperties defaultProperties)
Deprecated. |
void |
setTagSettings(Hashtable a_TagSettings)
Deprecated. |
void |
setTagValue(String tagID,
String tagValue)
Deprecated. |
void |
setUseDefaultsOnly(boolean a_UseDefaultsOnly)
Deprecated. |
String |
show(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. |
String |
showSubComponents(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. |
String |
startComponent(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. |
private static String |
unquoteAndReplaceSplCharsInID(String value)
Deprecated. |
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
private String[] tagList
private Hashtable tagSettings
public static final String DEFAULT_SERVICE_NAME
private boolean useDefaultsOnly
private String serviceName
private String tag
private boolean printTagAttributes
private boolean inheritStyle
public static final String DEFAULTS_ONLY
public static final String PRINT_TAG_ATTR
public static final String SERVICENAME
private Vector htmlComponents
public static final String NAME
public static final String EMPTY_STRING
private HTTPState state
protected static boolean VERBOSE
private static String CODEBASE
private static Hashtable tagResourceKeys
public static final String VIEW
public static final String NULLVALUE
public static final String CREATE
public static final String UPDATE
public static final String CLASS
public static final String TAG
public static final String ID
public static final String COMPONENT_ID
public static final String COMPONENT_ID_SEPARATOR
private PrintWriter writer
private String name
public static final Locale ID_US_ENGLISH_LOCALE
Constructor Detail |
public HTMLComponent()
Method Detail |
public String[] getTagList()
public void setTagList(String[] a_TagList)
a_TagList
- public Hashtable getTagSettings()
public void setTagSettings(Hashtable a_TagSettings)
a_TagSettings
- public boolean isUseDefaultsOnly()
public void setUseDefaultsOnly(boolean a_UseDefaultsOnly)
a_UseDefaultsOnly
- public String getServiceName()
public void setServiceName(String a_ServiceName)
a_ServiceName
- public String getTag()
public void setTag(String a_Tag)
a_Tag
- public boolean isPrintTagAttributes()
public void setPrintTagAttributes(boolean a_PrintTagAttributes)
a_PrintTagAttributes
- public boolean isInheritStyle()
public void setInheritStyle(boolean a_InheritStyle)
a_InheritStyle
- public Vector getHtmlComponents()
public void setHtmlComponents(Vector a_HtmlComponents)
a_HtmlComponents
- public String show(Object value, Properties formData, OutputStream os, Locale locale)
value
- formData
- os
- locale
-
public void init(String selector, Object value, HTMLComponentFactory componentFactory, String mode, Properties props)
selector
- value
- The current context objectcomponentFactory
- mode
- props
- provides the service name and the current key if they exist.public String startComponent(Object value, Properties formData, OutputStream os, Locale locale)
value
- formData
- os
- locale
-
public String endComponent(Object value, OutputStream os, Locale locale)
value
- os
- locale
-
public String showSubComponents(Object value, Properties formData, OutputStream os, Locale locale)
value
- formData
- os
- locale
-
public abstract void setTagListArray()
public void setTagListDefaults(WTProperties defaultProperties)
defaultProperties
- public void setTagValue(String tagID, String tagValue)
tagID
- The key value that should be found in the taglist array.tagValue
- the value that should be stored.public PrintWriter getPrintWriter(OutputStream out, Locale locale)
out
- locale
-
public static void main(String[] args)
args
- public void setState(HTTPState state)
public HTTPState getState()
private void addAdditionalAttributes()
private void addClassAttribute()
private void addIDAttribute()
private void addAttribute(String attribute)
public void setName(String name)
public String getName()
public String getID()
public void setID(String value)
private String getID(Hashtable props)
public String getTagIDKey()
public String putTagID(Hashtable props, String tagIDKey, String idSuffix)
public String putTagID(Hashtable props, String value)
public String getTagID(Hashtable props)
public StringBuffer appendID(StringBuffer buffer)
public String insertID(String htmlString)
public String insertID(String tag, String htmlString)
public StringBuffer appendID(StringBuffer buffer, String suffix)
public String appendToID(String suffix)
public static String appendToID(String id, String suffix)
private String getIDEqualsValue(String value)
public String removeID(Hashtable props)
public String removeTagID(Hashtable props)
public static URLFactory getURLFactory() throws WTException
WTException
private static String makeSureNotQuoted(String value)
private static String unquoteAndReplaceSplCharsInID(String value)
protected String getOID(Object value)
public static String createIDForComponent(Object value)
protected static String getIdProp(Properties props)
protected Object getRealValue(Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |