public abstract class BaseToggleSearchResultPageBean extends BaseTableSearchResultPageBean
BaseViewBean.ClientIdsContentProvider
Modifier and Type | Field and Description |
---|---|
protected static String |
DISPLAY_STYLE_TREE_VIEW
Constant that represents the 'tree' display style
|
protected String |
fActiveResultsDisplayStyle
Holds the active display style
|
fActiveSearchQuery, fPreviousRequestSearchQuery, fQueryChanged, fSortableColumns, fViewableColumns, SEARCH_RESULT_PREFERENCES_APPLIED_KEY
clientIds, initialized
fExpireWithPageFlow
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
BaseToggleSearchResultPageBean()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyUserPreferences(DataTable dataTable)
Apply the user preferences to the data table.
|
String |
getActiveResultsDisplayStyle()
Gets the active display style (treeView or tableView)
|
UIComponent |
getActiveSearchResultsControl()
Gets the active search results control.
|
String |
getColumnWidthsPreference()
Return the column widths preference.
|
String[] |
getDisplayColumnsPreference()
Return the display column preference.
|
protected String |
getInitialDisplayStyle()
Gets the initial display style (treeView or tableView)
|
Boolean |
getInitialSortAscendingPreference()
Return the initialSortBy preference.
|
String |
getInitialSortByPreference()
Return the initialSortBy preference.
|
abstract DataTree |
getSearchResultsTreeControl()
Get the search results tree control
|
protected boolean |
isApplyPreferencesNeeded()
Returns wheter the user options need to be applied to the search result control
|
void |
setActiveResultsDisplayStyle(String activeResultsDisplayStyle)
Sets the active display style
|
void |
setColumnWidthsPreference(String columnWidths)
Sets the column widths preference.
|
void |
setDisplayColumnsPreference(String[] columnDisplay)
Sets the display column preference.
|
getSearchResultsTableControl
beforeApplyRequestValues, beforeRenderResponse, createSearchQuery, getActiveSearchQuery, getActiveSearchQueryString, getInitialPageSize, getSortableColumnList, getViewableColumnList, isQueryChanged, isSearchBarAvailable, persistDisplayOptions, setActiveSearchQuery, setInitialPageSize, setInitialSortAscendingPreference, setInitialSortByPreference
beforeWorkspaceLoad, callInitialize, clearNavigationState, createActionUrl, createRenderUrl, getActivePreferencesBean, getPreferences, getRequestID, gotoPage, switchToPortletMode
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
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
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
protected static final String DISPLAY_STYLE_TREE_VIEW
protected String fActiveResultsDisplayStyle
public BaseToggleSearchResultPageBean()
protected String getInitialDisplayStyle()
public String getActiveResultsDisplayStyle()
public void setActiveResultsDisplayStyle(String activeResultsDisplayStyle)
activeResultsDisplayStyle
- The display style to switch topublic abstract DataTree getSearchResultsTreeControl()
public String[] getDisplayColumnsPreference()
getDisplayColumnsPreference
in class BaseSearchResultPageBean
public void setDisplayColumnsPreference(String[] columnDisplay)
setDisplayColumnsPreference
in class BaseSearchResultPageBean
public String getColumnWidthsPreference()
getColumnWidthsPreference
in class BaseSearchResultPageBean
public void setColumnWidthsPreference(String columnWidths)
setColumnWidthsPreference
in class BaseSearchResultPageBean
public String getInitialSortByPreference()
getInitialSortByPreference
in class BaseSearchResultPageBean
public Boolean getInitialSortAscendingPreference()
getInitialSortAscendingPreference
in class BaseSearchResultPageBean
protected boolean isApplyPreferencesNeeded()
BaseSearchResultPageBean
isApplyPreferencesNeeded
in class BaseSearchResultPageBean
protected void applyUserPreferences(DataTable dataTable)
BaseSearchResultPageBean
applyUserPreferences
in class BaseSearchResultPageBean
dataTable
- the search result table controlpublic UIComponent getActiveSearchResultsControl()
getActiveSearchResultsControl
in class BaseTableSearchResultPageBean