public class DefaultLazyLoader extends Div implements LazyLoader
LazyLoader implementation.
This implementation loads all lazy loaded components one-by-one, by the use of multiple echo events sent between
server and client.| Constructor and Description |
|---|
DefaultLazyLoader(Component container,
java.util.List<Component> components)
Creates a new DefaultLazyLoader instance with the specified lazy load parent and child components.
|
| Modifier and Type | Method and Description |
|---|---|
protected EventListener |
getLazyListener() |
void |
loadComponents()
Loads the "lazy loaded" child components (see
LazyLoader.setLazyLoadChildren(List)) bit-by-bit i.e. |
void |
setLazyLoadChildren(java.util.List<Component> children)
Sets the components which should be lazy loaded.
|
void |
setLazyLoadParent(Component parent)
Sets the parent component to be used for the lazy loaded child components.
|
public DefaultLazyLoader(Component container,
java.util.List<Component> components)
container - component to which the lazy loaded child components will be attachedcomponents - components which should be lazy loadedpublic void loadComponents()
LazyLoader.setLazyLoadChildren(List)) bit-by-bit i.e. attaches the
components to the lazy load parent (see LazyLoader.setLazyLoadParent(Component)) in multiple event cycles.
The default implementation loads components one-by-one using multiple echo events between server and client.loadComponents in interface LazyLoaderpublic void setLazyLoadChildren(java.util.List<Component> children)
LazyLoaderLazyLoader.loadComponents() method is called, the components in the specified list children will
be attached to the lazy load parent (see LazyLoader.setLazyLoadParent(Component)).setLazyLoadChildren in interface LazyLoaderchildren - components which should be lazy loadedpublic void setLazyLoadParent(Component parent)
LazyLoadersetLazyLoadParent in interface LazyLoaderparent - component to which the lazy loaded child components will be attachedLazyLoader.setLazyLoadChildren(List),
LazyLoader.loadComponents()protected EventListener getLazyListener()
Copyright © 2018 SAP SE. All Rights Reserved.