org.mmbase.bridge.jsp.taglib.typehandler
Interface TypeHandler

All Known Implementing Classes:
AbstractTypeHandler, BinaryHandler, BooleanHandler, ByteHandler, DataTypeHandler, DateHandler, DefaultTypeHandler, DoubleHandler, DurationHandler, EnumHandler, FloatHandler, IntegerHandler, ListHandler, LongHandler, NodeHandler, StringHandler, XmlHandler

public interface TypeHandler

Since:
MMBase-1.6
Version:
$Id: TypeHandler.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Gerard van de Looi
Javadoc:

Method Summary
 String checkHtmlInput(Node node, Field field, boolean errors)
          Produces a div, containing the error message for the current value, or the empty string if everything ok.
 String htmlInput(Node node, Field field, boolean search)
          Produces an form input field for the given Node, and Field.
 String htmlInputId(Node node, Field field)
           
 void init()
           
 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)
           
 

Method Detail

htmlInput

String htmlInput(Node node,
                 Field field,
                 boolean search)
                 throws JspTagException
Produces an form input field for the given Node, and Field.

Parameters:
search - if true, then a search field is produced.
Throws:
JspTagException

htmlInputId

String htmlInputId(Node node,
                   Field field)
                   throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.9.1

checkHtmlInput

String checkHtmlInput(Node node,
                      Field field,
                      boolean errors)
                      throws JspTagException
Produces a div, containing the error message for the current value, or the empty string if everything ok.

Parameters:
errors - Whether to output the error messages (otherwises only invalidates form)
Throws:
JspTagException
Since:
MMBase-1.8

useHtmlInput

boolean useHtmlInput(Node node,
                     Field field)
                     throws JspTagException
returns true if setValue happened.

Throws:
JspTagException

whereHtmlInput

String whereHtmlInput(Field field)
                      throws JspTagException
Returns:
Piece of SQL. null if no constraint.
Throws:
JspTagException

paramHtmlInput

void paramHtmlInput(ParamHandler handler,
                    Field field)
                    throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.7

whereHtmlInput

Constraint whereHtmlInput(Field field,
                          Query query)
                          throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.7

init

void init()
Since:
MMBase-1.8


MMBase 2.0-SNAPSHOT - null