|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.change.ChangeManager
public abstract class ChangeManager
The base class for all ChangeManagers. A ChangeManager should manage accumulation of Changes and also take care of their persistence.
Constructor Summary | |
---|---|
ChangeManager()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeManager()
Method Detail |
---|
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 to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |