|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.adf.view.rich.context.DirtyPageHandler
public abstract class DirtyPageHandler
META_INF/services-based application-scoped object for tracking whether navigation will result in data loss. Only a single implementation may be registered per application. Registering multiple implementations will result in an IllegalStateException at applciation initialization. If no implementation is registered, a default implementation will be used. That implementation will always return false from isDataDirty and will do nothing in response to a trackNavigation call.
| Nested Class Summary | |
|---|---|
static class |
DirtyPageHandler.DirtyPageContextContext class passed to the DirtyPageHandler's trackNavigation when DirtyPageHandler needs to track navigation and call confirmNavigation when a navigation will result in the loss of uncommitted data |
static class |
DirtyPageHandler.UncommittedDataWarningPossible Uncommitted Data warning configuration options |
| Constructor Summary | |
|---|---|
DirtyPageHandler() |
|
| Method Summary | |
|---|---|
DirtyPageHandler.UncommittedDataWarning |
getUncommittedDataWarning()Returns a default value for the Uncommitted Data Warning configuration option |
boolean |
isDataDirty()Called by the view during the RenderResponse phase to determine whether the page being rendered contains uncommitted data. |
void |
navigationCanceled(java.lang.String confirmationToken)Called by the view when the user has canceled a navigation that could result in data loss. |
void |
navigationConfirmed(java.lang.String confirmationToken)Called by the view when the user has confirmed a navigation that could result in data loss. |
void |
trackNavigation(DirtyPageHandler.DirtyPageContext dirtyContext)Called by the view once per request before the InvokeApplication phase to indicate whether the DirtyHandler should track navigation for this request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirtyPageHandler()
| Method Detail |
|---|
public DirtyPageHandler.UncommittedDataWarning getUncommittedDataWarning()
public boolean isDataDirty()
true if the current page contains uncommitted data.public void trackNavigation(DirtyPageHandler.DirtyPageContext dirtyContext)
dirtyContext is non-null, navigation should be tracked and DirtyPageContext.confirmNavigation should be called when a navigation is going to result in the loss of uncommitted data.dirtyContext -DirtyPageHandler.DirtyPageContextpublic void navigationConfirmed(java.lang.String confirmationToken)
DirtyPageContext.confirmNavigation.DirtyPageHandler.DirtyPageContext.confirmNavigation(java.lang.String)public void navigationCanceled(java.lang.String confirmationToken)
DirtyPageHandler.DirtyPageContext.confirmNavigation(java.lang.String)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||