Package io.jmix.searchui.screen.result
Class SearchResultsScreen
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.searchui.screen.result.SearchResultsScreen
- All Implemented Interfaces:
FrameOwner
@UiController("search_SearchResults.screen")
@UiDescriptor("search-results-screen.xml")
public class SearchResultsScreen
extends Screen
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected ScrollBoxLayout
protected SearchResultsScreen.Page
protected UnconstrainedDataManager
protected EntitySearcher
protected IdSerialization
protected Messages
protected MessageTools
protected Metadata
protected HBoxLayout
protected Notifications
protected Queue<SearchResultsScreen.Page>
static final String
protected ScreenBuilders
protected SearchProperties
protected SearchResult
protected UiComponents
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CssLayout
createEntityLabel
(String caption) createHitLabel
(String caption) protected Button
createInstanceButton
(String entityName, SearchResultEntry entry) protected void
displayInstances
(SearchResult searchResult, String entityName, CssLayout instancesLayout) protected String
formatFieldCaption
(String entityName, String fieldName) protected SearchResultsScreen.Page
protected void
protected void
handleSearchResult
(SearchResult searchResult) protected void
initScreenCaption
(SearchResult searchResult) void
protected void
onInstanceClick
(String entityName, SearchResultEntry entry) protected void
openEntityWindow
(SearchResultEntry entry, String entityName, OpenMode openMode, FrameOwner origin) protected void
protected void
protected Object
reloadEntity
(MetaClass metaClass, Object entityId) protected void
protected void
setSearchResult
(SearchResult searchResult) Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, isScreenAction, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
SCREEN_ID
- See Also:
-
uiComponents
-
metadata
-
messages
-
messageTools
-
screenBuilders
-
dataManager
-
searchProperties
-
entitySearcher
-
notifications
-
idSerialization
-
contentBox
-
currentPage
-
pages
-
searchResult
-
-
Constructor Details
-
SearchResultsScreen
public SearchResultsScreen()
-
-
Method Details
-
onBeforeShow
-
setSearchResult
-
initScreenCaption
-
handleSearchResult
-
handleNoSearchText
protected void handleNoSearchText() -
renderResult
-
openPage
-
openNextPage
protected void openNextPage() -
getLastPage
-
createCssLayout
-
createNoSearchTextLabel
-
createNotFoundLabel
-
createEntityLabel
-
displayInstances
protected void displayInstances(SearchResult searchResult, String entityName, CssLayout instancesLayout) -
formatFieldCaption
-
createInstanceButton
-
createHitLabel
-
onInstanceClick
-
openEntityWindow
protected void openEntityWindow(SearchResultEntry entry, String entityName, OpenMode openMode, FrameOwner origin) -
reloadEntity
-