|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler
org.mmbase.bridge.jsp.taglib.typehandler.DateHandler
public class DateHandler
| Field Summary |
|---|
| Fields inherited from class org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler |
|---|
eh, gotEnumHandler, tag |
| Constructor Summary | |
|---|---|
DateHandler(FieldInfoTag tag)
|
|
| Method Summary | |
|---|---|
protected int |
checkYear(int y,
String fieldName)
Just to override. |
protected Calendar |
getCalendarValue(Node node,
Field field)
|
protected Object |
getFieldValue(Node node,
Field field)
Returns the field value as specified by the client's post. |
protected Object |
getFieldValue(Node node,
Field field,
boolean useDefault)
Returns the field value to be used in the page. |
protected DateTimePattern |
getPattern(DataType dt)
|
protected Calendar |
getSpecifiedValue(Field field,
Calendar cal)
|
String |
htmlInput(Node node,
Field field,
boolean search)
Produces an form input field for the given Node, and Field. |
void |
paramHtmlInput(ParamHandler handler,
Field field)
|
boolean |
useHtmlInput(Node node,
Field field)
returns true if setValue happened. |
String |
whereHtmlInput(Field field)
|
Constraint |
whereHtmlInput(Field field,
Query query)
Adds search constraint to Query object. |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler |
|---|
addExtraAttributes, cast, checkHtmlInput, convertToValidate, findString, getClasses, getClassName, getEnumHandler, getOperator, getOperator, getSearchValue, getSearchValue, getValue, htmlInputId, init, interpretEmptyAsNull, prefix, prefixError, prefixID, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateHandler(FieldInfoTag tag)
tag - | Method Detail |
|---|
protected DateTimePattern getPattern(DataType dt)
throws JspTagException
JspTagException
protected Object getFieldValue(Node node,
Field field)
throws JspTagException
getFieldValue in class AbstractTypeHandlernode - This parameter could be used if the client does not fully specify the field's
value (possible e.g. with Date fields). The existing specification could be used then.
null if the client did not post, something else if it did. If the client
meant to set null, this method should return the empty string.
JspTagException
public String htmlInput(Node node,
Field field,
boolean search)
throws JspTagException
TypeHandler
htmlInput in interface TypeHandlerhtmlInput in class AbstractTypeHandlersearch - if true, then a search field is produced.
JspTagExceptionTypeHandler.htmlInput(Node, Field, boolean)
protected int checkYear(int y,
String fieldName)
throws JspTagException
JspTagException
public boolean useHtmlInput(Node node,
Field field)
throws JspTagException
TypeHandler
useHtmlInput in interface TypeHandleruseHtmlInput in class AbstractTypeHandlerJspTagExceptionTypeHandler.useHtmlInput(Node, Field)
protected Calendar getSpecifiedValue(Field field,
Calendar cal)
throws JspTagException
null
JspTagException
protected Object getFieldValue(Node node,
Field field,
boolean useDefault)
throws JspTagException
AbstractTypeHandlerAbstractTypeHandler.getFieldValue(Node, Field), or if that returns null, it returns the current
value in the node, or if there is no node specified, the default value specified by the
datatype.
getFieldValue in class AbstractTypeHandlerJspTagException
protected Calendar getCalendarValue(Node node,
Field field)
throws JspTagException
JspTagException
public String whereHtmlInput(Field field)
throws JspTagException
whereHtmlInput in interface TypeHandlerwhereHtmlInput in class AbstractTypeHandlerJspTagExceptionTypeHandler.whereHtmlInput(Field)
public Constraint whereHtmlInput(Field field,
Query query)
throws JspTagException
AbstractTypeHandler
whereHtmlInput in interface TypeHandlerwhereHtmlInput in class AbstractTypeHandlerJspTagException
public void paramHtmlInput(ParamHandler handler,
Field field)
throws JspTagException
paramHtmlInput in interface TypeHandlerparamHtmlInput in class AbstractTypeHandlerJspTagException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||