java.lang.Object
java.util.EventObject
javafx.event.Event
javafx.scene.control.ScrollToEvent<T>
- All Implemented Interfaces:
- Serializable,- Cloneable
Event related to 
ScrollPane and virtualised controls such as
 ListView, TableView, TreeView and TreeTableView.- Since:
- JavaFX 8.0
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final EventType<ScrollToEvent>Common supertype for all scroll-to event types.Fields declared in class javafx.event.Eventconsumed, eventType, NULL_SOURCE_TARGET, targetFields declared in class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionScrollToEvent(Object source, EventTarget target, EventType<ScrollToEvent<T>> type, T scrollTarget) Construct a newEventwith the specified event source, target and type.
- 
Method SummaryModifier and TypeMethodDescriptionGets the target of the scroll-to operation.static <T extends TableColumnBase<?,?>> 
 EventType<ScrollToEvent<T>>This event occurs if the user requests scrolling aTableColumnBase(i.e.static EventType<ScrollToEvent<Integer>>This event occurs if the user requests scrolling a given index into view.Methods declared in class javafx.event.Eventclone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods declared in class java.util.EventObjectgetSource, toString
- 
Field Details- 
ANYCommon supertype for all scroll-to event types.
 
- 
- 
Constructor Details- 
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 Details- 
scrollToTopIndexThis event occurs if the user requests scrolling a given index into view.- Returns:
- the scroll to event type
 
- 
scrollToColumnThis event occurs if the user requests scrolling aTableColumnBase(i.e.TableColumnorTreeTableColumn) into view.- Type Parameters:
- T- the type
- Returns:
- the scroll to event type
 
- 
getScrollTargetGets the target of the scroll-to operation.- Returns:
- the target of the scroll-to operation
 
 
-