Skip to content

Commit

Permalink
restore lost methods
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Oct 15, 2024
1 parent e035028 commit 9da377b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Class {
#name : 'SpMorphicListAdapterTest',
#superclass : 'TestCase',
#instVars : [
'presenter'
],
#category : 'Spec2-Adapters-Morphic-Tests',
#package : 'Spec2-Adapters-Morphic-Tests'
}
Expand Down
14 changes: 14 additions & 0 deletions src/Spec2-Core/SpListPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,20 @@ SpListPresenter >> resetListSelection [
self selectIndex: 0
]

{ #category : 'api' }
SpListPresenter >> scrollIndex [
"Answer a <Number> representing the receiver's element scroll index"

^ self adapter widget showIndex.
]

{ #category : 'api' }
SpListPresenter >> scrollToIndex: anIndex [
"Scroll the receiver to the element whose index is anIndex."

self adapter widget scrollToIndex: anIndex
]

{ #category : 'api' }
SpListPresenter >> updateList [
"Update the list re taking the list defined in `SpAbstractListPresenter>>#model` and filling the list with
Expand Down

0 comments on commit 9da377b

Please sign in to comment.