|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
com.ibm.btt.dojo.tag.AbstractTag
public abstract class AbstractTag
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
attributes
|
protected java.lang.String |
dataName
This property indicates the name of the data element that will be bound with the widget. |
protected static BTTLog |
log
|
Constructor Summary | |
---|---|
AbstractTag()
|
Method Summary | |
---|---|
protected void |
afterGenerateTag(java.lang.StringBuffer buffer)
This method is used for the subclass to inject other JavaScript code or generating the hidden HTML fields |
protected void |
beforeGenerateTag(java.lang.StringBuffer buffer)
This method is used for the subclass to inject other JavaScript code or generating the hidden HTML fields |
protected void |
generateAttributes(java.lang.StringBuffer buffer,
java.util.Map<java.lang.String,java.lang.String> attributes)
Generate the attributes |
protected void |
generateEndTag(java.lang.StringBuffer buffer,
java.lang.String tagName)
Used for the subclass to override to generate the body tag of the dojo code, if there is no body tag, then don¡¯t override this. |
protected void |
generateStartTag(java.lang.StringBuffer buffer,
java.lang.String tagName,
java.util.Map<java.lang.String,java.lang.String> attributes)
Generate the start tag of the Dojo Widget |
java.lang.String |
getDataName()
|
JspContextServices |
getJspContextServices()
Returns an instance of JspContextServices called "utb" in the JSP pageContext. |
protected java.lang.String |
getNLSMessage(java.lang.String key)
Get NLS message from the resource bundle |
java.util.ResourceBundle |
getResourceBundle()
Returns a resource bundle |
protected java.lang.String |
getStringValue(java.lang.String dataName)
Get the value from the context and convert to string |
protected abstract java.lang.String |
getTagName()
The tag name of the generated DOJO widget,if it isn't DOJO widget tag, then just return null. |
protected java.util.Locale |
getUserLocale()
Get the user's locale, this locale should be initialized in the operation. |
protected void |
initAttributes()
This method is used for subclass to initialize the tag attributes |
protected boolean |
isEmpty(java.lang.String str)
Check the string is null or empty |
void |
setDataName(java.lang.String dataName)
|
void |
setDynamicAttribute(java.lang.String uri,
java.lang.String localName,
java.lang.Object value)
|
protected void |
write(java.lang.String str)
Write the string to the response. |
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
---|
doTag, findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,java.lang.String> attributes
protected static BTTLog log
protected java.lang.String dataName
Constructor Detail |
---|
public AbstractTag()
Method Detail |
---|
public java.lang.String getDataName()
public void setDataName(java.lang.String dataName)
protected abstract java.lang.String getTagName()
public void setDynamicAttribute(java.lang.String uri, java.lang.String localName, java.lang.Object value) throws javax.servlet.jsp.JspException
setDynamicAttribute
in interface javax.servlet.jsp.tagext.DynamicAttributes
javax.servlet.jsp.JspException
protected void initAttributes()
protected void beforeGenerateTag(java.lang.StringBuffer buffer)
buffer
- the string buffer used to append the dojo codeprotected void afterGenerateTag(java.lang.StringBuffer buffer)
buffer
- the string buffer used to append the dojo codeprotected void generateStartTag(java.lang.StringBuffer buffer, java.lang.String tagName, java.util.Map<java.lang.String,java.lang.String> attributes)
buffer
- the string buffer used to append the dojo codeprotected void generateEndTag(java.lang.StringBuffer buffer, java.lang.String tagName)
buffer
- the string buffer used to append the dojo codeprotected void generateAttributes(java.lang.StringBuffer buffer, java.util.Map<java.lang.String,java.lang.String> attributes)
buffer
- the string buffer contains the generated XMLattributes
- the map of the attributesprotected java.lang.String getNLSMessage(java.lang.String key)
key
- the resource bundle key
protected void write(java.lang.String str) throws javax.servlet.jsp.JspException
str
-
javax.servlet.jsp.JspException
protected java.lang.String getStringValue(java.lang.String dataName)
dataName
- the data name
protected java.util.Locale getUserLocale()
protected boolean isEmpty(java.lang.String str)
str
- the checked string
public java.util.ResourceBundle getResourceBundle()
public JspContextServices getJspContextServices()
If a different implementation of JspContextServices must be used, it must
be defined as a jspbean called "utb&auot; at the beginning of each
JSP, to do this use the following:
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |