Class BaseSearchBarPlusToggleResultPageBean

All Implemented Interfaces:
IPageFlowScopeAdapter, ISearchBarPageBean, ISearchPageBean, ISearchResultsPageBean, Serializable, EventListener, PhaseListener, HttpSessionBindingListener

public abstract class BaseSearchBarPlusToggleResultPageBean extends BaseSearchBarPlusTableResultPageBean implements ISearchBarPageBean
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:
  • Field Details

    • DISPLAY_STYLE_TREE_VIEW

      protected static final String DISPLAY_STYLE_TREE_VIEW
      Constant that represents the 'tree' display style
      See Also:
    • fActiveResultsDisplayStyle

      protected String fActiveResultsDisplayStyle
      Holds the active display style
  • Constructor Details

    • BaseSearchBarPlusToggleResultPageBean

      public BaseSearchBarPlusToggleResultPageBean()
      Default Constructor
  • Method Details

    • getInitialDisplayStyle

      protected String getInitialDisplayStyle()
      Gets the initial display style (treeView or tableView)
      Returns:
      the initial display style
    • getActiveResultsDisplayStyle

      public String getActiveResultsDisplayStyle()
      Gets the active display style (treeView or tableView)
      Returns:
      the active display style
    • setActiveResultsDisplayStyle

      public void setActiveResultsDisplayStyle(String activeResultsDisplayStyle)
      Sets the active display style
      Parameters:
      activeResultsDisplayStyle - The display style to switch to
    • getSearchResultsTreeControl

      public abstract DataTree getSearchResultsTreeControl()
      Get the search results tree control
      Returns:
      search results tree control
    • getDisplayColumnsPreference

      public String[] getDisplayColumnsPreference()
      Return the display column preference. Usually via a portlet property that is configured from the portlet edit mode.
      Overrides:
      getDisplayColumnsPreference in class BaseSearchResultPageBean
      Returns:
      array of column ids that should be displayed in the given order
    • setDisplayColumnsPreference

      public void setDisplayColumnsPreference(String[] columnDisplay)
      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 class BaseSearchResultPageBean
    • getColumnWidthsPreference

      public String getColumnWidthsPreference()
      Return the column widths preference. Usually via a portlet property that is configured from the portlet edit mode.
      Overrides:
      getColumnWidthsPreference in class BaseSearchResultPageBean
      Returns:
      csv-style map of column ids to column widths (ie "colOne=60%,colTwo=40%,colThree=20px")
    • setColumnWidthsPreference

      public void setColumnWidthsPreference(String columnWidths)
      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 class BaseSearchResultPageBean
    • getInitialSortByPreference

      public String getInitialSortByPreference()
      Return the initialSortBy preference. Usually via a portlet property that is configured from the portlet edit mode.
      Overrides:
      getInitialSortByPreference in class BaseSearchResultPageBean
      Returns:
      id of the column to sort by initially
    • getInitialSortAscendingPreference

      public Boolean getInitialSortAscendingPreference()
      Return the initialSortBy preference. Usually via a portlet property that is configured from the portlet edit mode.
      Overrides:
      getInitialSortAscendingPreference in class BaseSearchResultPageBean
      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 class BaseSearchResultPageBean
      Returns:
      true if apply prefererences is needed, false otherwise
    • applyUserPreferences

      protected void applyUserPreferences(DataTable dataTable)
      Description copied from class: BaseSearchResultPageBean
      Apply the user preferences to the data table.
      Overrides:
      applyUserPreferences in class BaseSearchResultPageBean
      Parameters:
      dataTable - the search result table control
    • getActiveSearchResultsControl

      public UIComponent 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 class BaseSearchBarPlusTableResultPageBean
      Returns:
      active search results component