public class ComponentObservationEvent extends com.vaadin.flow.component.ComponentEvent<ComponentObserver>
ComponentObserver.source| Constructor and Description |
|---|
ComponentObservationEvent(ComponentObserver source,
com.vaadin.flow.component.Component observedComponent,
double visibilityRange)
Constructs a prototypical Event.
|
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.component.Component |
getObservedComponent()
Returns the component that has been observed.
|
double |
getVisibilityRange()
Returns the visibility range that happened to the observed component.
|
boolean |
isFullyVisible()
Helper method for checking if the observed component is fully visible.
|
boolean |
isNotVisible()
Helper method for checking if the observed component is no longer visible.
|
getSource, isFromClient, unregisterListenertoStringpublic ComponentObservationEvent(ComponentObserver source, com.vaadin.flow.component.Component observedComponent, double visibilityRange)
source - The object on which the Event initially occurredobservedComponent - Component that was observed.visibilityRange - Visibility range when the event happened.IllegalArgumentException - if source is nullpublic com.vaadin.flow.component.Component getObservedComponent()
Component.public double getVisibilityRange()
0 and 1, close to one of the registered visibility ranges.public final boolean isNotVisible()
getVisibilityRange() == 0.0dpublic final boolean isFullyVisible()
getVisibilityRange() == 1.0dCopyright © 2023 Miki. All rights reserved.