|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface Handler<C>
Handlers can be associated to DataTypes, but different Handlers can be associated with different content types. The most important implementation will of course be one that produces HTML, like forms, and post and things like that.
org.mmbase.datatypes.handlers| Method Summary | |
|---|---|
C |
check(Request request,
Node node,
Field field,
boolean errors)
Checks the user input, and invalidates the request, if this user input was invalid. |
String |
id(Request request,
Field field)
Generates a unique id for the field in the request |
C |
input(Request request,
Node node,
Field field,
boolean search)
Produces an form input field for the given Node, and Field. |
Constraint |
search(Request request,
Field field,
Query query)
Uses the user's input to create a constraint for the given query |
boolean |
set(Request request,
Node node,
Field field)
Sets the user's input into the field of the node |
| Method Detail |
|---|
String id(Request request,
Field field)
C input(Request request,
Node node,
Field field,
boolean search)
search - if true, then a search field is produced.
C check(Request request,
Node node,
Field field,
boolean errors)
errors - If true then report the errors, otherwise the return value can
remain empty.
boolean set(Request request,
Node node,
Field field)
Constraint search(Request request,
Field field,
Query query)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||