public final class Spinner extends Component
Spinner
 Additionally added logic to flip the caret vertically once menu is shown.
If no optional values are provided the component will look like it's material design counterpart.
com.facebook.litho.widget.SpinnerSpec| Modifier and Type | Class and Description | 
|---|---|
| static class  | Spinner.Builder | 
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.TransitionContainerbindDynamicProp, canResolve, clearCachedLayout, copyInterStageImpl, getCommonProps, getDynamicProps, getEventDispatcher, getHandle, getId, getKey, getScopedContext, getSimpleName, getSimpleNameDelegate, hasBackgroundSet, hasClickHandlerSet, isEquivalentTo, measure, measureMightNotCacheInternalNode, recordEventTrigger, registerWorkingRange, retrieveValue, setScopedContext, updateInternalChildState, willRenderacceptTriggerEvent, applyPreviousRenderData, callsShouldUpdateOnMount, canMeasure, canPreallocate, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnExitedRange, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getMountType, getTreePropsForChildren, hasAttachDetachCallback, hasChildLithoViews, implementsAccessibility, implementsExtraAccessibilityNodes, isLayoutSpecWithSizeSpecCheck, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventTrigger, onAttached, onBind, onBoundsDefined, onCreateLayoutWithSizeSpec, onCreateMountContent, onCreateMountContentPool, onCreateTransition, onDetached, onError, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onShouldCreateLayoutWithNewSizeSpec, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, resolve, shouldAlwaysRemeasure, shouldUpdate, shouldUseGlobalPoolprotected StateContainer getStateContainer()
getStateContainer in class Componentpublic Spinner makeShallowCopy()
makeShallowCopy in class Componentprotected void createInitialState(ComponentContext c)
createInitialState in class ComponentLifecycleprotected Component onCreateLayout(ComponentContext c)
ComponentLifecycleComponentLayout representing the layout structure of the Component and its sub-components.onCreateLayout in class ComponentLifecyclec - The ComponentContext to build a ComponentLayout tree.public static EventHandler getItemSelectedEventHandler(ComponentContext context)
public static EventHandler<ClickEvent> onClick(ComponentContext c)
public Object dispatchOnEvent(EventHandler eventHandler, Object eventState)
dispatchOnEvent in interface EventDispatcherdispatchOnEvent in class ComponentLifecycleprotected boolean hasState()
hasState in class ComponentLifecycleprotected void transferState(StateContainer _prevStateContainer, StateContainer _nextStateContainer)
ComponentLifecycletransferState in class ComponentLifecycleprotected static void updateSelection(ComponentContext c, String newSelection)
protected static void updateSelectionAsync(ComponentContext c, String newSelection)
protected static void updateSelectionSync(ComponentContext c, String newSelection)
protected static void updateIsShowingDropDown(ComponentContext c, boolean isShowing)
protected static void updateIsShowingDropDownAsync(ComponentContext c, boolean isShowing)
protected static void updateIsShowingDropDownSync(ComponentContext c, boolean isShowing)
public static Spinner.Builder create(ComponentContext context)
public static Spinner.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)