Spec-Zone .ru
спецификации, руководства, описания, API
|
public enum TransferMode extends java.lang.Enum<TransferMode>
Enum Constant and Description |
---|
COPY
Indicates copying of data is supported or intended.
|
LINK
Indicates linking of data is supported or intended.
|
MOVE
Indicates moving of data is supported or intended.
|
Modifier and Type | Field and Description |
---|---|
static TransferMode[] |
ANY
Array containing all transfer modes.
|
static TransferMode[] |
COPY_OR_MOVE
Array containing transfer modes COPY and MOVE.
|
static TransferMode[] |
NONE
Empty array of transfer modes.
|
Modifier and Type | Method and Description |
---|---|
static TransferMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransferMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransferMode COPY
public static final TransferMode MOVE
public static final TransferMode LINK
public static final TransferMode[] ANY
startDragAndDrop
and
DragEvent.acceptTransferModes()
calls.public static final TransferMode[] COPY_OR_MOVE
startDragAndDrop
and
DragEvent.acceptTransferModes()
calls.public static final TransferMode[] NONE
startDragAndDrop
and
DragEvent.acceptTransferModes()
calls.public static TransferMode[] values()
for (TransferMode c : TransferMode.values()) System.out.println(c);
public static TransferMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to