|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.context.ApplicationContextChange
oracle.adf.view.rich.context.DoableContextChange
public abstract class DoableContextChange
ApplicationContextChange designed to both has suspending and resuming the change as well as implementing the change after the DoableContextChange is created. The Basic order is:
After creation, suspend
, resume
and undoChange
will throw IllegalStateExceptions until the DoableContextChange is initialized by calling doChange()
This calls takes care of tracking the valid states so that doChange() or undoChange() are never called multiple times back-to-back.
doChange(javax.faces.context.FacesContext)
, undoChange(javax.faces.context.FacesContext)
Constructor Summary | |
---|---|
DoableContextChange() |
Method Summary | |
---|---|
void |
doChange(javax.faces.context.FacesContext context) Apply the change. |
protected abstract void |
doChangeImpl(javax.faces.context.FacesContext context) Implementation of code to apply the change |
void |
resume(javax.faces.context.FacesContext context) Resume a currently suspended context change. |
void |
suspend(javax.faces.context.FacesContext context) Suspend the context change and revert back to the application context that existed before this context change was originally made. |
void |
undoChange(javax.faces.context.FacesContext context) Undo the change. |
protected abstract void |
undoChangeImpl(javax.faces.context.FacesContext context) Implementation of code to undo the change |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoableContextChange()
Method Detail |
---|
public final void suspend(javax.faces.context.FacesContext context) throws java.lang.IllegalStateException
It's only valid to suspend a context change that's currently active. The implementation of this method does not need to support a call to suspend a context change that's already suspended.
suspend
in class ApplicationContextChange
context
- the FacesContext
for the current request.java.lang.IllegalStateException
- if the context change is already suspended or was never initializedpublic final void resume(javax.faces.context.FacesContext context) throws java.lang.IllegalStateException
resume
in class ApplicationContextChange
context
- the FacesContext
for the current request.java.lang.IllegalStateException
- if the context change is not currently suspended or initialized,public final void doChange(javax.faces.context.FacesContext context) throws java.lang.IllegalStateException
context
- Current FacesContextjava.lang.IllegalStateException
- if called on a suspended changepublic final void undoChange(javax.faces.context.FacesContext context)
context
- Current FacesContextjava.lang.IllegalStateException
- if called on a suspended or uninitialized changeprotected abstract void doChangeImpl(javax.faces.context.FacesContext context)
context
- Current FacesContextprotected abstract void undoChangeImpl(javax.faces.context.FacesContext context)
context
- Current FacesContext
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |