Class SearchResultsPane


  • public class SearchResultsPane
    extends BaseElement
    Represents the extension search results.
    Since:
    4.2M1
    Version:
    $Id: 7d39a605febaadefcbd6295f1fd58764870e19b7 $
    • Constructor Detail

      • SearchResultsPane

        public SearchResultsPane()
    • Method Detail

      • getPagination

        public PaginationFilterPane getPagination()
        Returns:
        the search results pagination
      • getDisplayedResultsCount

        public int getDisplayedResultsCount()
        Returns:
        the number of extensions displayed
      • getNoResultsMessage

        public String getNoResultsMessage()
        Returns:
        the message displayed if there are no search results
      • getExtension

        public ExtensionPane getExtension​(String name,
                                          String version)
        Looks for the specified extension on the current results page.
        Parameters:
        name - the extension pretty name
        version - the extension version
        Returns:
        the pane displaying the specified extension, null if not found
      • getExtension

        public ExtensionPane getExtension​(org.xwiki.extension.ExtensionId extensionId)
        Looks for the specified extension on the current results page.
        Parameters:
        extensionId - the extension identifier
        Returns:
        the pane displaying the specified extension, null if not found
      • getExtension

        public ExtensionPane getExtension​(int index)
        Looks for the extension with the specified index in the search results.
        Parameters:
        index - the 0-based index of the extension in the results
        Returns:
        the pane displaying the specified extension