public class ScrollToEvent<T>
extends Event
ScrollPane
and virtualised controls such as
ListView
, TableView
, TreeView
and TreeTableView
.Modifier and Type | Field and Description |
---|---|
static <any> |
ANY
Common supertype for all scroll-to event types.
|
private static <any> |
SCROLL_TO_COLUMN |
private static <any> |
SCROLL_TO_TOP_INDEX |
private T |
scrollTarget |
private static long |
serialVersionUID |
Constructor and Description |
---|
ScrollToEvent(java.lang.Object source,
EventTarget target,
<any> 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 <any> |
scrollToTopIndex()
This event occurs if the user requests scrolling a given index into view.
|
public static final <any> ANY
private static final <any> SCROLL_TO_TOP_INDEX
private static final <any> SCROLL_TO_COLUMN
private static final long serialVersionUID
private final T scrollTarget
public ScrollToEvent(java.lang.Object source, EventTarget target, <any> 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 typescrollTarget
- the target of the scroll to operationpublic static <any> scrollToTopIndex()
public static <T extends TableColumnBase<?,?>> <any> scrollToColumn()
TableColumnBase
(i.e. TableColumn
or TreeTableColumn
) into view.T
- the typepublic T getScrollTarget()