public static class TestSectionCreator.TestSection extends Section
Section.Builder<T extends Section.Builder<T>>
Modifier and Type | Field and Description |
---|---|
int |
firstFullyVisibleIndex |
int |
firstVisibleIndex |
int |
lastFullyVisibleIndex |
int |
lastVisibleIndex |
boolean |
refreshCalled |
Modifier | Constructor and Description |
---|---|
protected |
TestSection(java.lang.String simpleName,
int initialCount,
java.lang.String key,
boolean forceShouldUpdate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
protected StateContainer |
getStateContainer() |
boolean |
isEquivalentTo(Section other)
Compares this section to a different one to check if they are the same
|
Section |
makeShallowCopy() |
createStateContainer, generateUniqueGlobalKeyForChild, getChildren, getEventDispatcher, getGlobalKey, getLogTag, getParent, getScopedContext, getSimpleName, getStateContainer, isEquivalentProps, makeShallowCopy, recordEventTrigger, setChildren, setCount, setGlobalKey, setKey, setScopedContext, setStateContainer
acceptTriggerEvent, acceptTriggerEventImpl, bindService, createChildren, createInitialState, createService, dataBound, dataRendered, dispatchLoadingEvent, dispatchOnEvent, dispatchOnEventImpl, generateChangeSet, getEventTrigger, getEventTrigger, getLoadingEventHandler, getService, getTreePropsForChildren, isDiffSectionSpec, isSectionIndexValid, newEventHandler, newEventTrigger, newEventTrigger, populateTreeProps, refresh, requestFocus, requestFocus, requestFocus, requestFocusWithOffset, requestFocusWithOffset, requestFocusWithOffset, requestSmoothFocus, requestSmoothFocus, requestSmoothFocus, shouldUpdate, transferService, transferState, unbindService, verifyChangeSet, viewportChanged
public boolean refreshCalled
public int firstVisibleIndex
public int lastVisibleIndex
public int firstFullyVisibleIndex
public int lastFullyVisibleIndex
protected TestSection(java.lang.String simpleName, int initialCount, java.lang.String key, boolean forceShouldUpdate)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isEquivalentTo(Section other)
Section
This is used to be able to skip rendering a section again. We avoid using the Object.equals(Object)
so we can optimize the code better over time since we don't have to
adhere to the contract required for a equals method.
isEquivalentTo
in interface Equivalence<Section>
isEquivalentTo
in class Section
other
- the component to compare topublic Section makeShallowCopy()
makeShallowCopy
in class Section
protected StateContainer getStateContainer()
getStateContainer
in class Section