ZMObject
└─ZMController
└─ZMSearchController
public class ZMSearchController
extends ZMController
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| boolean | Get the auto search setting. |
| boolean | isFormSubmit(ZMRequest request) {@inheritDoc} |
| ZMView | processGet(ZMRequest request) {@inheritDoc} |
| void | setAutoSearch(boolean autoSearch) Set the auto search flag. |
| Methods inherited from org.zenmagick.mvc.controller.ZMController | |
|---|---|
| findView, getFormData, getId, getView, isFormSubmit, preProcess, process, processGet, processPost, setContentType, setId, setView, validate, validateFormData, validateSession | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMSearchController()
Create new instance.
public boolean isAutoSearch()
Get the auto search setting.
public boolean isFormSubmit(ZMRequest request)
true if this is a form submit request.public ZMView processGet(ZMRequest request)
ZMView that handles presentation or null if the controller generates the contents itself.public void setAutoSearch(boolean autoSearch)
Set the auto search flag.
If enabled, the controller will automatically run a search even if only the keyword is set. This allows to create simple URLs that run a search.
Search controller.
The default for autoSearch is
true.