org.rhq.enterprise.gui.legacy.taglib
Class DateFormatter

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.rhq.enterprise.gui.legacy.taglib.VarSetterBaseTag
          extended by org.rhq.enterprise.gui.legacy.taglib.DateFormatter
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class DateFormatter
extends VarSetterBaseTag

Tag that will take a value that is a long, or a runtime expression, and output a date representation of that long.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
DateFormatter()
           
 
Method Summary
 int doStartTag()
          This evaluates value as a struts expression, then outputs the resulting string to the pageContext's out.
 Boolean getShowTime()
          Getter for property showTime.
 Boolean getTime()
          Getter for property time.
 Long getValue()
           
 void release()
          Reset the values of the tag.
 void setShowTime(Boolean showTime)
          Setter for property showTime.
 void setTime(Boolean time)
          Setter for property time.
 void setValue(Long v)
           
 
Methods inherited from class org.rhq.enterprise.gui.legacy.taglib.VarSetterBaseTag
getVar, setScope, setScopedVariable, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormatter

public DateFormatter()
Method Detail

getValue

public Long getValue()

setValue

public void setValue(Long v)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
This evaluates value as a struts expression, then outputs the resulting string to the pageContext's out.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Reset the values of the tag.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class VarSetterBaseTag

getTime

public Boolean getTime()
Getter for property time.

Returns:
Value of property time.

setTime

public void setTime(Boolean time)
Setter for property time.

Parameters:
time - New value of property time.

getShowTime

public Boolean getShowTime()
Getter for property showTime.

Returns:
Value of property showTime.

setShowTime

public void setShowTime(Boolean showTime)
Setter for property showTime.

Parameters:
time - New value of property showTime.


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.