nl.gx.webmanager.taglib.edit
Class FormatDateTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by nl.gx.webmanager.taglib.edit.FormatDateTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class FormatDateTag
extends javax.servlet.jsp.tagext.SimpleTagSupport


Constructor Summary
FormatDateTag()
           
 
Method Summary
 void doTag()
           
 java.lang.Boolean getApplyTimeZone()
          Get whether time zone adjustments should be applied.
 java.lang.String getType()
          Get the formatting type.
 java.lang.Object getValue()
          Returns the date which will be used by this tag.
 java.lang.String getVar()
          Returns the identifier under which the localized datetime should be stored in the pageContext .
 void setApplyTimeZone(java.lang.Boolean applyTimeZone)
          Set whether time zone adjustments should be applied.
 void setType(java.lang.String type)
          Set the format type.
 void setValue(java.lang.Object value)
          Sets the date which will be used by this tag.
 void setVar(java.lang.String var)
          Sets the identifier of the optional entry in the pageContext under which the localized datetime should be stored.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatDateTag

public FormatDateTag()
Method Detail

setValue

public void setValue(java.lang.Object value)
Sets the date which will be used by this tag.

Parameters:
value - the date to be localized

getValue

public java.lang.Object getValue()
Returns the date which will be used by this tag.

Returns:
the date which will be used by this tag.

getVar

public java.lang.String getVar()
Returns the identifier under which the localized datetime should be stored in the pageContext .

Returns:
the name of the optional entry in the pageContext under which the localized datetime should be stored.

setVar

public void setVar(java.lang.String var)
Sets the identifier of the optional entry in the pageContext under which the localized datetime should be stored.

Parameters:
var - the name of the identifier

getType

public java.lang.String getType()
Get the formatting type.

Returns:
The type if set otherwise null.

setType

public void setType(java.lang.String type)
Set the format type.

Parameters:
type - Should be one of 'date', 'time' or 'both'.

getApplyTimeZone

public java.lang.Boolean getApplyTimeZone()
Get whether time zone adjustments should be applied.

Returns:
True means adjust for time zone.

setApplyTimeZone

public void setApplyTimeZone(java.lang.Boolean applyTimeZone)
Set whether time zone adjustments should be applied.

Parameters:
applyTimeZone - True means adjust for time zone.

doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2007-2011 GX Software BV. All Rights Reserved.