Top Description Fields Constructors Methods
javafx.scene.control

public Class SortEvent<C>

extends Event
Class Inheritance
Type Parameters
<C>
the type of control
Imports
javafx.beans.NamedArg, javafx.event.Event, .EventTarget, .EventType

Event related to TableView and TreeTableView sorting.
Since
JavaFX 8.0

Field Summary

Modifier and TypeField and Description
public static final EventType<SortEvent<C>>
ANY

Hides javafx.event.Event.ANY.

Common supertype for all sort event types.
private static final EventType<?>
Inherited from javafx.event.Event:
consumedeventTypeNULL_SOURCE_TARGETtarget

Constructor Summary

AccessConstructor and Description
public
SortEvent(C
the event source which sent the event
source
,
EventTarget
the target of the event
target
)

Constructs a new SortEvent with the specified event source and target.

Method Summary

Modifier and TypeMethod and Description
public C
getSource()

Overrides java.util.EventObject.getSource.

The object on which the Event initially occurred.

public static <
the type of control
C
>
EventType<SortEvent<C>>

Returns:

the default singleton SortEvent
sortEvent
()

Gets the default singleton SortEvent.

Inherited from javafx.event.Event:
cloneconsumecopyForfireEventgetEventTypegetTargetisConsumed

Field Detail

ANYback to summary
public static final EventType<SortEvent<C>> ANY

Hides javafx.event.Event.ANY.

Common supertype for all sort event types.

SORT_EVENTback to summary
private static final EventType<?> SORT_EVENT

Constructor Detail

SortEventback to summary
public SortEvent(C source, EventTarget target)

Constructs a new SortEvent with the specified event source and target. If the source or target is set to null, it is replaced by the NULL_SOURCE_TARGET value.

Parameters
source:C

the event source which sent the event

target:EventTarget

the target of the event

Method Detail

getSourceback to summary
public C getSource()

Overrides java.util.EventObject.getSource.

Doc from java.util.EventObject.getSource.

The object on which the Event initially occurred.

Annotations
@SuppressWarnings:unchecked
@Override
sortEventback to summary
public static <C> EventType<SortEvent<C>> sortEvent()

Gets the default singleton SortEvent.

Parameters
<C>
the type of control
Returns:EventType<SortEvent<C>>

the default singleton SortEvent

Annotations
@SuppressWarnings:unchecked