- java.lang.Object
- 
- java.util.EventObject
- 
- javafx.event.Event
- 
- javafx.scene.control.ScrollToEvent<T>
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable
 
 public class ScrollToEvent<T> extends Event Event related toScrollPaneand virtualised controls such asListView,TableView,TreeViewandTreeTableView.- Since:
- JavaFX 8.0
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static EventType<ScrollToEvent>ANYCommon supertype for all scroll-to event types.- 
Fields inherited from class javafx.event.Eventconsumed, eventType, NULL_SOURCE_TARGET, target
 - 
Fields inherited from class java.util.EventObjectsource
 
- 
 - 
Constructor SummaryConstructors Constructor Description ScrollToEvent(Object source, EventTarget target, EventType<ScrollToEvent<T>> type, T scrollTarget)Construct a newEventwith the specified event source, target and type.
 - 
Method SummaryModifier and Type Method 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.Eventclone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
 - 
Methods inherited from class java.util.EventObjectgetSource, toString
 
- 
 
- 
- 
- 
Field Detail- 
ANYpublic static final EventType<ScrollToEvent> ANY Common supertype for all scroll-to event types.
 
- 
 - 
Constructor Detail- 
ScrollToEventpublic 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
- target- the event source which sent the event
- type- the event type
- scrollTarget- the target of the scroll to operation
 
 
- 
 - 
Method Detail- 
scrollToTopIndexpublic static EventType<ScrollToEvent<Integer>> scrollToTopIndex() This event occurs if the user requests scrolling a given index into view.- Returns:
- the scroll to event type
 
 - 
scrollToColumnpublic static <T extends TableColumnBase<?,?>> EventType<ScrollToEvent<T>> scrollToColumn() This event occurs if the user requests scrolling aTableColumnBase(i.e.TableColumnorTreeTableColumn) into view.- Type Parameters:
- T- the type
- Returns:
- the scroll to event type
 
 - 
getScrollTargetpublic T getScrollTarget() 
 
- 
 
-