org.mmbase.bridge.jsp.taglib.typehandler
Class DateHandler

java.lang.Object
  |
  +--org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler
        |
        +--org.mmbase.bridge.jsp.taglib.typehandler.DateHandler
All Implemented Interfaces:
TypeHandler

public class DateHandler
extends AbstractTypeHandler

The 'date' type does not exist yet, this class is used in IntegerHandler and LongHandler now.

Since:
MMBase-1.6
Version:
$Id: DateHandler.java,v 1.1.2.3 2003/05/09 15:13:37 vpro Exp $
Author:
Michiel Meeuwissen, Vincent vd Locht

Fields inherited from class org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler
context
 
Constructor Summary
DateHandler(FieldInfoTag context)
          Constructor for LongHandler.
 
Method Summary
protected  int checkYear(java.lang.Integer year, java.lang.String fieldName)
          Just to override.
 java.lang.String htmlInput(Node node, Field field, boolean search)
           
 java.lang.String useHtmlInput(Node node, Field field)
           
 java.lang.String whereHtmlInput(Field field)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler
prefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateHandler

public DateHandler(FieldInfoTag context)
Constructor for LongHandler.
Parameters:
context -  
Method Detail

htmlInput

public java.lang.String htmlInput(Node node,
                                  Field field,
                                  boolean search)
                           throws javax.servlet.jsp.JspTagException
Overrides:
htmlInput in class AbstractTypeHandler
See Also:
TypeHandler.htmlInput(Node, Field, boolean)

checkYear

protected int checkYear(java.lang.Integer year,
                        java.lang.String fieldName)
                 throws javax.servlet.jsp.JspTagException
Just to override. For example if the date is stored in an int and not in a long, then the year can be checked.
Returns:
int

useHtmlInput

public java.lang.String useHtmlInput(Node node,
                                     Field field)
                              throws javax.servlet.jsp.JspTagException
Overrides:
useHtmlInput in class AbstractTypeHandler
See Also:
TypeHandler.useHtmlInput(Node, Field)

whereHtmlInput

public java.lang.String whereHtmlInput(Field field)
                                throws javax.servlet.jsp.JspTagException
Overrides:
whereHtmlInput in class AbstractTypeHandler
See Also:
TypeHandler.whereHtmlInput(Field)


MMBase build 1.6.5.20030923