|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport com.bea.wlw.netui.tags.AbstractBaseTag
public abstract class AbstractBaseTag
Abstract tag class that most netui tags are based from. AbstractBaseTag provides the following functionality:
Field Summary | |
---|---|
protected static int |
ATTR_GENERAL
|
protected static int |
ATTR_GENERAL_EXPRESSION
|
protected static int |
ATTR_JAVASCRIPT
|
protected static int |
ATTR_STYLE
|
static String |
JAVASCRIPT_STATUS
|
static String |
NETUI_UNIQUE_CNT
|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface com.bea.wlw.netui.tags.html.HtmlConstants |
---|
ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEIGHT, HREF, HREFLANG, HSPACE, HTML, ID, IMAGE, INPUT, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, INPUT_PASSWORD, INPUT_RADIO, INPUT_RESET, INPUT_SUBMIT, INPUT_TEXT, ISMAP, LABEL, LANG, LINK, LONGDESC, MAXLENGTH, METHOD, NAME, ONBLUR, ONCHANGE, ONCLICK, ONDBLCLICK, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONSELECT, ONSUBMIT, ONUNLOAD, OPTION, READONLY, REL, REV, ROWS, RULES, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TD, TEXT, TEXTAREA, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
AbstractBaseTag()
|
Method Summary | |
---|---|
protected String |
addTagIdMapping(String tagId,
String value)
This method will add a tagId and value to the ScriptRepoter TagId map. |
protected boolean |
containsExpression(String expression)
|
protected String |
evaluateAttributeToString(String expression,
String attrName)
This method will evaluate an attribute and return the real value or null . |
protected Object |
evaluateExpression(String expression,
String attrName)
|
protected String |
filter(String value)
|
protected String |
filter(String value,
boolean markupHTMLSpaceReturn)
Filter the specified string for characters that are senstive to HTML interpreters, returning the string with these characters replaced by the corresponding character entities. |
protected String |
formatErrorString(String key,
Object[] values)
|
protected String |
formatString(String key,
Object[] values)
|
protected String |
getAttribute(int type,
String key)
Deprecated. |
protected String |
getErrorsReport()
|
protected ExpressionEvaluator |
getExpressionEvaluator()
|
protected JavaScriptUtils |
getJavaScriptUtils(javax.servlet.http.HttpServletRequest request)
This method will return the javaScriptUtils that is assocated
with this request. |
Form |
getNearestForm()
Returns the closest parent form tag, or null if there is none. |
protected int |
getNextId(javax.servlet.http.HttpServletRequest req)
This method will generate the next unique int within the HTML tag. |
protected String |
getQualifiedBundleName(String bundleName)
Qualify the given bundle name with the current module path. |
protected ScriptReporter |
getScriptReporter()
|
abstract String |
getTagName()
|
protected Locale |
getUserLocale()
|
protected boolean |
hasErrors()
|
protected boolean |
isExpression(String expression)
|
protected void |
localRelease()
This is a method that will initialize all temp state on a tag and should be called in the doEndTag method. |
protected void |
prepForRendering(AbstractAttributeState state)
This method will return a string representing all of the expression based attributes. |
protected void |
registerAttribute(int type,
String key,
String value)
Deprecated. |
void |
registerError(EvalErrorInfo error)
This method will add an error to the errors begin tracked by this tag. |
String |
registerTagError(String message)
This will report an error from a tag. |
void |
release()
|
protected void |
removeAttribute(int type,
String key)
Deprecated. |
protected void |
renderAttribute(weblogic.utils.UnsyncStringBuffer buf,
String name,
String value)
Deprecated. |
protected String |
renderAttributes(int type)
Deprecated. |
protected void |
reportErrors()
This will report an expression error. |
protected String |
rewriteName(String name)
This method will rewrite the name (id) by passing it to the URL Rewritter and getting back a value. |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
protected void |
updateExpression(String expr,
Object value)
|
protected void |
write(String string)
This mehod will write the passed string to the response. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setParent |
Field Detail |
---|
public static final String JAVASCRIPT_STATUS
public static final String NETUI_UNIQUE_CNT
protected static final int ATTR_GENERAL
protected static final int ATTR_STYLE
protected static final int ATTR_JAVASCRIPT
protected static final int ATTR_GENERAL_EXPRESSION
Constructor Detail |
---|
public AbstractBaseTag()
Method Detail |
---|
public abstract String getTagName()
public void setPageContext(javax.servlet.jsp.PageContext pc)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
setPageContext
in class javax.servlet.jsp.tagext.TagSupport
protected void localRelease()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public String registerTagError(String message)
message
- - the message to register with the error
protected final ExpressionEvaluator getExpressionEvaluator()
protected void registerAttribute(int type, String key, String value)
protected void removeAttribute(int type, String key)
protected String getAttribute(int type, String key)
protected String renderAttributes(int type)
protected final void write(String string)
string
- to be written to the response.protected final String filter(String value)
protected String filter(String value, boolean markupHTMLSpaceReturn)
value
- The string to be filtered and returnedmarkupHTMLSpaceReturn
- convert space characters and return characters
to and <br /> marketup for html.protected String formatString(String key, Object[] values)
protected String formatErrorString(String key, Object[] values)
protected Object evaluateExpression(String expression, String attrName)
protected String evaluateAttributeToString(String expression, String attrName)
null
. If the attribute contains an expression
the expression will be evaluted and the object found returned as a
String
. If the attributres contains an expression and
doesn't return a value then null
will be returned. if
the attribute doesn't contain an expresion it will be returned
unchanged.
protected boolean isExpression(String expression)
protected boolean containsExpression(String expression)
protected boolean hasErrors()
protected String getErrorsReport()
protected void reportErrors() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected String rewriteName(String name)
public void registerError(EvalErrorInfo error)
protected void updateExpression(String expr, Object value) throws ExpressionUpdateException, javax.servlet.jsp.JspException
ExpressionUpdateException
javax.servlet.jsp.JspException
protected final void renderAttribute(weblogic.utils.UnsyncStringBuffer buf, String name, String value)
null
. If the
value is null
the attribute will not be appended to the
StringBuffer
.
public Form getNearestForm()
protected String addTagIdMapping(String tagId, String value)
protected int getNextId(javax.servlet.http.HttpServletRequest req)
protected ScriptReporter getScriptReporter()
protected JavaScriptUtils getJavaScriptUtils(javax.servlet.http.HttpServletRequest request)
javaScriptUtils
that is assocated
with this request. If this doesn't exist, it will be created before it is
returned.
request
- the HttpServletRequest associated with this request
JavaScriptUtils
assocated with the requestprotected String getQualifiedBundleName(String bundleName)
protected Locale getUserLocale()
protected void prepForRendering(AbstractAttributeState state) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |