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(String simpleName,
int initialCount,
String key,
boolean forceShouldUpdate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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() |
generateUniqueGlobalKeyForChild, getChildren, getEventDispatcher, getGlobalKey, getHandle, getKey, getLogTag, getParent, getScopedContext, getSimpleName, makeShallowCopy, recordEventTrigger, setChildren, setCount, setGlobalKey, setKey, setScopedContext
acceptTriggerEvent, bindService, createChildren, createInitialState, createService, dataBound, dataRendered, dispatchLoadingEvent, dispatchOnEvent, generateChangeSet, getEventTrigger, getEventTrigger, getLoadingEventHandler, getService, getTreePropsForChildren, isDiffSectionSpec, isSectionIndexValid, newEventHandler, newEventHandler, newEventTrigger, populateTreeProps, refresh, requestFocus, requestFocus, requestFocus, requestFocusWithOffset, requestFocusWithOffset, requestFocusWithOffset, requestSmoothFocus, requestSmoothFocus, requestSmoothFocus, shouldUpdate, transferService, transferState, unbindService, viewportChanged
public boolean refreshCalled
public int firstVisibleIndex
public int lastVisibleIndex
public int firstFullyVisibleIndex
public int lastFullyVisibleIndex
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