Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.bindings.dbf
Class IteratorExecutableBindingImpl

java.lang.Object
  extended by oracle.adfnmc.bindings.dbf.ControlBindingImpl
      extended by oracle.adfnmc.bindings.dbf.IteratorExecutableBindingImpl
All Implemented Interfaces:
ControlBinding, IteratorAttributeValueListener, IteratorCollectionListener, IteratorKeyedAttributeValueListener, IteratorPositionListener, ELResolver
Direct Known Subclasses:
MethodIteratorBindingImpl

public class IteratorExecutableBindingImpl
extends ControlBindingImpl
implements IteratorPositionListener, IteratorKeyedAttributeValueListener, IteratorCollectionListener

Wraps an underlying BasicIterator instance and forwards events from it to child control bindings bound to that iterator, if the parent Binding Container is active. If the parent container is not active, it does not forward but instead sets a flag to refresh it's children when the container is active again


Field Summary
protected  BasicIterator iterator
           
 
Fields inherited from class oracle.adfnmc.bindings.dbf.ControlBindingImpl
CLASS_INSTANCE, currentError, dataControl, errors, iterBinding, metadataDef, name, parentBindingContainer
 
Fields inherited from interface oracle.adfnmc.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
IteratorExecutableBindingImpl(BeanBindingIteratorBaseDefinition mdDef, BasicIterator iterator)
           
IteratorExecutableBindingImpl(VariableIteratorDefinition mdDef, BasicIterator iterator)
           
IteratorExecutableBindingImpl(XmlAnyDefinition mdDef, java.lang.String id, java.lang.String masterId, BasicIterator iterator, ValueExpression refreshConditionExpr, java.lang.String refreshAfter)
           
 
Method Summary
 void addAttributeUpdatedListener(java.lang.String attributeName, IteratorAttributeValueListener listener)
           
 void addBinding(java.lang.String id, ControlBinding binding)
           
 void addCollectionChangedListener(IteratorCollectionListener listener)
           
 void addPositionChangedListener(IteratorPositionListener listener)
           
 void attributeUpdated(java.lang.String attrName)
          Fires when the value of an attribute of the current row pointed to by an iterator is set.
 void attributeUpdated(java.lang.String attrName, java.lang.Object key)
          Fires when the value of an attribute of any row on a collection pointed to by an iterator is set.
 void containerInitialized(BindingContainer container)
          Overriding implementations should always call this base implementation before returning to set the parent container
 Map getBindings()
          added for ADFNMC
 BasicIterator getIterator()
           
protected  ELResolver getResolver()
           
 boolean isDeferredIteratorPrepared()
           
 boolean isIteratorModified()
           
 boolean isIteratorResized()
           
 boolean isPageIterBindingPrepared()
           
 void positionChanged(int absoluteIndex)
          Fires when the iterator position is changed to point to a different row.
 boolean prepareDeferredIterator()
           
 void rangeRefreshed()
           
 void refresh()
           
 void registerForIteratorEvents(IteratorExecutableBindingImpl evtSource)
           
 void removeAttributeUpdatedListener(java.lang.String attributeName, IteratorAttributeValueListener listener)
           
 void removeBinding(java.lang.String id)
           
 void removeCollectionChangedListener(IteratorCollectionListener listener)
           
 void removePositionChangedListener(IteratorPositionListener listener)
           
 void rowInserted(java.lang.Object newRow)
           
 void rowRemoved(java.lang.Object removedRow)
           
 void setIteratorModified(boolean modified)
           
 void unregisterForIteratorEvents(IteratorExecutableBindingImpl evtSource)
           
 
Methods inherited from class oracle.adfnmc.bindings.dbf.ControlBindingImpl
getDataControl, getError, getErrors, getMetadataDefinition, getName, getPath, getType, getValue, isReadOnly, release, reportException, resolvePath, setListener, setValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

iterator

protected final BasicIterator iterator
Constructor Detail

IteratorExecutableBindingImpl

public IteratorExecutableBindingImpl(XmlAnyDefinition mdDef,
                                     java.lang.String id,
                                     java.lang.String masterId,
                                     BasicIterator iterator,
                                     ValueExpression refreshConditionExpr,
                                     java.lang.String refreshAfter)

IteratorExecutableBindingImpl

public IteratorExecutableBindingImpl(VariableIteratorDefinition mdDef,
                                     BasicIterator iterator)

