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 SummaryNested classes/interfaces inherited from class io.jmix.flowui.view.ViewView.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected DataManagerprotected DialogWindowsprotected EntitySearcherprotected IdSerializationprotected MessageBundleprotected MessageToolsprotected Metadataprotected Notificationsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected booleanprotected SearchFieldContextprotected SearchResultprotected final com.vaadin.flow.data.renderer.ComponentRenderer<com.vaadin.flow.component.Component,SearchResultEntry> protected intprotected Stringprotected booleanprotected UiComponentsprotected Stringprotected ViewNavigators
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) protected com.vaadin.flow.component.html.DivcreateHitDiv(String caption) protected JmixButtoncreateInstanceButton(String entityName, SearchResultEntry entry) protected com.vaadin.flow.component.html.Spanprotected SearchContextcreateSearchContext(SearchFieldContext searchFieldContext) protected SearchContextcreateSearchContext(String value, List<String> entities, int size) protected SearchFieldcreateSearchField(SearchResult searchResult) protected StringformatFieldCaption(String entityName, String fieldName) protected voidprotected voidhandleSearchResult(SearchResult searchResult) protected voidvoidinitView(SearchFieldContext searchFieldContext) protected voidopenEntityView(SearchResultEntry entry, String entityName) protected voidparseQueryParameters(Map<String, List<String>> parameters) protected ObjectreloadEntity(MetaClass metaClass, Object entityId) protected voidrenderResult(SearchResult searchResult) Methods inherited from class io.jmix.flowui.view.StandardViewinitContentMethods inherited from class io.jmix.flowui.view.ViewaddAfterCloseListener, 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, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, 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, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, 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
- 
searchSizeprotected int searchSize
- 
value
- 
searchFieldContext
- 
searchButtonVisibleprotected boolean searchButtonVisible
- 
settingsButtonVisibleprotected boolean settingsButtonVisible
- 
searchResultRendererprotected final com.vaadin.flow.data.renderer.ComponentRenderer<com.vaadin.flow.component.Component,SearchResultEntry> searchResultRenderer
 
- 
- 
Constructor Details- 
SearchResultsViewpublic SearchResultsView()
 
- 
- 
Method Details- 
beforeEnterpublic void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) - Specified by:
- beforeEnterin interface- com.vaadin.flow.router.internal.BeforeEnterHandler
- Overrides:
- beforeEnterin class- View<ViewLayout>
 
- 
createSearchContext
- 
createSearchContext
- 
initSearchFieldContextprotected void initSearchFieldContext()
- 
parseQueryParameters
- 
initView
- 
handleSearchResult
- 
handleNoSearchTextprotected void handleNoSearchText()
- 
renderResult
- 
createNoSearchTextSpanprotected com.vaadin.flow.component.html.Span createNoSearchTextSpan()
- 
createHitDiv
- 
createSearchField
- 
createInstanceButton
- 
openEntityView
- 
formatFieldCaption
- 
reloadEntity
 
-