cells) and which cells the viewport is currently
displaying (presentCells).
| Modifier and Type | Field and Description |
|---|---|
| private final LiveList | |
| private final CellPool | |
| private final MemoizationList | |
| private final Node | |
| private final LiveList | |
| private final Subscription |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private C | |
| public void | cropTo(int
the index of the first item to display fromItem, int the index of the last item to display toItem)Updates the list of cells to display |
| public void | |
| public C | |
| public Optional | |
| public MemoizationList | |
| public ObservableList | |
| public C | |
| public boolean | |
| private void | |
| private void | pushScrollEvent(ScrollEvent se)
Push scroll events received by cell nodes directly to the 'owner' Node. |
| cellNodes | back to summary |
|---|---|
| private final LiveList<Node> cellNodes | |
| cellPool | back to summary |
|---|---|
| private final CellPool<T, C> cellPool | |
| cells | back to summary |
|---|---|
| private final MemoizationList<C> cells | |
| owner | back to summary |
|---|---|
| private final Node owner | |
| presentCells | back to summary |
|---|---|
| private final LiveList<C> presentCells | |
| presentCellsSubscription | back to summary |
|---|---|
| private final Subscription presentCellsSubscription | |
| CellListManager | back to summary |
|---|---|
| public CellListManager(Node owner, ObservableList<T> items, Function<? super T, ? extends C> cellFactory) | |
| cellForItem | back to summary |
|---|---|
| private C cellForItem(T item) | |
| cropTo | back to summary |
|---|---|
| public void cropTo(int fromItem, int toItem) Updates the list of cells to display
| |
| dispose | back to summary |
|---|---|
| public void dispose() | |
| getCell | back to summary |
|---|---|
| public C getCell(int itemIndex) | |
| getCellIfPresent | back to summary |
|---|---|
| public Optional | |
| getLazyCellList | back to summary |
|---|---|
| public MemoizationList | |
| getNodes | back to summary |
|---|---|
| public ObservableList Gets the list of nodes that the viewport is displaying | |
| getPresentCell | back to summary |
|---|---|
| public C getPresentCell(int itemIndex) | |
| isCellPresent | back to summary |
|---|---|
| public boolean isCellPresent(int itemIndex) | |
| presentCellsChanged | back to summary |
|---|---|
| private void presentCellsChanged(QuasiListModification<? extends C> mod) | |
| pushScrollEvent | back to summary |
|---|---|
| private void pushScrollEvent(ScrollEvent se) Push scroll events received by cell nodes directly to the 'owner' Node. (Generally likely to be a VirtualFlow but not required.) Normal bubbling of scroll events gets interrupted during a scroll gesture when the Cell's Node receiving the event has moved out of the viewport and is thus removed from the Navigator's children list. This breaks expected trackpad scrolling behaviour, at least on macOS. So here we take over event-bubbling duties for ScrollEvent and push them ourselves directly to the given owner. | |