|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.browsing.search.results.GroupedResults508ViewHelper
public class GroupedResults508ViewHelper
Field Summary | |
---|---|
protected XPDateFormat |
_dateFormat
|
protected ISearchResultModelRO |
_model
|
protected SearchPageModeHelper |
_pageMode
|
protected HTMLElement[] |
_resultRows
|
protected GroupedResultsView |
_view
|
static java.lang.String |
COLON
|
static java.lang.String |
DOT
|
static java.lang.String |
LEFT_PAREN
|
protected AActivitySpace |
m_asOwner
|
static java.lang.String |
RIGHT_PAREN
|
static java.lang.String |
SPACE
|
Constructor Summary | |
---|---|
GroupedResults508ViewHelper(SearchPageModeHelper pageMode)
|
Method Summary | |
---|---|
HTMLElement |
DisplayCollection()
Returns the element that all other elements will be added to, such as an HTMLTable. |
HTMLElement |
DisplayFooter()
Returns an element that will appear after all results regardless of whether the results are grouped. |
HTMLElement |
DisplayFooterIfUngrouped()
Returns an element that will appear after all results if the results are not grouped. |
HTMLElement |
DisplayGroupFooter(int groupNum)
Returns an element that will appear after all results in a single group. |
HTMLElement |
DisplayGroupHeader(int groupNum)
Returns the header element (e.g. |
HTMLElement |
DisplayHeader()
Returns an element that will appear before all results, whether or not the results are grouped. |
HTMLElement |
DisplayHeaderIfUngrouped()
Returns the header element (e.g. |
HTMLScript |
DisplayJavascript()
Returns javascript for the view. |
HTMLElement |
DisplaySingleResult(int overallRank,
boolean oddRow,
int groupNum)
Returns the element (e.g. |
protected HTMLElement |
formatKWIC(java.lang.String kwic,
PTStyleClass hiddenStyle,
java.lang.String kwicLang)
Helper method to reformat the KWIC string into a 508 and screenreader-friendly version. |
java.lang.String |
formatPath(java.lang.String path)
Helper method to format path string in a friendly way In 508 mode, we simply show the parent folder name, since reading off a lengthy (and truncated) path takes a lot of time. |
protected XPDateFormat |
Get508DateFormat(AActivitySpace owner)
|
void |
Init(AActivitySpace owner,
ISearchResultModelRO model,
GroupedResultsView view)
Called to set the activityspace, model, and view being used |
void |
InitDisplayResults()
Call this method before calling any of the other methods to do initialization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AActivitySpace m_asOwner
protected ISearchResultModelRO _model
protected GroupedResultsView _view
protected SearchPageModeHelper _pageMode
public static final java.lang.String DOT
public static final java.lang.String COLON
public static final java.lang.String SPACE
public static final java.lang.String LEFT_PAREN
public static final java.lang.String RIGHT_PAREN
protected XPDateFormat _dateFormat
protected HTMLElement[] _resultRows
Constructor Detail |
---|
public GroupedResults508ViewHelper(SearchPageModeHelper pageMode)
Method Detail |
---|
public void Init(AActivitySpace owner, ISearchResultModelRO model, GroupedResultsView view)
IGroupedResultsViewHelper
Init
in interface IGroupedResultsViewHelper
protected XPDateFormat Get508DateFormat(AActivitySpace owner)
public java.lang.String formatPath(java.lang.String path)
public HTMLScript DisplayJavascript()
DisplayJavascript
in interface IGroupedResultsViewHelper
public HTMLElement DisplayCollection()
DisplayCollection
in interface IGroupedResultsViewHelper
public HTMLElement DisplayHeader()
DisplayHeader
in interface IGroupedResultsViewHelper
public HTMLElement DisplayFooter()
DisplayFooter
in interface IGroupedResultsViewHelper
public HTMLElement DisplayHeaderIfUngrouped()
DisplayHeaderIfUngrouped
in interface IGroupedResultsViewHelper
public HTMLElement DisplayFooterIfUngrouped()
DisplayFooterIfUngrouped
in interface IGroupedResultsViewHelper
public HTMLElement DisplayGroupHeader(int groupNum)
DisplayGroupHeader
in interface IGroupedResultsViewHelper
public HTMLElement DisplayGroupFooter(int groupNum)
DisplayGroupFooter
in interface IGroupedResultsViewHelper
public HTMLElement DisplaySingleResult(int overallRank, boolean oddRow, int groupNum)
DisplaySingleResult
in interface IGroupedResultsViewHelper
protected HTMLElement formatKWIC(java.lang.String kwic, PTStyleClass hiddenStyle, java.lang.String kwicLang)
public void InitDisplayResults()
IGroupedResultsViewHelper
InitDisplayResults
in interface IGroupedResultsViewHelper
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |