Package com.vaadin.ui
Interface HasComponents.ComponentAttachDetachNotifier
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ComponentContainer
,Layout
,SingleComponentContainer
- All Known Implementing Classes:
AbsoluteLayout
,AbstractComponentContainer
,AbstractLayout
,AbstractOrderedLayout
,AbstractSingleComponentContainer
,AbstractSplitPanel
,Accordion
,ColorPickerPopup
,ColorPickerPreview
,CssLayout
,CustomLayout
,FormLayout
,GridLayout
,HorizontalLayout
,HorizontalSplitPanel
,LegacyWindow
,LoginForm
,Navigator.EmptyView
,Panel
,TabSheet
,UI
,VerticalLayout
,VerticalSplitPanel
,Window
- Enclosing interface:
- HasComponents
public static interface HasComponents.ComponentAttachDetachNotifier extends Serializable
Interface forHasComponents
implementations that support sending attach and detach events for components.- Since:
- 7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Registration
addComponentAttachListener(HasComponents.ComponentAttachListener listener)
Listens the component attach events.Registration
addComponentDetachListener(HasComponents.ComponentDetachListener listener)
Listens the component detach events.void
removeComponentAttachListener(HasComponents.ComponentAttachListener listener)
Deprecated.As of 8.0, replaced byRegistration.remove()
in the registration object returned fromaddComponentAttachListener(ComponentAttachListener)
.void
removeComponentDetachListener(HasComponents.ComponentDetachListener listener)
Deprecated.
-
-
-
Method Detail
-
addComponentAttachListener
Registration addComponentAttachListener(HasComponents.ComponentAttachListener listener)
Listens the component attach events.- Parameters:
listener
- the listener to add, not null- Returns:
- a registration object for removing the listener
- Since:
- 8.0
- See Also:
Registration
-
removeComponentAttachListener
@Deprecated void removeComponentAttachListener(HasComponents.ComponentAttachListener listener)
Deprecated.As of 8.0, replaced byRegistration.remove()
in the registration object returned fromaddComponentAttachListener(ComponentAttachListener)
.Stops the listening component attach events.- Parameters:
listener
- the listener to removed.- Since:
- 8.0
-
addComponentDetachListener
Registration addComponentDetachListener(HasComponents.ComponentDetachListener listener)
Listens the component detach events.
-
removeComponentDetachListener
@Deprecated void removeComponentDetachListener(HasComponents.ComponentDetachListener listener)
Deprecated.Stops the listening component detach events.
-
-