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, targetsource| Constructor and Description |
|---|
ScrollToEvent(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<Integer>> |
scrollToTopIndex()
This event occurs if the user requests scrolling a given index into view.
|
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedgetSource, toStringpublic static final EventType<ScrollToEvent> ANY
public ScrollToEvent(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<Integer>> scrollToTopIndex()
public static <T extends TableColumnBase<?,?>> EventType<ScrollToEvent<T>> scrollToColumn()
TableColumnBase
(i.e. TableColumn or TreeTableColumn) into view.public T getScrollTarget()
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.