Class SearchResultsView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.searchflowui.view.result.SearchResultsView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, FragmentOwner, Serializable

@Route(value="search/results", layout=DefaultMainViewParent.class) @ViewController("search_SearchResultsView") @ViewDescriptor("search-results-view.xml") @DialogMode(width="50em", height="42.5em", resizable=true) public class SearchResultsView extends StandardView
See Also:
  • Field Details

    • QUERY_PARAM_VALUE

      public static final String QUERY_PARAM_VALUE
      See Also:
    • QUERY_PARAM_ENTITIES

      public static final String QUERY_PARAM_ENTITIES
      See Also:
    • QUERY_PARAM_STRATEGY

      public static final String QUERY_PARAM_STRATEGY
      See Also:
    • QUERY_PARAM_SEARCH_SIZE

      public static final String QUERY_PARAM_SEARCH_SIZE
      See Also:
    • QUERY_PARAM_SEARCH_BUTTON_VISIBLE

      public static final String QUERY_PARAM_SEARCH_BUTTON_VISIBLE
      See Also:
    • QUERY_PARAM_SETTINGS_BUTTON_VISIBLE

      public static final String QUERY_PARAM_SETTINGS_BUTTON_VISIBLE
      See Also:
    • systemFieldLabels

      protected static final Map<String,String> systemFieldLabels
    • messageBundle

      @ViewComponent protected MessageBundle messageBundle
    • uiComponents

      @Autowired protected UiComponents uiComponents
    • dataManager

      @Autowired protected DataManager dataManager
    • metadata

      @Autowired protected Metadata metadata
    • messageTools

      @Autowired protected MessageTools messageTools
    • viewNavigators

      @Autowired protected ViewNavigators viewNavigators
    • idSerialization

      @Autowired protected IdSerialization idSerialization
    • entitySearcher

      @Autowired protected EntitySearcher entitySearcher
    • dialogWindows

      @Autowired protected DialogWindows dialogWindows
    • notifications

      @Autowired protected Notifications notifications
    • searchResult

      protected SearchResult searchResult
    • searchStrategy

      protected String searchStrategy
    • entities

      protected List<String> entities
    • searchSize

      protected int searchSize
    • value

      protected String value
    • searchFieldContext

      protected SearchFieldContext searchFieldContext
    • searchButtonVisible

      protected boolean searchButtonVisible
    • settingsButtonVisible

      protected boolean settingsButtonVisible
    • searchResultRenderer

      protected final com.vaadin.flow.data.renderer.ComponentRenderer<com.vaadin.flow.component.Component,SearchResultEntry> searchResultRenderer
  • Constructor Details

    • SearchResultsView

      public SearchResultsView()
  • Method Details

    • beforeEnter

      public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler
      Overrides:
      beforeEnter in class View<ViewLayout>
    • createSearchContext

      protected SearchContext createSearchContext(SearchFieldContext searchFieldContext)
    • createSearchContext

      protected SearchContext createSearchContext(String value, List<String> entities, int size)
    • initSearchFieldContext

      protected void initSearchFieldContext()
    • parseQueryParameters

      protected void parseQueryParameters(Map<String,List<String>> parameters)
    • initView

      public void initView(SearchFieldContext searchFieldContext)
    • handleSearchResult

      protected void handleSearchResult(SearchResult searchResult)
    • handleNoSearchText

      protected void handleNoSearchText()
    • renderResult

      protected void renderResult(SearchResult searchResult)
    • createNoSearchTextSpan

      protected com.vaadin.flow.component.html.Span createNoSearchTextSpan()
    • createHitDiv

      protected com.vaadin.flow.component.html.Div createHitDiv(String caption)
    • createSearchField

      protected SearchField createSearchField(SearchResult searchResult)
    • createInstanceButton

      protected JmixButton createInstanceButton(String entityName, SearchResultEntry entry)
    • openEntityView

      protected void openEntityView(SearchResultEntry entry, String entityName)
    • formatFieldCaption

      protected String formatFieldCaption(String entityName, String fieldName)
    • reloadEntity

      protected Object reloadEntity(MetaClass metaClass, Object entityId)