public class IlvDependencyManager extends Object
IlvDependencyManager manages the dependencies between the components. It
should be called by the renderers in their resolveDependencies
method to register new ComponentCreationListeners or to
notify the creation of new components that can resolve some dependencies.| Constructor and Description |
|---|
IlvDependencyManager()
Creates a new
IlvDependencyManager instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencyListener(UIComponent componentRef,
String clientId,
ComponentCreationListener listener)
Adds a dependency listener.
|
void |
addDependencyListener(UIComponent componentRef,
UIComponent depComponent,
ComponentCreationListener listener)
Adds a dependency listener.
|
HashMap |
getListenerMap() |
IlvRendererManager |
getRendererManager()
Returns the renderer manager instance associated with the manager.
|
boolean |
isRendered(UIComponent component)
Returns the rendering state of a component.
|
void |
notifyComponentCreation(Writer writer,
UIComponent component)
Notifies the interested listeners of the creation of a component by calling
their
onComponentCreated method. |
public IlvDependencyManager()
IlvDependencyManager instance.public void addDependencyListener(UIComponent componentRef, String clientId, ComponentCreationListener listener)
componentRef - The base component that resolves the absolute ID of the
component that is needed.clientId - The relative ID of the component that is needed.listener - The ComponentCreationListener that must be
triggered upon creation of the required component.public void addDependencyListener(UIComponent componentRef, UIComponent depComponent, ComponentCreationListener listener)
componentRef - The base component that resolves the absolute ID of the
component that is needed.depComponent - The dependency component that is needed.listener - The ComponentCreationListener that must be
triggered upon creation of the required component.public void notifyComponentCreation(Writer writer, UIComponent component) throws IOException
onComponentCreated method.writer - The writer that writes the code to resolve the dependency on
the client side.component - The new component that was created.IOExceptionpublic HashMap getListenerMap()
IlvDebugDependencies component.public IlvRendererManager getRendererManager()
public boolean isRendered(UIComponent component)
component - The component to test.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.