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

java.lang.Object
  extended byorg.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler
      extended byorg.mmbase.bridge.jsp.taglib.typehandler.EnumHandler
All Implemented Interfaces:
TypeHandler

public class EnumHandler
extends AbstractTypeHandler
implements TypeHandler

This handler can be used to create option list by use of a resource.

Since:
MMBase-1.6
Version:
$Id: EnumHandler.java,v 1.17.2.3 2004/08/05 14:16:49 michiel Exp $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler
tag
 
Constructor Summary
EnumHandler(FieldInfoTag tag, Field field)
           
EnumHandler(FieldInfoTag tag, java.lang.String enumType)
          Deprecated. Use EnumHandler(FieldInfoTag, Field)
 
Method Summary
 java.lang.String htmlInput(Node node, Field field, boolean search)
           
 boolean isAvailable()
           
 java.lang.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, findString, getOperator, getSearchValue, paramHtmlInput, prefix, useHtmlInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.typehandler.TypeHandler
paramHtmlInput, useHtmlInput
 

Constructor Detail

EnumHandler

public EnumHandler(FieldInfoTag tag,
                   Field field)
            throws javax.servlet.jsp.JspTagException
Parameters:
tag -
Since:
MMBase-1.8

EnumHandler

public EnumHandler(FieldInfoTag tag,
                   java.lang.String enumType)
            throws javax.servlet.jsp.JspTagException
Deprecated. Use EnumHandler(FieldInfoTag, Field)

Parameters:
tag -
Method Detail

isAvailable

public boolean isAvailable()

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)

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


MMBase build 1.7.1.20041002