|
||||||||||
| 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.StringHandler
public class StringHandler
A TypeHandler for strings, textareas and text-input. Search values are SQL escaped.
| Field Summary |
|---|
| Fields inherited from class org.mmbase.bridge.jsp.taglib.typehandler.AbstractTypeHandler |
|---|
eh, gotEnumHandler, tag |
| Constructor Summary | |
|---|---|
StringHandler(FieldInfoTag tag)
Constructor for StringHandler. |
|
| Method Summary | |
|---|---|
protected int |
getCols(Field field)
|
protected Object |
getFieldValue(Node node,
Field field)
Returns the field value as specified by the client's post. |
protected int |
getOperator(Field field)
The operator to be used by whereHtmlInput(field, query) |
protected Object |
getValue(Node node,
String fieldName)
|
String |
htmlInput(Node node,
Field field,
boolean search)
Produces an form input field for the given Node, and Field. |
protected boolean |
interpretEmptyAsNull(Field field)
|
protected void |
setValue(Node node,
String fieldName,
Object value)
|
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, getFieldValue, getOperator, getSearchValue, getSearchValue, htmlInputId, init, paramHtmlInput, prefix, prefixError, prefixID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringHandler(FieldInfoTag tag)
| Method Detail |
|---|
protected int getCols(Field field)
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 void setValue(Node node,
String fieldName,
Object value)
setValue in class AbstractTypeHandler
protected Object getValue(Node node,
String fieldName)
getValue in class AbstractTypeHandler
public boolean useHtmlInput(Node node,
Field field)
throws JspTagException
TypeHandler
useHtmlInput in interface TypeHandleruseHtmlInput in class AbstractTypeHandlerJspTagExceptionTypeHandler.useHtmlInput(Node, Field)
protected Object getFieldValue(Node node,
Field field)
throws JspTagException
AbstractTypeHandlernull if
the client didn't post a thing. It can be empty if the client means null
(depending on the value of AbstractTypeHandler.interpretEmptyAsNull(org.mmbase.bridge.Field)).
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.
JspTagExceptionprotected boolean interpretEmptyAsNull(Field field)
interpretEmptyAsNull in class AbstractTypeHandler
public String whereHtmlInput(Field field)
throws JspTagException
whereHtmlInput in interface TypeHandlerwhereHtmlInput in class AbstractTypeHandlerJspTagExceptionTypeHandler.whereHtmlInput(Field)protected int getOperator(Field field)
AbstractTypeHandler
getOperator in class AbstractTypeHandler
public Constraint whereHtmlInput(Field field,
Query query)
throws JspTagException
AbstractTypeHandler
whereHtmlInput in interface TypeHandlerwhereHtmlInput in class AbstractTypeHandlerJspTagException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||