Class SelectableLazyListState
-
- All Implemented Interfaces:
-
org.jetbrains.jewel.foundation.lazy.SelectableScope
public final class SelectableLazyListState implements SelectableScope
State object for a selectable lazy list, which extends ScrollableState.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisKeyboardNavigatingprivate Set<Object>selectedKeysprivate IntegerlastActiveItemIndexprivate final <Error class: unknown class>layoutInfoprivate final IntegerfirstVisibleItemIndexprivate final IntegerfirstVisibleItemScrollOffsetprivate final <Error class: unknown class>interactionSourceprivate final <Error class: unknown class>lazyListState
-
Constructor Summary
Constructors Constructor Description SelectableLazyListState(<Error class: unknown class> lazyListState)
-
Method Summary
Modifier and Type Method Description final BooleanisKeyboardNavigating()Flag indicating whether the user is currently navigating via keyboard final UnitsetKeyboardNavigating(Boolean isKeyboardNavigating)Flag indicating whether the user is currently navigating via keyboard Set<Object>getSelectedKeys()UnitsetSelectedKeys(Set<Object> selectedKeys)final IntegergetLastActiveItemIndex()final UnitsetLastActiveItemIndex(Integer lastActiveItemIndex)final <Error class: unknown class>getLayoutInfo()final IntegergetFirstVisibleItemIndex()final IntegergetFirstVisibleItemScrollOffset()final <Error class: unknown class>getInteractionSource()final <Error class: unknown class>getLazyListState()final UnitscrollToItem(Integer itemIndex, Boolean animateScroll, Integer scrollOffset)-
-
Method Detail
-
isKeyboardNavigating
final Boolean isKeyboardNavigating()
Flag indicating whether the user is currently navigating via keyboard
-
setKeyboardNavigating
final Unit setKeyboardNavigating(Boolean isKeyboardNavigating)
Flag indicating whether the user is currently navigating via keyboard
-
getSelectedKeys
Set<Object> getSelectedKeys()
-
setSelectedKeys
Unit setSelectedKeys(Set<Object> selectedKeys)
-
getLastActiveItemIndex
final Integer getLastActiveItemIndex()
-
setLastActiveItemIndex
final Unit setLastActiveItemIndex(Integer lastActiveItemIndex)
-
getLayoutInfo
final <Error class: unknown class> getLayoutInfo()
-
getFirstVisibleItemIndex
final Integer getFirstVisibleItemIndex()
-
getFirstVisibleItemScrollOffset
final Integer getFirstVisibleItemScrollOffset()
-
getInteractionSource
final <Error class: unknown class> getInteractionSource()
-
getLazyListState
final <Error class: unknown class> getLazyListState()
-
scrollToItem
final Unit scrollToItem(Integer itemIndex, Boolean animateScroll, Integer scrollOffset)
- Parameters:
itemIndex- The index of the item to focus on.animateScroll- Whether to animate the scroll to the focused item.scrollOffset- The scroll offset for the focused item.
-
-
-
-