Package io.jmix.ui.screen
Class ScreenFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
- All Implemented Interfaces:
FrameOwner
- Direct Known Subclasses:
AbstractElementPropertiesFragment
,AssignmentDetailsPropertiesFragment
,AttributeLocalizationFragment
,AttributeLocationFragment
,BandDefinitionEditor
,BpmnDiagramViewerFragment
,CanvasFragment
,CategoryAttrsFragment
,ChartWidget
,ChartWidgetEdit
,DescriptionEditFragment
,DispatcherPropertiesFragment
,EmailAttachmentFragment
,EmailTemplateAttachmentsFragment
,EmailTemplateParametersFragment
,EntityAttributesFragment
,EntityListValueFragment
,EntityTreeFragment
,EntityValueFragment
,EnumValueFragment
,ErrorRefPropertiesFragment
,ExecutionListenersFragment
,ExtensionPropertiesFragment
,FieldsFragment
,FilterConfigurationModelFragment
,FormDataPropertiesFragment
,ImapEventHandlersFragment
,InputParametersFragment
,JpqlParametersFragment
,JsonChartFragment
,MBeanOperationFragment
,MessageRefPropertiesFragment
,MultiInstanceLoopCharacteristicsPropertiesFragment
,PaletteFragment
,ParametersFragment
,ParametersFragment
,PivotTableFragment
,ProcessInstanceEditHistoryFragment
,ProcessInstanceEditRuntimeFragment
,ReportEditGeneralFragment
,ReportEditLocalesFragment
,ReportEditParametersFragment
,ReportEditSecurityFragment
,ReportEditTemplatesFragment
,ReportEditValueFormatsFragment
,RoleAssignmentFragment
,RoleFilterFragment
,SignalRefPropertiesFragment
,SimpleValueFragment
,SnapshotDiffViewer
,StepFragment
,TimerDescriptionPropertiesFragment
,UiDataFilterConfigurationModelFragment
,UserSubstitutionsFragment
,ValueFormatsFragment
Base class for all fragment controllers.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Event sent when the fragment controller is created, dependency injection is completed, and all components have completed their internal initialization procedures.static class
Event sent when the fragment controller is initialized and added to host screen.static class
Event sent when the fragment controller has been removed from host screen.static class
Event sent when the fragment controller is created and dependency injection is completed. -
Field Summary
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 Subscription
AddsScreenFragment.AfterInitEvent
listener.protected Subscription
AddsScreenFragment.AttachEvent
listener.protected Subscription
AddsScreenFragment.DetachEvent
listener.protected Subscription
addInitListener
(Consumer<ScreenFragment.InitEvent> listener) AddsScreenFragment.InitEvent
listener.protected <E> void
protected org.springframework.context.ApplicationContext
protected EventHub
protected Screen
getId()
protected ScreenData
protected List<org.springframework.context.ApplicationListener>
init()
Convenient method to perform programmatic initialization of the fragment.protected void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) protected void
setExtensions
(Map<Class<?>, Object> extensions) protected void
setFragment
(Fragment fragment) protected void
setHostController
(FrameOwner hostController) protected void
Sets id of the screen fragment.protected void
setScreenData
(ScreenData data) protected void
setUiEventListeners
(List<org.springframework.context.ApplicationListener> listeners)
-
Constructor Details
-
ScreenFragment
public ScreenFragment()
-
-
Method Details
-
setApplicationContext
@Autowired protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
getExtensions
-
setExtensions
-
getEventHub
-
fireEvent
-
setFragment
-
getFragment
-
getHostController
-
setHostController
-
getHostScreen
- Returns:
- host screen of the fragment
- Throws:
IllegalStateException
- if host screen cannot be found though hierarchy of fragments
-
setId
Sets id of the screen fragment. Called by the framework during screen init to assign screen id.- Parameters:
id
- screen id
-
getId
-
getScreenData
-
setScreenData
-
getUiEventListeners
-
setUiEventListeners
protected void setUiEventListeners(@Nullable List<org.springframework.context.ApplicationListener> listeners) -
init
Convenient method to perform programmatic initialization of the fragment.- See Also:
-
addInitListener
AddsScreenFragment.InitEvent
listener.- Parameters:
listener
- listener- Returns:
- subscription
-
addAfterInitListener
AddsScreenFragment.AfterInitEvent
listener.- Parameters:
listener
- listener- Returns:
- subscription
-
addAttachEventListener
AddsScreenFragment.AttachEvent
listener.- Parameters:
listener
- listener- Returns:
- subscription
-
addDetachEventListener
AddsScreenFragment.DetachEvent
listener.- Parameters:
listener
- listener- Returns:
- subscription
-