com.vaadin.ui.
Interface HasComponents.ComponentAttachDetachNotifier
-
All Superinterfaces:
All Known Subinterfaces:
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:
public static interface HasComponents.ComponentAttachDetachNotifier extends Serializable
Interface for
HasComponents
implementations that support sending attach and detach events for components.Since:
7.0
-
-
Method Summary
All 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 nullReturns:
a registration object for removing the listener
Since:
8.0
See Also:
-
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.
-
-