Package io.fluentlenium.core.components
Interface LazyComponents<T>
- Type Parameters:
T- type of component
- All Known Implementing Classes:
ComponentList,FluentListImpl,LazyComponentList,NotLazyComponents
public interface LazyComponents<T>
Supports lazy initialization.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLazyComponentsListener(LazyComponentsListener<T> listener) Add a lazy components initialization listener.booleanisLazy()Get the lazyness of this object.booleanCheck if the underlying lazy components are initialized.booleanremoveLazyComponentsListener(LazyComponentsListener<T> listener) Remove an existing lazy components initialization listener.
-
Method Details
-
isLazy
boolean isLazy()Get the lazyness of this object.- Returns:
- true if it's lazy, false otherwise.
-
isLazyInitialized
boolean isLazyInitialized()Check if the underlying lazy components are initialized.- Returns:
- true if lazy components are initialized, false otherwise.
-
addLazyComponentsListener
Add a lazy components initialization listener.- Parameters:
listener- lazy components listener- Returns:
- true if the listener was added, false otherwise
-
removeLazyComponentsListener
Remove an existing lazy components initialization listener.- Parameters:
listener- lazy components listener- Returns:
- true if the listener was added, false otherwise
-