org.olat.search.ui
Class ResultsSearchController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.core.gui.components.form.flexible.impl.FormBasicController
              extended by org.olat.search.ui.SearchInputController
                  extended by org.olat.search.ui.ResultsSearchController
All Implemented Interfaces:
SearchController, Controller, ControllerEventListener, Disposable, Activateable

public class ResultsSearchController
extends SearchInputController
implements Activateable

Description:
With toggle simple search <-> extended search

Initial Date: 3 dec. 2009

Author:
srosse, stephane.rosse@frentix.com

Nested Class Summary
 
Nested classes/interfaces inherited from class org.olat.search.ui.SearchInputController
SearchInputController.ContextTokens
 
Field Summary
 
Fields inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
LAYOUT_CUSTOM, LAYOUT_DEFAULT, LAYOUT_HORIZONTAL, LAYOUT_VERTICAL
 
Constructor Summary
ResultsSearchController(UserRequest ureq, WindowControl wControl, java.lang.String resourceUrl)
           
 
Method Summary
 void activate(UserRequest ureq, java.lang.String viewIdentifier)
          FIXME:pb:discussion FJ should we return boolean if activation was successful?
 void event(UserRequest ureq, Controller source, Event event)
          the only method of the interface controllereventlistener.
 void setResourceContextEnable(boolean resourceContextEnable)
           
 void setSearchResults(UserRequest ureq, SearchResults searchResults)
           
 
Methods inherited from class org.olat.search.ui.SearchInputController
closeSearchDialogBox, getDidYouMeanWords, getDocumentType, getFormItem, getParentContext, getResourceUrl, getSearchString, gotoSearchResult, isResourceContextEnable, setDidYouMeanWords, setDocumentType, setParentContext, setSearchString
 
Methods inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
dispose, event
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.gui.control.Controller
addControllerListener, dispatchEvent, dispose, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed
 

Constructor Detail

ResultsSearchController

public ResultsSearchController(UserRequest ureq,
                               WindowControl wControl,
                               java.lang.String resourceUrl)
Method Detail

setResourceContextEnable

public void setResourceContextEnable(boolean resourceContextEnable)
Specified by:
setResourceContextEnable in interface SearchController
Overrides:
setResourceContextEnable in class SearchInputController

event

public void event(UserRequest ureq,
                  Controller source,
                  Event event)
Description copied from class: DefaultController
the only method of the interface controllereventlistener. always gets called when a controller we 'subscribed' to fires an event. we provide a default implementation here since there are many controllers which are standalone and need no subcontrollers


setSearchResults

public void setSearchResults(UserRequest ureq,
                             SearchResults searchResults)

activate

public void activate(UserRequest ureq,
                     java.lang.String viewIdentifier)
Description copied from interface: Activateable
FIXME:pb:discussion FJ should we return boolean if activation was successful?

Specified by:
activate in interface Activateable
See Also:
The given string is interpreted as a search string