Package io.jmix.searchflowui.view.result
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected DialogWindows
protected EntitySearcher
protected IdSerialization
protected MessageBundle
protected MessageTools
protected Metadata
protected Notifications
static final String
static final String
static final String
static final String
static final String
static final String
protected boolean
protected SearchFieldContext
protected SearchResult
protected final com.vaadin.flow.data.renderer.ComponentRenderer<com.vaadin.flow.component.Component,
SearchResultEntry> protected int
protected String
protected boolean
protected UiComponents
protected String
protected ViewNavigators
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeEnter
(com.vaadin.flow.router.BeforeEnterEvent event) protected com.vaadin.flow.component.html.Div
createHitDiv
(String caption) protected JmixButton
createInstanceButton
(String entityName, SearchResultEntry entry) protected com.vaadin.flow.component.html.Span
protected SearchContext
createSearchContext
(SearchFieldContext searchFieldContext) protected SearchContext
createSearchContext
(String value, List<String> entities, int size) protected SearchField
createSearchField
(SearchResult searchResult) protected String
formatFieldCaption
(String entityName, String fieldName) protected void
protected void
handleSearchResult
(SearchResult searchResult) protected void
void
initView
(SearchFieldContext searchFieldContext) protected void
openEntityView
(SearchResultEntry entry, String entityName) protected void
parseQueryParameters
(Map<String, List<String>> parameters) protected Object
reloadEntity
(MetaClass metaClass, Object entityId) protected void
renderResult
(SearchResult searchResult) Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigation
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
QUERY_PARAM_VALUE
- See Also:
-
QUERY_PARAM_ENTITIES
- See Also:
-
QUERY_PARAM_STRATEGY
- See Also:
-
QUERY_PARAM_SEARCH_SIZE
- See Also:
-
QUERY_PARAM_SEARCH_BUTTON_VISIBLE
- See Also:
-
QUERY_PARAM_SETTINGS_BUTTON_VISIBLE
- See Also:
-
systemFieldLabels
-
messageBundle
-
uiComponents
-
dataManager
-
metadata
-
messageTools
-
idSerialization
-
entitySearcher
-
dialogWindows
-
notifications
-
searchResult
-
searchStrategy
-
entities
-
searchSize
protected int searchSize -
value
-
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 interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
- Overrides:
beforeEnter
in classView<ViewLayout>
-
createSearchContext
-
createSearchContext
-
initSearchFieldContext
protected void initSearchFieldContext() -
parseQueryParameters
-
initView
-
handleSearchResult
-
handleNoSearchText
protected void handleNoSearchText() -
renderResult
-
createNoSearchTextSpan
protected com.vaadin.flow.component.html.Span createNoSearchTextSpan() -
createHitDiv
-
createSearchField
-
createInstanceButton
-
openEntityView
-
formatFieldCaption
-
reloadEntity
-