Class BaseToggleSearchResultPageBean
java.lang.Object
com.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseFacesSessionBean
com.webmethods.caf.faces.bean.BaseViewBean
com.webmethods.caf.faces.bean.BasePortletPageBean
com.webmethods.caf.faces.bean.search.BaseSearchResultPageBean
com.webmethods.caf.faces.bean.search.BaseTableSearchResultPageBean
com.webmethods.caf.faces.bean.search.BaseToggleSearchResultPageBean
- All Implemented Interfaces:
IPageFlowScopeAdapter
,ISearchPageBean
,ISearchResultsPageBean
,Serializable
,EventListener
,PhaseListener
,HttpSessionBindingListener
Base page bean for search result pages that can toggle between a table view and a tree
view of the search results
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.caf.faces.bean.BaseViewBean
BaseViewBean.ClientIdsContentProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Constant that represents the 'tree' display styleprotected String
Holds the active display styleFields inherited from class com.webmethods.caf.faces.bean.search.BaseSearchResultPageBean
fActiveSearchQuery, fPreviousRequestSearchQuery, fQueryChanged, fSortableColumns, fViewableColumns, SEARCH_RESULT_PREFERENCES_APPLIED_KEY
Fields inherited from class com.webmethods.caf.faces.bean.BaseViewBean
clientIds, initialized
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyUserPreferences
(DataTable dataTable) Apply the user preferences to the data table.Gets the active display style (treeView or tableView)Gets the active search results control.Return the column widths preference.String[]
Return the display column preference.protected String
Gets the initial display style (treeView or tableView)Return the initialSortBy preference.Return the initialSortBy preference.abstract DataTree
Get the search results tree controlprotected boolean
Returns wheter the user options need to be applied to the search result controlvoid
setActiveResultsDisplayStyle
(String activeResultsDisplayStyle) Sets the active display stylevoid
setColumnWidthsPreference
(String columnWidths) Sets the column widths preference.void
setDisplayColumnsPreference
(String[] columnDisplay) Sets the display column preference.Methods inherited from class com.webmethods.caf.faces.bean.search.BaseTableSearchResultPageBean
getSearchResultsTableControl
Methods inherited from class com.webmethods.caf.faces.bean.search.BaseSearchResultPageBean
beforeApplyRequestValues, beforeRenderResponse, createSearchQuery, getActiveSearchQuery, getActiveSearchQueryString, getInitialPageSize, getSortableColumnList, getViewableColumnList, isQueryChanged, isSearchBarAvailable, persistDisplayOptions, setActiveSearchQuery, setInitialPageSize, setInitialSortAscendingPreference, setInitialSortByPreference
Methods inherited from class com.webmethods.caf.faces.bean.BasePortletPageBean
beforeWorkspaceLoad, callInitialize, clearNavigationState, createActionUrl, createRenderUrl, getActivePreferencesBean, getPreferences, getRequestID, gotoPage, switchToPortletMode
Methods inherited from class com.webmethods.caf.faces.bean.BaseViewBean
afterApplyRequestValues, afterInvokeApplication, afterPhase, afterProcessValidations, afterRenderResponse, afterRestoreView, afterUpdateModelValues, beforeInvokeApplication, beforePhase, beforeProcessValidations, beforeRestoreView, beforeUpdateModelValues, findComponent, findComponentInRoot, getApplicationScope, getClientIds, getPhaseId, getRealPath, getRequestParam, getRequestScope, getSessionScope, gotoPage, initialize, isAsyncRequest, preRenderResponse, release, resetPageFlowStorage, streamFileDataToResponse
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
-
Field Details
-
DISPLAY_STYLE_TREE_VIEW
Constant that represents the 'tree' display style- See Also:
-
fActiveResultsDisplayStyle
Holds the active display style
-
-
Constructor Details
-
BaseToggleSearchResultPageBean
public BaseToggleSearchResultPageBean()Default Constructor
-
-
Method Details
-
getInitialDisplayStyle
Gets the initial display style (treeView or tableView)- Returns:
- the initial display style
-
getActiveResultsDisplayStyle
Gets the active display style (treeView or tableView)- Returns:
- the active display style
-
setActiveResultsDisplayStyle
Sets the active display style- Parameters:
activeResultsDisplayStyle
- The display style to switch to
-
getSearchResultsTreeControl
Get the search results tree control- Returns:
- search results tree control
-
getDisplayColumnsPreference
Return the display column preference. Usually via a portlet property that is configured from the portlet edit mode.- Overrides:
getDisplayColumnsPreference
in classBaseSearchResultPageBean
- Returns:
- array of column ids that should be displayed in the given order
-
setDisplayColumnsPreference
Sets the display column preference. Usually via a portlet property that is configured from the portlet edit mode. param array of column ids that should be displayed in the given order- Overrides:
setDisplayColumnsPreference
in classBaseSearchResultPageBean
-
getColumnWidthsPreference
Return the column widths preference. Usually via a portlet property that is configured from the portlet edit mode.- Overrides:
getColumnWidthsPreference
in classBaseSearchResultPageBean
- Returns:
- csv-style map of column ids to column widths (ie "colOne=60%,colTwo=40%,colThree=20px")
-
setColumnWidthsPreference
Sets the column widths preference. Usually via a portlet property that is configured from the portlet edit mode. param csv-style map of column ids to column widths (ie "colOne=60%,colTwo=40%,colThree=20px")- Overrides:
setColumnWidthsPreference
in classBaseSearchResultPageBean
-
getInitialSortByPreference
Return the initialSortBy preference. Usually via a portlet property that is configured from the portlet edit mode.- Overrides:
getInitialSortByPreference
in classBaseSearchResultPageBean
- Returns:
- id of the column to sort by initially
-
getInitialSortAscendingPreference
Return the initialSortBy preference. Usually via a portlet property that is configured from the portlet edit mode.- Overrides:
getInitialSortAscendingPreference
in classBaseSearchResultPageBean
- Returns:
- id of the column to sort by initially
-
isApplyPreferencesNeeded
protected boolean isApplyPreferencesNeeded()Description copied from class:BaseSearchResultPageBean
Returns wheter the user options need to be applied to the search result control- Overrides:
isApplyPreferencesNeeded
in classBaseSearchResultPageBean
- Returns:
- true if apply prefererences is needed, false otherwise
-
applyUserPreferences
Description copied from class:BaseSearchResultPageBean
Apply the user preferences to the data table.- Overrides:
applyUserPreferences
in classBaseSearchResultPageBean
- Parameters:
dataTable
- the search result table control
-
getActiveSearchResultsControl
Gets the active search results control. If the display style is 'treeView' then this returns the search result tree control. Otherwise it returns the search result table control.- Overrides:
getActiveSearchResultsControl
in classBaseTableSearchResultPageBean
- Returns:
- active search results component
-