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.14.2.3 2004/05/26 21:58:53 michiel Exp $
- Author:
- Michiel Meeuwissen, Vincent vd Locht
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateHandler
public DateHandler(FieldInfoTag tag)
- Constructor for LongHandler.
- Parameters:
tag -
htmlInput
public java.lang.String htmlInput(Node node,
Field field,
boolean search)
throws javax.servlet.jsp.JspTagException
- Specified by:
htmlInput in interface TypeHandler- Overrides:
htmlInput in class AbstractTypeHandler
- Throws:
javax.servlet.jsp.JspTagException- 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
- Throws:
javax.servlet.jsp.JspTagException
useHtmlInput
public boolean useHtmlInput(Node node,
Field field)
throws javax.servlet.jsp.JspTagException
- Description copied from interface:
TypeHandler
- returns true if setValue happened.
- Specified by:
useHtmlInput in interface TypeHandler- Overrides:
useHtmlInput in class AbstractTypeHandler
- Throws:
javax.servlet.jsp.JspTagException- See Also:
TypeHandler.useHtmlInput(Node, Field)
getSpecifiedValue
protected long getSpecifiedValue(Field field)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
whereHtmlInput
public java.lang.String whereHtmlInput(Field field)
throws javax.servlet.jsp.JspTagException
- Specified by:
whereHtmlInput in interface TypeHandler- Overrides:
whereHtmlInput in class AbstractTypeHandler
- Throws:
javax.servlet.jsp.JspTagException- See Also:
TypeHandler.whereHtmlInput(Field)
whereHtmlInput
public Constraint whereHtmlInput(Field field,
Query query)
throws javax.servlet.jsp.JspTagException
- Description copied from class:
AbstractTypeHandler
- Adds search constraint to Query object.
- Specified by:
whereHtmlInput in interface TypeHandler- Overrides:
whereHtmlInput in class AbstractTypeHandler
- Returns:
- null if nothing to be searched, the constraint if constraint added
- Throws:
javax.servlet.jsp.JspTagException
paramHtmlInput
public void paramHtmlInput(ParamHandler handler,
Field field)
throws javax.servlet.jsp.JspTagException
- Specified by:
paramHtmlInput in interface TypeHandler- Overrides:
paramHtmlInput in class AbstractTypeHandler
- Throws:
javax.servlet.jsp.JspTagException
MMBase build 1.7.1.20041002