public final class ViewPagerComponent<T> extends SpecGeneratedComponent
com.facebook.litho.sections.widget.ViewPagerComponentSpec
Modifier and Type | Class and Description |
---|---|
static class |
ViewPagerComponent.Builder<T> |
SpecGeneratedComponent.TransitionContainer
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData
Modifier and Type | Method and Description |
---|---|
static <T> ViewPagerComponent.Builder<T> |
create(ComponentContext context) |
static <T> ViewPagerComponent.Builder<T> |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
protected java.lang.Object |
dispatchOnEventImpl(EventHandler eventHandler,
java.lang.Object eventState) |
static EventHandler<PageSelectedEvent> |
getPageSelectedEventHandler(ComponentContext context) |
protected Component |
onCreateLayout(ComponentContext c)
Generate a tree of
ComponentLayout representing the layout structure of the Component and its sub-components. |
static EventHandler<TouchEvent> |
onSwipeDisabledTouchEvent(ComponentContext c) |
acceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, bindDynamicProp, canPreallocate, copyInterStageImpl, copyPrepareInterStageImpl, createContent, createInitialState, createInterStagePropsContainer, createPoolableContent, createPrepareInterStagePropsContainer, createRecyclingPool, createStateContainer, dispatchOnEnteredRange, dispatchOnExitedRange, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getInterStagePropsContainer, getPoolableContentType, getPrepareInterStagePropsContainer, getSimpleName, getSimpleNameDelegate, getTreePropsForChildren, hasAttachDetachCallback, hasOwnErrorHandler, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isRecyclingDisabled, needsPreviousRenderData, onAttached, onBind, onBoundsDefined, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasure, onMeasureBaseline, onMount, onPrepare, onUnbind, onUnmount, poolSize, populateTreeProps, prepare, recordEventTrigger, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainer
canMeasure, clone, createMountContent, dispatchErrorEvent, dispatchOnEvent, equals, excludeFromIncrementalMount, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getHandle, getMountType, getTreePropFromParent, getTypeId, hasChildLithoViews, hasClickHandlerSet, hashCode, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentProps, isEquivalentTo, isEquivalentTo, isLayoutSpecWithSizeSpec, isPureRender, isPureRender, makeShallowCopy, measure, measure, measureMightNotCacheInternalNode, newEventHandler, newEventTrigger, newEventTrigger, onCreateMountContent, onCreateTransition, onLoadStyle, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, resolve, retrieveValue, shouldUpdate, toString, transferState, willRender
protected Component onCreateLayout(ComponentContext c)
SpecGeneratedComponent
ComponentLayout
representing the layout structure of the Component
and its sub-components.onCreateLayout
in class SpecGeneratedComponent
c
- The ComponentContext
to build a ComponentLayout
tree.public static EventHandler<PageSelectedEvent> getPageSelectedEventHandler(ComponentContext context)
public static EventHandler<TouchEvent> onSwipeDisabledTouchEvent(ComponentContext c)
protected java.lang.Object dispatchOnEventImpl(EventHandler eventHandler, java.lang.Object eventState)
dispatchOnEventImpl
in class Component
public static <T> ViewPagerComponent.Builder<T> create(ComponentContext context)
public static <T> ViewPagerComponent.Builder<T> create(ComponentContext context, int defStyleAttr, int defStyleRes)