|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
org.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(java.lang.String targetClassName, java.lang.String converterClassName) |
| 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(java.lang.String targetClassName,
java.lang.String converterClassName)
protected static DocumentChange createDocumentChange(ComponentChange change)
change - to convert
public abstract void addComponentChange(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
ComponentChange change)
java.lang.IllegalArgumentException - if any of the supplied parameters were to be null.
public void addDocumentChange(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
DocumentChange change)
java.lang.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.java.lang.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 | |||||||||
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.