|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.AbstractTag
org.loom.tags.messages.AbstractFormatTag
org.loom.tags.messages.FormatDurationTag
@Tag(bodyContent=SCRIPTLESS,
example="<l:formatDuration value=\"${myDurationInMillis}\"/>")
public class FormatDurationTagFormat a lapse of time in seconds/minutes/hours/days. Equivalent to DateHelper.distance_of_time_in_words in Ruby and Date.toDuration().humanized() in format.js
| Field Summary |
|---|
| Fields inherited from class org.loom.tags.messages.AbstractFormatTag |
|---|
repository |
| Fields inherited from class org.loom.tags.AbstractTag |
|---|
expressionLanguageProxy, loomServletRequestFactory, out, request, response |
| Constructor Summary | |
|---|---|
FormatDurationTag()
|
|
| Method Summary | |
|---|---|
java.lang.String |
format()
|
void |
setMaxUnits(int maxUnitsCount)
|
void |
setValue(long value)
|
| Methods inherited from class org.loom.tags.messages.AbstractFormatTag |
|---|
doTagImpl, setRepository, setScope, setVar |
| 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 |
| Constructor Detail |
|---|
public FormatDurationTag()
| Method Detail |
|---|
public java.lang.String format()
format in class AbstractFormatTagpublic void setValue(long value)
public void setMaxUnits(int maxUnitsCount)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||