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

E17503-02

oracle.adfnmc.bindings.events
Interface ICollectionModelListener

All Known Implementing Classes:
BBIterator, BBTable, Iterator, Table

public interface ICollectionModelListener

Notification interface for ICollectionModel objects

Author:
dmartin

Method Summary
 void addedRange(int index, int size)
          Called when a new set of contiguous elements has been created in the collection
 void currentPositionChanged(int newIndex)
          Called when the current collection position changes - this corresponds to a change of the current underlying model index or position
 void disposeElement(int index)
          Called when an element is about to be removed from the collection
 void disposeRange(int index, int size)
          Called when a set of contiguous elements is about to be removed from the collection
 void newElement(int index)
          Called when a new element has been created in the collection
 void refreshRow(int absoluteIndex)
          Triggers listeners to refresh the values of the components of a particular row.
 void refreshVisible(int index)
          Triggers listeners to refresh any elements they are currently displaying.
 

Method Detail

currentPositionChanged

void currentPositionChanged(int newIndex)
Called when the current collection position changes - this corresponds to a change of the current underlying model index or position

Parameters:
newIndex -

disposeElement

void disposeElement(int index)
Called when an element is about to be removed from the collection

Parameters:
index - - the index of the element to be removed

newElement

void newElement(int index)
Called when a new element has been created in the collection

Parameters:
index - - the index of the new element

disposeRange

void disposeRange(int index,
                  int size)
Called when a set of contiguous elements is about to be removed from the collection

Parameters:
index - - the starting index of the elements to be removed
size - - the number of elements to be removed

addedRange

void addedRange(int index,
                int size)
Called when a new set of contiguous elements has been created in the collection

Parameters:
index - - the starting index at which the elements have been added
size - - the number of elements added

refreshVisible

void refreshVisible(int index)
Triggers listeners to refresh any elements they are currently displaying. Generally the response should be a call to iterateOverElements, with a count of whatever the listener needs to display, and a delegate that just force refreshes the listeners components.

Parameters:
index - - the current model index, can be used to 'snap' the viewable area to the current model row

refreshRow

void refreshRow(int absoluteIndex)
Triggers listeners to refresh the values of the components of a particular row. Issued when an attribute value at the current model row is updated.

Parameters:
absoluteIndex -

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.