Package org.apache.wicket
Interface IDetachListener
-
public interface IDetachListener
Listens toComponent.detach()
calls. Detach listeners are called as the last step in the process of detaching a component; this means the component is in a fully detached state when the listener is invoked.- Author:
- igor.vaynberg
- See Also:
FrameworkSettings.setDetachListener(IDetachListener)
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onDestroyListener()
Called when the application is being destroyed.default void
onDetach(Component component)
Called when component is being detached via a call toComponent.detach()
.
-
-
-
Method Detail
-
onDetach
default void onDetach(Component component)
Called when component is being detached via a call toComponent.detach()
. NOTICE: The component is in a fully detached state when this method is invoked; It is the listener's responsibility to maintain the detached state after this method is finished - which means if the listener causes any part of the component (eg model) to become reattached it is the listener's responsibility to detach it before this method exits.- Parameters:
component
- component being detached
-
onDestroyListener
default void onDestroyListener()
Called when the application is being destroyed. Useful for cleaning up listener caches, etc.
-
-