javafx.scene.control
Class ScrollToEvent<T>
- java.util.EventObject
-
- javafx.event.Event
-
- javafx.scene.control.ScrollToEvent<T>
All Implemented Interfaces:
public class ScrollToEvent<T> extends Event
Event related to
ScrollPane and virtualised controls such as ListView, TableView, TreeView and TreeTableView.Since:
JavaFX 8.0
See Also:
-
Field Summary
Fields Modifier and Type Field and Description static EventType<ScrollToEvent>ANYCommon supertype for all scroll-to event types.-
Fields inherited from class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, target
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description ScrollToEvent(Object source, EventTarget target, EventType<ScrollToEvent<T>> type, T scrollTarget)Construct a newEventwith the specified event source, target and type.
-
Method Summary
All MethodsStatic MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description TgetScrollTarget()static <T extends TableColumnBase<?,?>>
EventType<ScrollToEvent<T>>scrollToColumn()This event occurs if the user requests scrolling aTableColumnBase(i.e.static EventType<ScrollToEvent<Integer>>scrollToTopIndex()This event occurs if the user requests scrolling a given index into view.-
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
Field Detail
-
ANY
public static final EventType<ScrollToEvent> ANY
Common supertype for all scroll-to event types.
-
-
Constructor Detail
-
ScrollToEvent
public ScrollToEvent(Object source, EventTarget target, EventType<ScrollToEvent<T>> type, T scrollTarget)Construct a newEventwith the specified event source, target and type. If the source or target is set tonull, it is replaced by theNULL_SOURCE_TARGETvalue.Parameters:
source- the event source which sent the event
-
-
Method Detail
-
scrollToTopIndex
public static EventType<ScrollToEvent<Integer>> scrollToTopIndex()
This event occurs if the user requests scrolling a given index into view.
-
scrollToColumn
public static <T extends TableColumnBase<?,?>> EventType<ScrollToEvent<T>> scrollToColumn()
This event occurs if the user requests scrolling aTableColumnBase(i.e.TableColumnorTreeTableColumn) into view.
-
getScrollTarget
public T getScrollTarget()
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.