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 ComponentCreationListener
s 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(javax.faces.component.UIComponent componentRef,
String clientId,
ComponentCreationListener listener)
Adds a dependency listener.
|
void |
addDependencyListener(javax.faces.component.UIComponent componentRef,
javax.faces.component.UIComponent depComponent,
ComponentCreationListener listener)
Adds a dependency listener.
|
HashMap |
getListenerMap() |
IlvRendererManager |
getRendererManager()
Returns the renderer manager instance associated with the manager.
|
boolean |
isRendered(javax.faces.component.UIComponent component)
Returns the rendering state of a component.
|
void |
notifyComponentCreation(Writer writer,
javax.faces.component.UIComponent component)
Notifies the interested listeners of the creation of a component by calling
their
onComponentCreated method. |
public IlvDependencyManager()
IlvDependencyManager
instance.public void addDependencyListener(javax.faces.component.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(javax.faces.component.UIComponent componentRef, javax.faces.component.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, javax.faces.component.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.IOException
public HashMap getListenerMap()
IlvDebugDependencies
component.public IlvRendererManager getRendererManager()
public boolean isRendered(javax.faces.component.UIComponent component)
component
- The component to test.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.