|
||||||||||
| 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
| Field Summary | |
protected EnumHandler |
eh
|
protected boolean |
gotEnumHandler
|
protected FieldInfoTag |
tag
|
| Constructor Summary | |
AbstractTypeHandler(FieldInfoTag tag)
Constructor for AbstractTypeHandler. |
|
| Method Summary | |
protected StringBuffer |
addExtraAttributes(StringBuffer buf)
|
protected Object |
cast(Object value,
Node node,
Field field)
|
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. |
protected String |
findString(Field field)
|
protected String |
getClasses(Field field)
|
protected EnumHandler |
getEnumHandler(Node node,
Field field)
|
protected Object |
getFieldValue(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 int |
getOperator()
The operator to be used by whereHtmlInput(field, query) |
protected String |
getSearchValue(String string)
Converts the value to the actual value to be searched. |
String |
htmlInput(Node node,
Field field,
boolean search)
Produces an form input field for the given Node, and Field. |
void |
init()
|
protected boolean |
interpretEmptyAsNull(Field field)
|
void |
paramHtmlInput(ParamHandler handler,
Field field)
|
protected String |
prefix(String s)
Puts a prefix before a name. |
protected String |
prefixError(String s)
|
protected String |
prefixID(String s)
Puts a prefix 'mm_' before an id in form fields. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected FieldInfoTag tag
protected EnumHandler eh
protected boolean gotEnumHandler
| Constructor Detail |
public AbstractTypeHandler(FieldInfoTag tag)
| Method Detail |
public void init()
init in interface TypeHandler
protected EnumHandler getEnumHandler(Node node,
Field field)
throws JspTagException
JspTagException
protected StringBuffer addExtraAttributes(StringBuffer buf)
throws JspTagException
JspTagExceptionprotected String getClasses(Field field)
public String htmlInput(Node node,
Field field,
boolean search)
throws JspTagException
TypeHandler
htmlInput in interface TypeHandlersearch - if true, then a search field is produced.
JspTagExceptionTypeHandler.htmlInput(Node, Field, boolean)
protected Object getFieldValue(Field field)
throws JspTagException
JspTagExceptionprotected boolean interpretEmptyAsNull(Field field)
protected Object cast(Object value,
Node node,
Field field)
protected Object getFieldValue(Node node,
Field field,
boolean useDefault)
throws JspTagException
JspTagException
public String checkHtmlInput(Node node,
Field field,
boolean errors)
throws JspTagException
TypeHandler
checkHtmlInput in interface TypeHandlererrors - Whether to output the error messages (otherwises only invalidates form)
JspTagException
public boolean useHtmlInput(Node node,
Field field)
throws JspTagException
TypeHandler
useHtmlInput in interface TypeHandlerJspTagExceptionTypeHandler.useHtmlInput(Node, Field)
public String whereHtmlInput(Field field)
throws JspTagException
whereHtmlInput in interface TypeHandlerJspTagExceptionTypeHandler.whereHtmlInput(Field)protected int getOperator()
protected String getSearchValue(String string)
protected final String findString(Field field)
throws JspTagException
JspTagException
public void paramHtmlInput(ParamHandler handler,
Field field)
throws JspTagException
paramHtmlInput in interface TypeHandlerJspTagException
public Constraint whereHtmlInput(Field field,
Query query)
throws JspTagException
whereHtmlInput in interface TypeHandlerJspTagException
protected String prefix(String s)
throws JspTagException
JspTagException
protected String prefixID(String s)
throws JspTagException
s - Fieldname
JspTagException
protected String prefixError(String s)
throws JspTagException
JspTagException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||