|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
public abstract class AbstractSimpleTag
Constructor Summary | |
---|---|
AbstractSimpleTag()
|
Method Summary | |
---|---|
protected String |
getBufferBody(boolean trim)
|
protected IScriptReporter |
getHtmlTag(ServletRequest req)
This method will return the scriptReporter that is represented by the HTML tag. |
protected String |
getIdForTagId(String tagId)
This method will generate a real id based upon the passed in tagId. |
protected String |
getInlineError()
|
protected PageContext |
getPageContext()
This method will attempt to cast the JspContext into a PageContext. |
protected IScriptReporter |
getScriptReporter()
Return the closest ScriptReporter in the parental chain. |
abstract String |
getTagName()
Return the name of the tag. |
protected Locale |
getUserLocale()
This method will return the user local of the request. |
protected boolean |
hasErrors()
This method will return true if there have been any errors registered on this
tag. |
void |
registerTagError(AbstractPageError error)
|
void |
registerTagError(String message,
Throwable e)
This will report an error from a tag. |
protected void |
reportErrors()
This method will write out the String returned by getErrorsReport to the
response output stream. |
protected String |
rewriteName(String name)
This method will rewrite the name (id) by passing it to the URL Rewritter and getting back a value. |
protected String |
setNonEmptyValueAttribute(String attrValue)
Filter out the empty string value and return either the value or null. |
protected String |
setRequiredValueAttribute(String attrValue,
String attrName)
Report an error if the value of attrValue is equal to the empty string, otherwise return
that value. |
protected void |
write(String string)
This mehod will write the passed string to the response. |
Methods inherited from class SimpleTagSupport |
---|
doTag, findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSimpleTag()
Method Detail |
---|
public abstract String getTagName()
getTagName
in interface INetuiTag
protected String getBufferBody(boolean trim) throws JspException, IOException
trim
-
JspException
IOException
protected final String setRequiredValueAttribute(String attrValue, String attrName) throws JspException
attrValue
is equal to the empty string, otherwise return
that value. If attrValue
is equal to the empty string, an error is registered and
null is returned.
attrValue
- The value to be checked for the empty stringattrName
- The name of the attribute
JspException
- A JspException will be thrown if inline error reporting is turned off.protected final String setNonEmptyValueAttribute(String attrValue)
attrValue
is equal to the empty string this will return null, otherwise it will
return the value of attrValue
.
attrValue
- This is the value we will check for the empty string.
protected Locale getUserLocale()
protected PageContext getPageContext()
protected final void write(String string) throws JspException
string
- to be written to the response.
JspException
public void registerTagError(String message, Throwable e) throws JspException
registerTagError
in interface INetuiTag
message
- - the message to register with the error
JspException
- - if in-page error reporting is turned off this method will always
throw a JspException.public void registerTagError(AbstractPageError error) throws JspException
registerTagError
in interface INetuiTag
JspException
protected boolean hasErrors()
true
if there have been any errors registered on this
tag. Otherwise it returns false
true
if errors have been reported on this tag.protected void reportErrors() throws JspException
String
returned by getErrorsReport
to the
response output stream.
JspException
- if write
throws an exception.write(java.lang.String)
protected String getInlineError()
protected IScriptReporter getScriptReporter()
ScriptReporter
in the parental chain. Searching starts
at this node an moves upward through the parental chain.
ScriptReporter
or null if there is not one found.protected IScriptReporter getHtmlTag(ServletRequest req)
protected final String rewriteName(String name)
name
- the name that will be rewritten
protected final String getIdForTagId(String tagId)
tagId
- The base tagId set on a tag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |