Class ScrollToEvent<T>
java.lang.Object
java.util.EventObject
javafx.event.Event
javafx.scene.control.ScrollToEvent<T>
- Type Parameters:
T- the scroll-to event type
- 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final EventType<ScrollToEvent> Common supertype for all scroll-to event types.Fields declared in class Event
consumed, eventType, NULL_SOURCE_TARGET, targetModifier and TypeFieldDescriptionprotected booleanWhether this event has been consumed by any filter or handler.Type of the event.static final EventTargetThe constant which represents an unknown event source / target.protected EventTargetEvent target that defines the path through which the event will travel when posted.Fields declared in class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionScrollToEvent(Object source, EventTarget target, EventType<ScrollToEvent<T>> type, T scrollTarget) Construct a newEventwith the specified event source, target and type. -
Method Summary
Modifier 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 Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedModifier and TypeMethodDescriptionclone()Creates and returns a copy of thisEvent.voidconsume()Marks thisEventas consumed.copyFor(Object newSource, EventTarget newTarget) Creates and returns a copy of this event with the specified event source and target.static voidfireEvent(EventTarget eventTarget, Event event) Fires the specified event.Gets the event type of this event.Returns the event target of this event.booleanIndicates whether thisEventhas been consumed by any filter or handler.Methods declared in class EventObject
getSource, toString
-
Field Details
-
ANY
Common supertype for all scroll-to event types.
-
-
Constructor Details
-
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 eventtarget- the event source which sent the eventtype- the event typescrollTarget- the target of the scroll to operation
-
-
Method Details
-
scrollToTopIndex
This event occurs if the user requests scrolling a given index into view.- Returns:
- the scroll to event type
-
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
-
getScrollTarget
Gets the target of the scroll-to operation.- Returns:
- the target of the scroll-to operation
-