Class responsible for tracking the dirty state of input components on the page. This tracks both ADF components as well as 3rd party components using form input elements.
Method Summary
|
Object |
__alwaysDisplayDirtyDataWarning()
|
private Object |
_componentHasDirtyFormData(Object clientId)
|
Object |
__dataCommitted(Array.<String> ids, boolean immediateOnly)
-
Notifies the dirty state that dirty values have been processed on the server and do not need to be sent again.
|
private Object |
_gatherDescedantComponents(Object components)
|
public Array.<AdfUIComponent> |
getDirtyComponents(AdfUIComponent= ancestor)
-
Obtain a list of the components that are dirty, optionally filtering by hierarchy.
|
public Object |
getDirtyComponentsForElement(Object rootElement)
-
Returns all of the dirty components at or under the specified root element
|
private Object |
_getFormElement(Object id)
|
private string|null |
_getFormElementName(Node node)
-
Gets the form element name of a node.
|
private Object |
_getFormIdentifier(Object formElement)
|
private Object |
_handleBlurEvent(AdfComponentEvent componentEvent)
-
Called from AdfDhtmlPage when a blur event has been captured.
|
private Object |
_handleComponentRemovedEvent(Object componentEvent)
|
private Object |
_handleFocusEvent(AdfComponentEvent componentEvent)
-
Called from AdfDhtmlPage when a focus event has been captured.
|
Object |
__handleValueChangeEvent(AdfValueChangeEvent componentEvent)
-
Called from AdfDhtmlPage when an AdfValueChangeEvent is queued.
|
public boolean |
hasDirtyData(AdfUIComponent=|Node ancestor)
-
Check if the component is dirty or if there are dirty components or form elements below a given component.
|
protected Object |
Init(Object page)
-
Initializes the instance.
|
protected static Object |
InitClass()
|
private Object |
_initPotentiallyDirtyFlags()
|
public boolean |
isDirty(AdfUIEditableValue|string inputComponent)
-
Check if a client component has data that has not been updated on the server.
|
private Object |
_isImmediateEditableValueComponent(Object clientId)
|
private boolean |
_isInputComponentElement(AdfUICoponent component, Element formElement)
-
Check if a form element belongs to an input component element.
|
Object |
__isInputValueDirty(Object page, Object component, Object inputElement)
|
public Object |
isNamingContainerDirty(string clientId)
-
Performs an optimized search compared to hasDirtyData to search for dirty data underneath a naming container component using its client ID.
|
Object |
__isPotentiallyDirty()
-
Method to check if a dirty check is necessary (if any data on the page may be dirty)
|
Object |
__needsSpuriousDirtyValueTracking(Object page)
-
Tests whether the dirty state service should enable "spurious" dirty value tracking.
|
Object |
__registerDirtyDataComponent(Object component, Object level)
|
private Object |
_resetSpuriousDirtyValue(Object page, Object clientId)
-
Resets a single spurious dirty value.
|
private Object |
_resetSpuriousDirtyValues(Object page, Object dirtyComponentIds)
-
Resets spurious dirty values for all components specified in the dirtyComponentIds collection, if __needsSpuriousDirtyValueTracking() is true.
|
Object |
__resetState()
-
Clears all the data for tracking dirty state.
|
public Object |
setDirty(string clientId, boolean dirty)
-
Marks the specified client id as dirty for the purposes of uncomitted data warning and dirty postback payload tracking.
|