com.plumtree.portalpages.browsing.search.network
Class NetworkSearchResultsView

java.lang.Object
  extended by com.plumtree.portalpages.browsing.search.network.NetworkSearchResultsView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class NetworkSearchResultsView
extends java.lang.Object
implements IView

Author:
JosephSi

Field Summary
static java.lang.String SEPARATOR
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Constructor Summary
NetworkSearchResultsView()
           
 
Method Summary
protected  void addCollatedTopRow(HTMLTable table)
           
protected  void addHeaderRow(HTMLTable resultsTable, boolean collated)
           
protected  void addMoreFromEachLink(HTMLTable resultTable, IXPList sources, boolean inCollatedMode)
           
protected  void addMoreFromHereLink(HTMLTableCell cell, int sourceId)
          in parallel mode, user can click here and is then shown the results only from this source
protected  void AddOtherViewModeOption(HTMLSelect select, java.lang.String viewMode, java.lang.String uiString, IXPList sources, boolean selected)
          users can toggle between "parallel" presentation (results from each source are separated out) and "collated" view (results alternate).
protected  void addSearchBox(HTMLTableCell outerCell, IXPList sources)
           
protected  void addSearchResults(HTMLElement container, IXPList sources, boolean inCollatedMode)
           
protected  void addSearchResultsBar(HTMLElement container, java.lang.String text)
           
protected  void addSearchStringAndLocations(HTMLTableCell overallCell, IXPList sources)
           
protected  void addSummaryInfo(HTMLTableCell outerCell, IXPList sources)
           
protected  void addTogglingParallelandCollated(HTMLTable table, IXPList sources, boolean inCollatedMode)
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  HTMLForm createReorgForm(IXPList sources)
           
 HTMLElement Display()
          This method returns the HTMLElement that encompasses the output of the View.
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
 java.lang.String GetName()
          Return the name of the MVC object.
 void Init(IModelRO model, AActivitySpace parent)
          This method initializes the View with the read only model interface it is supposed to draw it's data from as well as it's parent ActivitySpace (necessary to create URLS).
protected  HTMLTable makeSkeletonResultsTable()
           
protected  void showCollatedResults(IXPList sources, boolean popup, HTMLTable table)
          present the results interleaved (e.g., if there are three sources, then we show first result from source 1, first result from source 2, first result from source 3, second result from source 1, second result from source 2, and so on.
protected  void showResult(HTMLTable table, int sourceId, int withinSourceResultNum, int overallResultNum, int startIndex, boolean collated, boolean popup)
           
protected  void showResultsInParallel(IXPList sources, boolean popup, HTMLTable table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

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

STR_MVC_CLASS_NAME

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

NetworkSearchResultsView

public NetworkSearchResultsView()
Method Detail

Create

public java.lang.Object Create()
Description copied from interface: IManagedObject
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Display

public HTMLElement Display()
Description copied from interface: IView
This method returns the HTMLElement that encompasses the output of the View.

Specified by:
Display in interface IView
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IView#Display()

addSearchResults

protected void addSearchResults(HTMLElement container,
                                IXPList sources,
                                boolean inCollatedMode)

addSearchResultsBar

protected void addSearchResultsBar(HTMLElement container,
                                   java.lang.String text)

makeSkeletonResultsTable

protected HTMLTable makeSkeletonResultsTable()

addHeaderRow

protected void addHeaderRow(HTMLTable resultsTable,
                            boolean collated)

createReorgForm

protected HTMLForm createReorgForm(IXPList sources)

addSummaryInfo

protected void addSummaryInfo(HTMLTableCell outerCell,
                              IXPList sources)

DisplayJavascript

public HTMLScript DisplayJavascript()
This method returns the HTMLScript that encompasses the Javascript on the page. Note: this javascript is not the same javascript as the one on the launch page, despite how it may look at first glance. The launch page checks to see that at least one location is checked. Here, the search box assumes you want the same locations, so that validation is not performed

Specified by:
DisplayJavascript in interface IView
Returns:
HTMLScript
See Also:
IView.DisplayJavascript()

GetName

public java.lang.String GetName()
Description copied from interface: IMVCObject
Return the name of the MVC object.

Specified by:
GetName in interface IMVCObject
Returns:
the name of the object.
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IView#GetName()

Init

public void Init(IModelRO model,
                 AActivitySpace parent)
Description copied from interface: IView
This method initializes the View with the read only model interface it is supposed to draw it's data from as well as it's parent ActivitySpace (necessary to create URLS).

Specified by:
Init in interface IView
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IView#Init(IModelRO, AActivitySpace)

AddOtherViewModeOption

protected void AddOtherViewModeOption(HTMLSelect select,
                                      java.lang.String viewMode,
                                      java.lang.String uiString,
                                      IXPList sources,
                                      boolean selected)
users can toggle between "parallel" presentation (results from each source are separated out) and "collated" view (results alternate). Here we add a pulldown option for each view


addMoreFromEachLink

protected void addMoreFromEachLink(HTMLTable resultTable,
                                   IXPList sources,
                                   boolean inCollatedMode)
Parameters:
result -
sources -
inCollatedMode -
Throws:
HTMLException

addMoreFromHereLink

protected void addMoreFromHereLink(HTMLTableCell cell,
                                   int sourceId)
in parallel mode, user can click here and is then shown the results only from this source


addSearchStringAndLocations

protected void addSearchStringAndLocations(HTMLTableCell overallCell,
                                           IXPList sources)

addSearchBox

protected void addSearchBox(HTMLTableCell outerCell,
                            IXPList sources)

addTogglingParallelandCollated

protected void addTogglingParallelandCollated(HTMLTable table,
                                              IXPList sources,
                                              boolean inCollatedMode)
Parameters:
result - The HTMLElementCollection that generates the overall page
sources - Integer list of fed portals being searched
inCollatedMode - If true, results are intermingled. Otherwise, they are kept in separate groups.
Throws:
HTMLException

addCollatedTopRow

protected void addCollatedTopRow(HTMLTable table)

showCollatedResults

protected void showCollatedResults(IXPList sources,
                                   boolean popup,
                                   HTMLTable table)
present the results interleaved (e.g., if there are three sources, then we show first result from source 1, first result from source 2, first result from source 3, second result from source 1, second result from source 2, and so on.


showResult

protected void showResult(HTMLTable table,
                          int sourceId,
                          int withinSourceResultNum,
                          int overallResultNum,
                          int startIndex,
                          boolean collated,
                          boolean popup)
Parameters:
table -
sourceId -
withinSourceResultNum -
overallResultNum -
collated -
Throws:
HTMLException

showResultsInParallel

protected void showResultsInParallel(IXPList sources,
                                     boolean popup,
                                     HTMLTable table)
Parameters:
sources -
table -
Throws:
HTMLException



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