org.loom.tags.messages
Class AbstractFormatTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.AbstractTag
org.loom.tags.messages.AbstractFormatTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag, LoomTag
- Direct Known Subclasses:
- FormatDateTag, FormatDurationTag, FormatFileSizeTag
public abstract class AbstractFormatTag
- extends AbstractTag
|
Method Summary |
void |
doTagImpl()
The method that must be implemented by the child class |
protected abstract java.lang.String |
format()
|
void |
setRepository(MessagesRepository repository)
|
void |
setScope(java.lang.String scope)
If var is not null, this is the scope where the value will be stored. |
void |
setVar(java.lang.String var)
|
| Methods inherited from class org.loom.tags.AbstractTag |
createWriterWrapper, doBody, doBufferedBody, doTag, endTag, evaluateExpression, getActionProperty, getAncestorWithClass, getBufferedBody, getExtendedAttributes, getMessagesRepository, getPageContext, getRequest, getResponse, getScopedAttribute, getWriter, initTag, printParentAttributes, removeScopedAttribute, setDynamicAttribute, setExtendedAttribute, setJspContext, setRequest, setResponse, setScopedAttribute, setWriter |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
repository
protected MessagesRepository repository
AbstractFormatTag
public AbstractFormatTag()
doTagImpl
public void doTagImpl()
throws javax.servlet.jsp.JspException,
java.io.IOException
- Description copied from class:
AbstractTag
- The method that must be implemented by the child class
- Specified by:
doTagImpl in class AbstractTag
- Throws:
javax.servlet.jsp.JspException
java.io.IOException
format
protected abstract java.lang.String format()
setRepository
public void setRepository(MessagesRepository repository)
setVar
public void setVar(java.lang.String var)
setScope
@Attribute
public void setScope(java.lang.String scope)
- If var is not null, this is the scope where the value will be stored.
Possible values are
page (default), request,
session and application.