ZenMagick 0.9.6


org.zenmagick.rp.uip.controller.ZMSearchController

Class ZMSearchController

ZMObject
|
+--ZMController
|
+--ZMSearchController

public class ZMSearchController
extends ZMController

Search controller.

The default for autoSearch is true.

Author:
DerManoMann
Version:
$Id: ZMSearchController.php 2072 2009-03-17 03:07:40Z dermanomann $

Constructor Summary

ZMSearchController()

Create new instance.

Method Summary
boolean

isAutoSearch()

Get the auto search setting.

boolean

isFormSubmit()

{@inheritDoc} /

ZMView

processGet()

Process a HTTP GET request.

void

setAutoSearch(boolean autoSearch)

Set the auto search flag.

Methods inherited from org.zenmagick.rp.ZMController
exportGlobal, findView, getFormBean, getGlobal, getGlobals, getId, getView, handleRequest, isFormSubmit, process, processGet, processPost, setContentType, setId, setView, validate, validateFormBean
Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMSearchController

public ZMSearchController()

Create new instance. /


Method Detail

isAutoSearch

public boolean isAutoSearch()

Get the auto search setting.

Returns:
The auto search flag.

isFormSubmit

public boolean isFormSubmit()

/

Returns:
true if this is a form submit request.

processGet

public ZMView processGet()

Process a HTTP GET request.

Returns:
A ZMView that handles presentation or null * if the controller generates the contents itself.

setAutoSearch

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.

Parameters:
autoSearch - The new value.

ZenMagick 0.9.6