org.mmbase.bridge.jsp.taglib.typehandler
Class NodeHandler
java.lang.Object
org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler
org.mmbase.bridge.jsp.taglib.typehandler.NodeHandler
- All Implemented Interfaces:
- TypeHandler
public class NodeHandler
- extends AbstractTypeHandler
Taglibs handler for Node typed fields.
Currently this recognizes node manager names for the guitype (produces dropdowns). If gui-type is not another builder,
this falls back to 'AbstractTypeHandler'. This behaviour is legacy. AbstractTypeHandler deals with enumerations genericly.
- Since:
- MMBase-1.6
- Version:
- $Id: NodeHandler.java 41886 2010-04-13 13:31:46Z michiel $
- Author:
- Gerard van de Looi, Michiel Meeuwissen
| Methods inherited from class org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler |
addExtraAttributes, cast, checkHtmlInput, convertToValidate, findString, getClasses, getClassName, getEnumHandler, getFieldValue, getFieldValue, getOperator, getOperator, getSearchValue, getSearchValue, getValue, htmlInputId, init, interpretEmptyAsNull, paramHtmlInput, prefix, prefixError, prefixID, setValue, useHtmlInput |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeHandler
public NodeHandler(FieldInfoTag tag)
- Constructor for NodeHandler.
- Parameters:
tag -
useLegacy
protected boolean useLegacy(Node node,
Field field)
- Since:
- MMBase-1.8
htmlInput
public String htmlInput(Node node,
Field field,
boolean search)
throws JspTagException
- Description copied from interface:
TypeHandler
- Produces an form input field for the given Node, and Field.
- Specified by:
htmlInput in interface TypeHandler- Overrides:
htmlInput in class AbstractTypeHandler
search - if true, then a search field is produced.
- Throws:
JspTagException- See Also:
TypeHandler.htmlInput(Node, Field, boolean)
whereHtmlInput
public String whereHtmlInput(Field field)
throws JspTagException
- Specified by:
whereHtmlInput in interface TypeHandler- Overrides:
whereHtmlInput in class AbstractTypeHandler
- Returns:
- Piece of SQL. null if no constraint.
- Throws:
JspTagException- See Also:
TypeHandler.whereHtmlInput(Field)
whereHtmlInput
public Constraint whereHtmlInput(Field field,
Query query)
throws 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:
JspTagException
MMBase 2.0-SNAPSHOT - null