Package io.jmix.ui.component
Interface AttachNotifier
- All Known Implementing Classes:
AbstractActionsHolderComponent
,AbstractBox
,AbstractCanvasLayout
,AbstractComponent
,AbstractDataGrid
,AbstractField
,AbstractFileStorageUploadField
,AbstractOrderedLayout
,AbstractPagination
,AbstractResourceView
,AbstractSelectList
,AbstractSingleFileUploadField
,AbstractSingleFilterComponent
,AbstractSuggestionField
,AbstractTable
,AbstractTextArea
,AbstractValueComponent
,AbstractViewComponent
,AccordionImpl
,AngularGaugeChartImpl
,AppMenuImpl
,AppWorkAreaImpl
,BpmnModelerImpl
,BpmnViewerImpl
,BrowserFrameImpl
,ButtonImpl
,ButtonsPanelImpl
,CalendarImpl
,CanvasCssLayout
,CanvasGridLayout
,CanvasHorizontalLayout
,CanvasResponsiveLayout
,CanvasRootLayout
,CanvasVerticalLayout
,CanvasWidgetLayout
,CapsLockIndicatorImpl
,ChartImpl
,CheckBoxGroupImpl
,CheckBoxImpl
,ColorPickerImpl
,ComboBoxImpl
,CompositeComponent
,CoordinateChartImpl
,CssLayoutImpl
,CurrencyFieldImpl
,CustomChartImpl
,DashboardImpl
,DataGridImpl
,DateFieldImpl
,DatePickerImpl
,DrawerImpl
,DynamicAttributesPanel
,EntityComboBoxImpl
,EntityLinkFieldImpl
,EntityPickerImpl
,EntitySuggestionFieldImpl
,FileMultiUploadFieldImpl
,FileStorageUploadFieldImpl
,FileUploadFieldImpl
,FilterImpl
,FlowBoxLayoutImpl
,FormImpl
,FragmentImpl
,FullTextFilterImpl
,FunnelChartImpl
,GanttChartImpl
,GeoMapImpl
,GrapesJsHtmlEditorImpl
,GrapesJsNewsletterHtmlEditorImpl
,GrapesJsWebpageHtmlEditorImpl
,GridLayoutImpl
,GroupBoxImpl
,GroupFilterImpl
,GroupTableImpl
,HBoxLayoutImpl
,HtmlBoxLayoutImpl
,ImageImpl
,JavaScriptComponentImpl
,JpqlFilterImpl
,LabelImpl
,LinkButtonImpl
,LinkImpl
,LogoutButtonImpl
,MaskedFieldImpl
,MultiSelectListImpl
,NewWindowButtonImpl
,NotificationsIndicatorImpl
,OutcomesPanelImpl
,PaginationImpl
,PaletteButton
,PasswordFieldImpl
,PieChartImpl
,PivotTableImpl
,PopupButtonImpl
,PopupViewImpl
,ProgressBarImpl
,PropertyFilterImpl
,RadarChartImpl
,RadioButtonGroupImpl
,RectangularChartImpl
,RelatedEntitiesImpl
,ResizableTextAreaImpl
,ResponsiveGridLayoutImpl
,RichTextAreaImpl
,ScrollBoxLayoutImpl
,SearchFieldImpl
,SerialChartImpl
,SeriesBasedChartImpl
,SideMenuImpl
,SimplePaginationImpl
,SingleSelectListImpl
,SlicedChartImpl
,SliderImpl
,SourceCodeEditorImpl
,SplitPanelImpl
,StockChartImpl
,SuggestionFieldImpl
,TableImpl
,TabSheetImpl
,TagFieldImpl
,TagPickerImpl
,TextAreaImpl
,TextFieldImpl
,TimeFieldImpl
,TimeZoneIndicatorImpl
,TreeDataGridImpl
,TreeImpl
,TreeTableImpl
,TwinColumnImpl
,UserActionsButtonImpl
,UserIndicatorImpl
,ValuePickerImpl
,ValuesPickerImpl
,VBoxLayoutImpl
,WebdavDocumentLinkImpl
,WebdavDocumentUploadFieldImpl
,WebdavDocumentVersionLinkImpl
,XYChartImpl
public interface AttachNotifier
Component that fires
AttachEvent
and DetachEvent
events.-
Method Summary
Modifier and TypeMethodDescriptionaddAttachListener
(Consumer<AttachEvent> listener) Registers a new attached listener.addDetachListener
(Consumer<DetachEvent> listener) Registers a new detached listener.void
attached()
Notifies all listeners that component has been attached.void
detached()
Notifies all listeners that component has been detached.boolean
-
Method Details
-
isAttached
boolean isAttached()- Returns:
- whether a component is attached to a window
-
attached
void attached()Notifies all listeners that component has been attached. -
detached
void detached()Notifies all listeners that component has been detached. -
addAttachListener
Registers a new attached listener.- Parameters:
listener
- a listener to add- Returns:
- a registration object for removing an event listener added to a source
-
addDetachListener
Registers a new detached listener.- Parameters:
listener
- a listener to add- Returns:
- a registration object for removing an event listener added to a source
-