public abstract class ProviderSubscriber extends Object
| 构造器 | 说明 |
|---|---|
ProviderSubscriber() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onRangeInserted(int positionStart,
int itemCount) |
Called when a given number of components have been inserted to the specified position in the provider.
|
void |
onRangeMoved(int fromPosition,
int toPosition,
int itemCount) |
Called when a component has been moved from one position to another in the provider.
|
void |
onRangeRemoved(int positionStart,
int itemCount) |
Called when a given number of components have been removed from the specified position in the provider.
|
void |
onRangeUpdated(int positionStart,
int itemCount) |
Called when a given number of components starting from the specified position have been updated.
|
void |
onRangeUpdated(int positionStart,
int itemCount,
Object crab) |
Called when a given number of components starting from the specified position have been updated, with a crab
object.
|
void |
onUpdated() |
Called when all the components in the provider have been updated.
|
public void onUpdated()
public void onRangeUpdated(int positionStart,
int itemCount)
positionStart - Indicates the position of the first component that has been updated.itemCount - Indicates the number of components that have been updated.public void onRangeUpdated(int positionStart,
int itemCount,
Object crab)
positionStart - Indicates the position of the first component that has been updated.itemCount - Indicates the number of components that have been updated.crab - Indicates the object for storing the crab data.public void onRangeInserted(int positionStart,
int itemCount)
positionStart - Indicates the position of the first component that has been inserted.itemCount - Indicates the number of components that have been inserted.public void onRangeRemoved(int positionStart,
int itemCount)
positionStart - Indicates the position of the first component that has been removed.itemCount - Indicates the number of components that have been removed.public void onRangeMoved(int fromPosition,
int toPosition,
int itemCount)
fromPosition - Indicates the previous position of the component.toPosition - Indicates the new position of the component.itemCount - Indicates the number of components moved. The default value is 1.