public interface AttachNotifier
AttachEvent
and DetachEvent
events.Modifier and Type | Method and Description |
---|---|
Subscription |
addAttachListener(java.util.function.Consumer<AttachEvent> listener)
Registers a new attached listener.
|
Subscription |
addDetachListener(java.util.function.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 |
isAttached() |
boolean isAttached()
void attached()
void detached()
Subscription addAttachListener(java.util.function.Consumer<AttachEvent> listener)
listener
- a listener to addSubscription addDetachListener(java.util.function.Consumer<DetachEvent> listener)
listener
- a listener to add