Package | Description |
---|---|
javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
javafx.scene.input |
Provides the set of classes for mouse and keyboard input event handling.
|
Modifier and Type | Method and Description |
---|---|
Dragboard |
Node.startDragAndDrop(TransferMode... transferModes)
Confirms a potential drag and drop gesture that is recognized over this
Node . |
Dragboard |
Scene.startDragAndDrop(TransferMode... transferModes)
Confirms a potential drag and drop gesture that is recognized over this
Scene . |
Modifier and Type | Field and Description |
---|---|
static TransferMode[] |
TransferMode.ANY
Array containing all transfer modes.
|
static TransferMode[] |
TransferMode.COPY_OR_MOVE
Array containing transfer modes COPY and MOVE.
|
static TransferMode[] |
TransferMode.NONE
Empty array of transfer modes.
|
Modifier and Type | Method and Description |
---|---|
TransferMode |
DragEvent.getAcceptedTransferMode()
Gets transfer mode accepted by potential target.
|
TransferMode |
DragEvent.getTransferMode()
Data transfer mode.
|
static TransferMode |
TransferMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransferMode[] |
TransferMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Set<TransferMode> |
Dragboard.getTransferModes()
Gets set of transport modes supported by source of this drag opeation.
|
Modifier and Type | Method and Description |
---|---|
void |
DragEvent.acceptTransferModes(TransferMode... transferModes)
Accepts this
DragEvent , choosing the transfer mode for the
drop operation. |
Constructor and Description |
---|
DragEvent(EventType<DragEvent> eventType,
Dragboard dragboard,
double x,
double y,
double screenX,
double screenY,
TransferMode transferMode,
Object gestureSource,
Object gestureTarget,
PickResult pickResult)
Constructs new DragEvent event with empty source and target.
|
DragEvent(Object source,
EventTarget target,
EventType<DragEvent> eventType,
Dragboard dragboard,
double x,
double y,
double screenX,
double screenY,
TransferMode transferMode,
Object gestureSource,
Object gestureTarget,
PickResult pickResult)
Constructs new DragEvent event.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.