public abstract class ChangeManager extends Object
Constructor and Description |
---|
ChangeManager() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addComponentChange(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
ComponentChange change)
Add a ComponentChange to this current request for a specified component.
|
void |
addDocumentChange(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
DocumentChange change)
Add a DocumentChange to this current request for a specified component.
|
void |
applyComponentChangesForCurrentView(javax.faces.context.FacesContext facesContext)
Applies all the ComponentChanges added so far for the current view.
|
void |
applyComponentChangesForSubtree(javax.faces.context.FacesContext facesContext,
javax.faces.component.NamingContainer root)
Applies the ComponentChanges added so far for components underneath
the specified NamingContainer.
|
void |
applySimpleComponentChanges(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Apply non-cross-component changes to a component in its original location.
|
protected static DocumentChange |
createDocumentChange(ComponentChange change)
Use the conversion rules to attempt to retrieve the equivalent
document change for a ComponentChange
|
static void |
registerDocumentFactory(String targetClassName,
String converterClassName) |
AttributeComponentChange |
replaceAttributeChangeIfPresent(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
AttributeComponentChange attributeComponentChange)
Replace an AttributeComponentChange if it's present.
|
public static void registerDocumentFactory(String targetClassName, String converterClassName)
protected static DocumentChange createDocumentChange(ComponentChange change)
change
- to convertpublic abstract void addComponentChange(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, ComponentChange change)
IllegalArgumentException
- if any of the supplied parameters were to
be null.public AttributeComponentChange replaceAttributeChangeIfPresent(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, AttributeComponentChange attributeComponentChange)
facesContext
- uiComponent
- attributeComponentChange
- public void addDocumentChange(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, DocumentChange change)
IllegalArgumentException
- if any of the supplied parameters were to
be null.public void applyComponentChangesForCurrentView(javax.faces.context.FacesContext facesContext)
facesContext
- The FacesContext instance for the current request.public void applyComponentChangesForSubtree(javax.faces.context.FacesContext facesContext, javax.faces.component.NamingContainer root)
facesContext
- The FacesContext instance for the current request.root
- The NamingContainer that contains the component subtree
to which ComponentChanges should be applied. If null, all changes are
applied.IllegalArgumentException
- if the root NamingContainer is not a
UIComponent instance.public void applySimpleComponentChanges(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
context
- component
- Component to apply the simple changes toCopyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.