Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.9.0)
E52936-01


oracle.adf.view.rich.event
Class AutoSaveEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.FacesEvent
          extended by oracle.adf.view.rich.event.AutoSaveEvent

All Implemented Interfaces:
java.io.Serializable

public final class AutoSaveEvent
extends javax.faces.event.FacesEvent

AutoSaveEvent is an event passed to af:autoSaveBehavior listeners when a dirtyValue from the client side needs to be propagated to the server side. Note that dirtyValue is not using generic since we are using factory pattern for the return of newDeleteEvent or newSaveEvent.

See Also:
oracle.adfinternal.view.faces.taglib.behaviors.AutoSaveBehaviorTag, oracle.adfinternal.view.faces.facelets.rich.AutoSaveBehaviorHandler, Serialized Form

Nested Class Summary
static class AutoSaveEvent.AutoSaveType
          There are two types

 

Field Summary

 

Fields inherited from class java.util.EventObject
source

 

Method Summary
 java.lang.Object getDirtyValue()
          Returns the dirty value that has been sent from the client side
 AutoSaveEvent.AutoSaveType getType()
          Returns AutoSaveType of either SAVE or DELETE
 boolean isAppropriateListener(javax.faces.event.FacesListener facesListener)
           
static AutoSaveEvent newDeleteEvent(javax.faces.component.UIComponent uiComponent)
          Create an AutoSaveEvent to notify deletion of stored dirty value
static AutoSaveEvent newSaveEvent(javax.faces.component.UIComponent uiComponent, java.lang.Object dirtyValue)
          Create an AutoSaveEvent to notify handling of a new dirty value
 void processListener(javax.faces.event.FacesListener facesListener)
           

 

Methods inherited from class javax.faces.event.FacesEvent
getComponent, getPhaseId, queue, setPhaseId

 

Methods inherited from class java.util.EventObject
getSource, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Method Detail

newDeleteEvent

public static final AutoSaveEvent newDeleteEvent(javax.faces.component.UIComponent uiComponent)
Create an AutoSaveEvent to notify deletion of stored dirty value
Parameters:
uiComponent -
Returns:

newSaveEvent

public static final AutoSaveEvent newSaveEvent(javax.faces.component.UIComponent uiComponent,
                                               java.lang.Object dirtyValue)
Create an AutoSaveEvent to notify handling of a new dirty value
Parameters:
uiComponent -
dirtyValue -
Returns:

isAppropriateListener

public boolean isAppropriateListener(javax.faces.event.FacesListener facesListener)
Specified by:
isAppropriateListener in class javax.faces.event.FacesEvent

processListener

public void processListener(javax.faces.event.FacesListener facesListener)
Specified by:
processListener in class javax.faces.event.FacesEvent

getDirtyValue

public final java.lang.Object getDirtyValue()
Returns the dirty value that has been sent from the client side
Returns:

getType

public final AutoSaveEvent.AutoSaveType getType()
Returns AutoSaveType of either SAVE or DELETE
Returns:

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.9.0)
E52936-01


Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.