Class SortEvent<C>
java.lang.Object
java.util.EventObject
javafx.event.Event
javafx.scene.control.SortEvent<C>
- Type Parameters:
-
C- the type of control
- All Implemented Interfaces:
-
Serializable,Cloneable
public class SortEvent<C> extends Event
Event related to
TableView and TreeTableView sorting.- Since:
- JavaFX 8.0
- See Also:
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
static final EventType |
ANY |
Common supertype for all sort event types. |
Fields declared in class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, target
Fields declared in class java.util.EventObject
source
Constructor Summary
| Constructor | Description |
|---|---|
SortEvent |
Constructs a new SortEvent with the specified event source and target. |
Method Summary
Methods declared in class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
Methods declared in class java.util.EventObject
getSource, toString
Field Details
ANY
public static final EventType<SortEvent> ANY
Common supertype for all sort event types.
Constructor Details
SortEvent
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- the event source which sent the event -
target- the target of the event
Method Details
sortEvent
public static <C> EventType<SortEvent<C>> sortEvent()
Gets the default singleton
SortEvent.- Type Parameters:
-
C- the type of control - Returns:
- the default singleton
SortEvent
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.