IteratorExecutableBindingImpl

public IteratorExecutableBindingImpl(BeanBindingIteratorBaseDefinition mdDef,
                                     BasicIterator iterator)
Method Detail

isPageIterBindingPrepared

public boolean isPageIterBindingPrepared()

isDeferredIteratorPrepared

public boolean isDeferredIteratorPrepared()

prepareDeferredIterator

public boolean prepareDeferredIterator()
Overrides:
prepareDeferredIterator in class ControlBindingImpl
Returns:
true if the contained iterator was prepared, false if it doesnt need to be

addBinding

public void addBinding(java.lang.String id,
                       ControlBinding binding)

removeBinding

public void removeBinding(java.lang.String id)

getIterator

public BasicIterator getIterator()
Overrides:
getIterator in class ControlBindingImpl

addCollectionChangedListener

public void addCollectionChangedListener(IteratorCollectionListener listener)

removeCollectionChangedListener

public void removeCollectionChangedListener(IteratorCollectionListener listener)

addPositionChangedListener

public void addPositionChangedListener(IteratorPositionListener listener)

removePositionChangedListener

public void removePositionChangedListener(IteratorPositionListener listener)

addAttributeUpdatedListener

public void addAttributeUpdatedListener(java.lang.String attributeName,
                                        IteratorAttributeValueListener listener)

removeAttributeUpdatedListener

public void removeAttributeUpdatedListener(java.lang.String attributeName,
                                           IteratorAttributeValueListener listener)

registerForIteratorEvents

public void registerForIteratorEvents(IteratorExecutableBindingImpl evtSource)
Specified by:
registerForIteratorEvents in class ControlBindingImpl

unregisterForIteratorEvents

public void unregisterForIteratorEvents(IteratorExecutableBindingImpl evtSource)
Specified by:
unregisterForIteratorEvents in class ControlBindingImpl

isIteratorModified

public boolean isIteratorModified()
Returns:
- 'true' if the GenericIterator to the underlying data source has been modified. This can mean that the iterator position has changed or that the values in the underlying data source have been updated.

setIteratorModified

public void setIteratorModified(boolean modified)

isIteratorResized

public boolean isIteratorResized()

getResolver

protected ELResolver getResolver()
Specified by:
getResolver in class ControlBindingImpl

refresh

public void refresh()
Specified by:
refresh in class ControlBindingImpl

getBindings

public Map getBindings()
Description copied from interface: ControlBinding
added for ADFNMC

Specified by:
getBindings in interface ControlBinding
Overrides:
getBindings in class ControlBindingImpl
Returns:
Collection of bindings that are contained within or associated with this binding.

containerInitialized

public void containerInitialized(BindingContainer container)
Description copied from class: ControlBindingImpl
Overriding implementations should always call this base implementation before returning to set the parent container

Specified by:
containerInitialized in interface ControlBinding
Overrides:
containerInitialized in class ControlBindingImpl

positionChanged

public void positionChanged(int absoluteIndex)
Description copied from interface: IteratorPositionListener
Fires when the iterator position is changed to point to a different row.

Specified by:
positionChanged in interface IteratorPositionListener

attributeUpdated

public void attributeUpdated(java.lang.String attrName)
Description copied from interface: IteratorAttributeValueListener
Fires when the value of an attribute of the current row pointed to by an iterator is set.

Specified by:
attributeUpdated in interface IteratorAttributeValueListener
Parameters:
attrName - - Name of the attribute whose value has updated

attributeUpdated

public void attributeUpdated(java.lang.String attrName,
                             java.lang.Object key)
Description copied from interface: IteratorKeyedAttributeValueListener
Fires when the value of an attribute of any row on a collection pointed to by an iterator is set.

Specified by:
attributeUpdated in interface IteratorKeyedAttributeValueListener
Parameters:
attrName - - Name of the attribute whose value has updated
key - - The primary key of the row the updated attribute

rowInserted

public void rowInserted(java.lang.Object newRow)
Specified by:
rowInserted in interface IteratorCollectionListener

rowRemoved

public void rowRemoved(java.lang.Object removedRow)
Specified by:
rowRemoved in interface IteratorCollectionListener

rangeRefreshed

public void rangeRefreshed()
Specified by:
rangeRefreshed in interface IteratorCollectionListener

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.