com.plumtree.portalpages.browsing.search.results
Class FollowupSearchView

java.lang.Object
  extended by com.plumtree.portalpages.browsing.search.results.SearchResultView
      extended by com.plumtree.portalpages.browsing.search.results.FollowupSearchView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class FollowupSearchView
extends SearchResultView

Author:
CraigS

Field Summary
protected  SearchPageModeHelper _pageMode
           
static int MIN_RESULTS_TO_DISPLAY_SWR
           
static java.lang.String SEPARATOR
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.portalpages.browsing.search.results.SearchResultView
_model, m_asOwner, SPACE, SPACE2, SPACE3, SPACE4
 
Constructor Summary
FollowupSearchView()
           
 
Method Summary
 void Add508InterfaceToForm(HTMLForm form)
          This method generates the 508-mode version of the "search again:" form.
static void AddReconstructionArgs(ISearchResultModelRO model, ASURL url)
          This method adds arguments to the "go to advanced search" URL so that the advanced search page will be initialized with the parameters of the current search..
 void AddStandardInterfaceToForm(HTMLForm form)
          This method generates the standard version of the "search again:" form.
 java.lang.Object Create()
          required by UI framework; simply instantiates this class.
 HTMLElement DisplaySearchView()
          DisplaySearchView() should be implemented by all subclasses and should perform the same function as the regular Display() method, but is allowed to throw a SearchModelException or an HTMLException.
 java.lang.String GetName()
          required by UI framework; returns name of this class
 HTMLForm GetSWRForm()
          Makes the HTMLForm that the "search again" box will go into.
static IXPList GetWithinResultsOptions(ISearchResultModelRO model, AActivitySpace asOwner)
           
static HTMLSelect MakeWithinResultsSelect(ISearchResultModelRO model, AActivitySpace asOwner)
          Helper that makes the "within results" / "entire portal" / etc.
 void SetPageModeHelper(SearchPageModeHelper pageMode)
           
 
Methods inherited from class com.plumtree.portalpages.browsing.search.results.SearchResultView
Display, DisplayJavascript, Init, is508
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
See Also:
Constant Field Values

MIN_RESULTS_TO_DISPLAY_SWR

public static final int MIN_RESULTS_TO_DISPLAY_SWR
See Also:
Constant Field Values

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values

_pageMode

protected SearchPageModeHelper _pageMode
Constructor Detail

FollowupSearchView

public FollowupSearchView()
Method Detail

SetPageModeHelper

public void SetPageModeHelper(SearchPageModeHelper pageMode)

Add508InterfaceToForm

public void Add508InterfaceToForm(HTMLForm form)
This method generates the 508-mode version of the "search again:" form.

Parameters:
form - the HTMLForm where the "search again:" form should go.

AddStandardInterfaceToForm

public void AddStandardInterfaceToForm(HTMLForm form)
This method generates the standard version of the "search again:" form.

Parameters:
form - the HTMLForm where the "search again:" form should go.

Create

public java.lang.Object Create()
required by UI framework; simply instantiates this class.

Specified by:
Create in interface IManagedObject
Specified by:
Create in class SearchResultView
Returns:
instance of FollowupSearchView.

DisplaySearchView

public HTMLElement DisplaySearchView()
Description copied from class: SearchResultView
DisplaySearchView() should be implemented by all subclasses and should perform the same function as the regular Display() method, but is allowed to throw a SearchModelException or an HTMLException. SearchModelException indicates a problem with usage of the portalinfrastructure classes, not a problem with the search itself (which are SearchExecutionExceptions; call ISearchResultModelRO.GetError()).

Specified by:
DisplaySearchView in class SearchResultView
See Also:
com.plumtree.portalpages.search.SearchResultView#DisplaySearchView()

GetName

public java.lang.String GetName()
required by UI framework; returns name of this class

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class SearchResultView
Returns:
name of this class.

GetSWRForm

public HTMLForm GetSWRForm()
Makes the HTMLForm that the "search again" box will go into. This method makes the part that is used in both standard and 508 UIs - the HTMLForm itself and hidden inputs.


MakeWithinResultsSelect

public static HTMLSelect MakeWithinResultsSelect(ISearchResultModelRO model,
                                                 AActivitySpace asOwner)
Helper that makes the "within results" / "entire portal" / etc. pulldown menu. Exact contents of the menu depend on context (i.e. what restrictions were on the previous search performed). Is public static for use by followupsearchform display tag.

Returns:
HTMLSelect that may be added to the "search again" form, or null if no pulldown menu should appear.

GetWithinResultsOptions

public static IXPList GetWithinResultsOptions(ISearchResultModelRO model,
                                              AActivitySpace asOwner)

AddReconstructionArgs

public static void AddReconstructionArgs(ISearchResultModelRO model,
                                         ASURL url)
This method adds arguments to the "go to advanced search" URL so that the advanced search page will be initialized with the parameters of the current search.. it seems poorly implemented, but works in some cases SM - Making public static so that this can be called by the follow up search data tag.




Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.