public abstract class ComponentOwner extends Object
| 限定符和类型 | 类 | 说明 |
|---|---|---|
protected static class |
ComponentOwner.ComponentOwnerCleaner |
Implements the release of the local
ComponentOwner object. |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
Component |
itemComponent |
Indicates the component that is bound to the
ComponentOwner. |
| 构造器 | 说明 |
|---|---|
ComponentOwner(Component component) |
Default constructor used to create a
ComponentOwner instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Provider<? extends ComponentOwner> |
getBindingProvider() |
Obtains the provider bound to this
ListComponent. |
long |
getComponentId() |
Obtains the ID of the component corresponding to this
ComponentOwner. |
int |
getItemComponentType() |
Obtains the type of the component corresponding to this
ComponentOwner. |
long |
getNativePtr() |
Obtains the native object.
|
int |
getPositionInLayout() |
Obtains the position of the component corresponding to this
ComponentOwner in the provider after the
latest layout. |
int |
getPositionInProvider() |
Obtains the position of the component corresponding to this
ComponentOwner in the provider. |
boolean |
isRecyclable() |
Checks whether the component corresponding to this
ComponentOwner can be reclaimed. |
void |
setRecyclable(boolean recyclable) |
Sets whether the component corresponding to this
ComponentOwner can be reclaimed. |
String |
toString() |
Obtains a string representation of this
ComponentOwner. |
public final Component itemComponent
ComponentOwner.public ComponentOwner(Component component)
ComponentOwner instance.component - Indicates the component bound to the ComponentOwner.public long getNativePtr()
public final int getPositionInLayout()
ComponentOwner in the provider after the
latest layout.public final int getPositionInProvider()
ComponentOwner in the provider.ComponentOwner exists in the provider and is bound to a valid
component; returns -1 otherwise.public final Provider<? extends ComponentOwner> getBindingProvider()
ListComponent.null otherwise.public final long getComponentId()
ComponentOwner.-1 otherwise.public final int getItemComponentType()
ComponentOwner.public String toString()
ComponentOwner.public final void setRecyclable(boolean recyclable)
ComponentOwner can be reclaimed.recyclable - Specifies whether the component can be reclaimed. The value true means that the
component can be reclaimed, and false means the opposite.public final boolean isRecyclable()
ComponentOwner can be reclaimed.true if the component can be reclaimed; returns false otherwise.