@UiController(value="search_SearchResults.screen")
@UiDescriptor(value="search-results-screen.xml")
public class SearchResultsScreen
extends io.jmix.ui.screen.Screen
Modifier and Type | Class and Description |
---|---|
protected static class |
SearchResultsScreen.Page |
io.jmix.ui.screen.Screen.AfterCloseEvent, io.jmix.ui.screen.Screen.AfterDetachEvent, io.jmix.ui.screen.Screen.AfterInitEvent, io.jmix.ui.screen.Screen.AfterShowEvent, io.jmix.ui.screen.Screen.BeforeCloseEvent, io.jmix.ui.screen.Screen.BeforeShowEvent, io.jmix.ui.screen.Screen.InitEvent
Modifier and Type | Field and Description |
---|---|
protected io.jmix.ui.component.ScrollBoxLayout |
contentBox |
protected SearchResultsScreen.Page |
currentPage |
protected io.jmix.core.UnconstrainedDataManager |
dataManager |
protected EntitySearcher |
entitySearcher |
protected io.jmix.core.IdSerialization |
idSerialization |
protected io.jmix.core.Messages |
messages |
protected io.jmix.core.MessageTools |
messageTools |
protected io.jmix.core.Metadata |
metadata |
protected io.jmix.ui.component.HBoxLayout |
navigationBox |
protected io.jmix.ui.Notifications |
notifications |
protected java.util.Queue<SearchResultsScreen.Page> |
pages |
static java.lang.String |
SCREEN_ID |
protected io.jmix.ui.ScreenBuilders |
screenBuilders |
protected SearchProperties |
searchProperties |
protected SearchResult |
searchResult |
protected io.jmix.ui.UiComponents |
uiComponents |
Constructor and Description |
---|
SearchResultsScreen() |
Modifier and Type | Method and Description |
---|---|
protected io.jmix.ui.component.CssLayout |
createCssLayout() |
protected io.jmix.ui.component.Label<java.lang.String> |
createEntityLabel(java.lang.String caption) |
protected io.jmix.ui.component.Label<java.lang.String> |
createHitLabel(java.lang.String caption) |
protected io.jmix.ui.component.Button |
createInstanceButton(java.lang.String entityName,
SearchResultEntry entry) |
protected io.jmix.ui.component.Label<java.lang.String> |
createNoSearchTextLabel() |
protected io.jmix.ui.component.Label<java.lang.String> |
createNotFoundLabel() |
protected void |
displayInstances(SearchResult searchResult,
java.lang.String entityName,
io.jmix.ui.component.CssLayout instancesLayout) |
protected java.lang.String |
formatFieldCaption(java.lang.String entityName,
java.lang.String fieldName) |
protected SearchResultsScreen.Page |
getLastPage() |
protected void |
handleNoSearchText() |
protected void |
handleSearchResult(SearchResult searchResult) |
protected void |
initScreenCaption(SearchResult searchResult) |
void |
onBeforeShow(io.jmix.ui.screen.Screen.BeforeShowEvent event) |
protected void |
onInstanceClick(java.lang.String entityName,
SearchResultEntry entry) |
protected void |
openEntityWindow(SearchResultEntry entry,
java.lang.String entityName,
io.jmix.ui.screen.OpenMode openMode,
io.jmix.ui.screen.FrameOwner origin) |
protected void |
openNextPage() |
protected void |
openPage(SearchResultsScreen.Page page) |
protected java.lang.Object |
reloadEntity(io.jmix.core.metamodel.model.MetaClass metaClass,
java.lang.Object entityId) |
protected void |
renderNavigationControls(java.util.Queue<SearchResultsScreen.Page> pages) |
protected void |
renderResult(SearchResultsScreen.Page page) |
SearchResultsScreen |
setSearchResult(SearchResult searchResult) |
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
public static final java.lang.String SCREEN_ID
@Autowired protected io.jmix.ui.UiComponents uiComponents
@Autowired protected io.jmix.core.Metadata metadata
@Autowired protected io.jmix.core.Messages messages
@Autowired protected io.jmix.core.MessageTools messageTools
@Autowired protected io.jmix.ui.ScreenBuilders screenBuilders
@Autowired protected io.jmix.core.UnconstrainedDataManager dataManager
@Autowired protected SearchProperties searchProperties
@Autowired protected EntitySearcher entitySearcher
@Autowired protected io.jmix.ui.Notifications notifications
@Autowired protected io.jmix.core.IdSerialization idSerialization
@Autowired protected io.jmix.ui.component.ScrollBoxLayout contentBox
@Autowired protected io.jmix.ui.component.HBoxLayout navigationBox
protected SearchResultsScreen.Page currentPage
protected java.util.Queue<SearchResultsScreen.Page> pages
protected SearchResult searchResult
@Subscribe public void onBeforeShow(io.jmix.ui.screen.Screen.BeforeShowEvent event)
public SearchResultsScreen setSearchResult(SearchResult searchResult)
protected void initScreenCaption(SearchResult searchResult)
protected void handleSearchResult(SearchResult searchResult)
protected void handleNoSearchText()
protected void renderResult(SearchResultsScreen.Page page)
protected void renderNavigationControls(java.util.Queue<SearchResultsScreen.Page> pages)
protected void openPage(SearchResultsScreen.Page page)
protected void openNextPage()
protected SearchResultsScreen.Page getLastPage()
protected io.jmix.ui.component.CssLayout createCssLayout()
protected io.jmix.ui.component.Label<java.lang.String> createNoSearchTextLabel()
protected io.jmix.ui.component.Label<java.lang.String> createNotFoundLabel()
protected io.jmix.ui.component.Label<java.lang.String> createEntityLabel(java.lang.String caption)
protected void displayInstances(SearchResult searchResult, java.lang.String entityName, io.jmix.ui.component.CssLayout instancesLayout)
protected java.lang.String formatFieldCaption(java.lang.String entityName, java.lang.String fieldName)
protected io.jmix.ui.component.Button createInstanceButton(java.lang.String entityName, SearchResultEntry entry)
protected io.jmix.ui.component.Label<java.lang.String> createHitLabel(java.lang.String caption)
protected void onInstanceClick(java.lang.String entityName, SearchResultEntry entry)
protected void openEntityWindow(SearchResultEntry entry, java.lang.String entityName, io.jmix.ui.screen.OpenMode openMode, io.jmix.ui.screen.FrameOwner origin)
protected java.lang.Object reloadEntity(io.jmix.core.metamodel.model.MetaClass metaClass, java.lang.Object entityId)