public class ScrollToEvent<T> extends Event
ScrollPane and virtualised controls such as
ListView, TableView, TreeView and TreeTableView.| Modifier and Type | Field and Description |
|---|---|
static EventType<ScrollToEvent> |
ANY
Common supertype for all scroll-to event types.
|
consumed, eventType, NULL_SOURCE_TARGET, target| Constructor and Description |
|---|
ScrollToEvent(java.lang.Object source,
EventTarget target,
EventType<ScrollToEvent<T>> type,
T scrollTarget)
Construct a new
Event with the specified event source, target
and type. |
| Modifier and Type | Method and Description |
|---|---|
T |
getScrollTarget() |
static <T extends TableColumnBase<?,?>> |
scrollToColumn()
This event occurs if the user requests scrolling a
TableColumnBase
(i.e. |
static EventType<ScrollToEvent<java.lang.Integer>> |
scrollToTopIndex()
This event occurs if the user requests scrolling a given index into view.
|
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedpublic static final EventType<ScrollToEvent> ANY
public ScrollToEvent(java.lang.Object source,
EventTarget target,
EventType<ScrollToEvent<T>> type,
T scrollTarget)
Event with the specified event source, target
and type. If the source or target is set to null, it is replaced
by the NULL_SOURCE_TARGET value.source - the event source which sent the eventtarget - the event source which sent the eventtype - the event typetarget - the target of the scroll to operationpublic static EventType<ScrollToEvent<java.lang.Integer>> scrollToTopIndex()
public static <T extends TableColumnBase<?,?>> EventType<ScrollToEvent<T>> scrollToColumn()
TableColumnBase
(i.e. TableColumn or TreeTableColumn) into view.public T getScrollTarget()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.