mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[collab/space] IDEA-356878: replace listReviewsV2 with listReviewsV3, fix multiplying load requests on list scroll
Merge-request: IJ-MR-141225 Merged-by: Veda Voronina <Vedana.Voronina@jetbrains.com> GitOrigin-RevId: 028ab8af216825ca1c203c1a258631d2128e511f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9d5d6483f8
commit
2c3a017ff2
@@ -6,6 +6,12 @@ import javax.swing.JScrollBar
|
||||
import javax.swing.event.ChangeEvent
|
||||
import javax.swing.event.ChangeListener
|
||||
|
||||
/**
|
||||
* Note: Use with caution as for large models the threshold set as a percent value will require more requests for data with each scroll.
|
||||
* E.g., list containing 1000 elements with a threshold set to 0.7 when reaching the bottom of the scroll,
|
||||
* will request data loading until total elements count reaches 1430 elements.
|
||||
* Which for request with batch size of 30 elements is 15 requests.
|
||||
*/
|
||||
abstract class BoundedRangeModelThresholdListener(
|
||||
private val model: BoundedRangeModel,
|
||||
private val thresholdPercent: Float
|
||||
|
||||
Reference in New Issue
Block a user