Package io.jmix.ui.screen
Class StandardLookup<T>
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.screen.StandardLookup<T>
- Type Parameters:
T
- type of entity
- All Implemented Interfaces:
FrameOwner
,LookupScreen<T>
,MultiSelectLookupScreen
- Direct Known Subclasses:
AddConditionScreen
,AllTasksBrowse
,BusinessCalendarBrowse
,CategoryBrowse
,ContentStorageBrowse
,DashboardGroupBrowse
,DmnDecisionTableLookup
,EmailTemplateBrowse
,EntityInspectorBrowser
,EntityLogBrowser
,EntityTreeLookup
,FormFieldLookup
,ImapFolderLookup
,ImapMailBoxBrowse
,ImapMessageBrowse
,InAppNotificationBrowse
,JobModelBrowse
,MasterDetailScreen
,MyTasksBrowse
,PersistentDashboardBrowse
,ProcessDefinitionBrowse
,ProcessDefinitionLookup
,ProcessInstanceBrowse
,ReportBrowser
,ReportExecutionBrowser
,ReportExecutionDialog
,ReportGroupBrowser
,ReportRun
,ResourceRoleModelBrowse
,ResourceRoleModelLookup
,RowLevelRoleModelBrowse
,RowLevelRoleModelLookup
,SendingMessageAttachments
,StartProcessScreen
,TemplateBlockBrowse
,TemplateBlockGroupBrowse
,TemplateGroupBrowse
,TenantBrowse
,UserGroupBrowse
,UserSessionsBrowse
,WebdavDocumentBrowse
,WebdavShowDocumentVersionBrowse
,WidgetTemplateBrowse
,WidgetTemplateGroupBrowse
Base class for lookup screens.
-
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
Nested classes/interfaces inherited from interface io.jmix.ui.screen.LookupScreen
LookupScreen.ValidationContext<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected Consumer<Collection<T>>
protected Predicate<LookupScreen.ValidationContext<T>>
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Fields inherited from interface io.jmix.ui.screen.LookupScreen
LOOKUP_CANCEL_ACTION_ID, LOOKUP_ENTER_PRESSED_ACTION_ID, LOOKUP_ITEM_CLICK_ACTION_ID, LOOKUP_SELECT_ACTION_ID, LOOKUP_SELECT_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Action
addDefaultCancelAction
(Messages messages, Icons icons) protected Action
addDefaultSelectAction
(Messages messages, Icons icons) protected void
protected Component
protected LookupComponent<T>
protected void
initActions
(Screen.InitEvent event) protected void
protected void
select
(Collection<T> items) void
setLookupComponentMultiSelect
(boolean multiSelect) Informs a screen that a lookup component should change its selection mode, if possible.void
setSelectHandler
(Consumer<Collection<T>> selectHandler) Sets selection handler for screen.void
setSelectValidator
(Predicate<LookupScreen.ValidationContext<T>> selectValidator) Sets selection validator.protected void
protected void
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, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
selectHandler
-
selectValidator
-
-
Constructor Details
-
StandardLookup
public StandardLookup()
-
-
Method Details
-
initActions
-
getWindowActionOptional
-
addDefaultSelectAction
-
addDefaultCancelAction
-
setupCommitShortcut
protected void setupCommitShortcut() -
setupLookupComponent
protected void setupLookupComponent() -
getSelectHandler
- Specified by:
getSelectHandler
in interfaceLookupScreen<T>
- Returns:
- selection handler
-
setSelectHandler
Description copied from interface:LookupScreen
Sets selection handler for screen.- Specified by:
setSelectHandler
in interfaceLookupScreen<T>
- Parameters:
selectHandler
- selection handler
-
getSelectValidator
- Specified by:
getSelectValidator
in interfaceLookupScreen<T>
- Returns:
- selection validator
-
setSelectValidator
Description copied from interface:LookupScreen
Sets selection validator.- Specified by:
setSelectValidator
in interfaceLookupScreen<T>
- Parameters:
selectValidator
- selection validator
-
getLookupActionsLayout
-
getLookupComponent
-
select
-
cancel
-
select
-
setLookupComponentMultiSelect
public void setLookupComponentMultiSelect(boolean multiSelect) Description copied from interface:MultiSelectLookupScreen
Informs a screen that a lookup component should change its selection mode, if possible.- Specified by:
setLookupComponentMultiSelect
in interfaceMultiSelectLookupScreen
- Parameters:
multiSelect
-true
to enable multiple selections,false
otherwise
-