@PublicAPI public class TransferableDescriptor extends java.lang.Object implements java.lang.Comparable<TransferableDescriptor>
Constructor and Description |
---|
TransferableDescriptor(java.lang.String name,
java.lang.String className,
java.lang.Integer priority,
java.lang.Integer inputPriority,
boolean isDefault,
boolean copyAsTransferable)
Deprecated.
since 5.3.3 new descriptor parameter added.
|
TransferableDescriptor(java.lang.String name,
java.lang.String className,
java.lang.Integer priority,
java.lang.Integer inputPriority,
boolean isDefault,
boolean copyAsTransferable,
boolean dndTransferable)
Constructs a
TransferableDescriptor object. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TransferableDescriptor o)
Comparison method which uses the priority field for ordering.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getInputPriority()
Priority of the
MTransferable object when importing from clipboard. |
java.lang.String |
getName()
Gets the name of the represented
MTransferable . |
java.lang.Integer |
getPriority()
Gets the priority of the
MTransferable object by exporting to clipboard. |
java.lang.String |
getRepresentationClass()
Gets the name of the representation class of the
MTransferable . |
int |
hashCode() |
boolean |
isCopyAsTransferable()
Determines whether the
MTransferable is appearing as an option in the Copy As dialog. |
boolean |
isDefaultTransferable()
Determines whether the
MTransferable instance should be used by the default copy
operation. |
boolean |
isDndTransferable() |
@Deprecated public TransferableDescriptor(java.lang.String name, java.lang.String className, java.lang.Integer priority, java.lang.Integer inputPriority, boolean isDefault, boolean copyAsTransferable)
TransferableDescriptor
object.name
- the displayed name of the MTransferable
object.className
- the representation class of the MTransferable
objectpriority
- Priority of the MTransferable
object when exporting to clipboardinputPriority
- Priority of the MTransferable
object when importing to clipboardisDefault
- flag to indicate whether the MTransferable is used in the default transferable.copyAsTransferable
- flag to indicate whether the MTransferable should be displayed in Copy as dialog
or not.public TransferableDescriptor(java.lang.String name, java.lang.String className, java.lang.Integer priority, java.lang.Integer inputPriority, boolean isDefault, boolean copyAsTransferable, boolean dndTransferable)
TransferableDescriptor
object.name
- the displayed name of the MTransferable
object.className
- the representation class of the MTransferable
objectpriority
- Priority of the MTransferable
object when exporting to clipboardinputPriority
- Priority of the MTransferable
object when importing to clipboardisDefault
- flag to indicate whether the MTransferable is used in the default transferable.copyAsTransferable
- flag to indicate whether the MTransferable should be displayed in Copy as dialog
or not.dndTransferable
- flag to indicate whether the transferable is used when importing data from a
dropped objectpublic java.lang.String getName()
MTransferable
.MTransferable
.public java.lang.String getRepresentationClass()
MTransferable
.MTransferable
.public boolean isDefaultTransferable()
MTransferable
instance should be used by the default copy
operation.MTransferable
instance should be used by the default copy
operation, false otherwise.public boolean isCopyAsTransferable()
MTransferable
is appearing as an option in the Copy As dialog.MTransferable
is appearing in the Copy As dialog, false
otherwise.public java.lang.Integer getPriority()
MTransferable
object by exporting to clipboard. This
priority determines the order in the Copy As dialog: the lowest comes first.public java.lang.Integer getInputPriority()
MTransferable
object when importing from clipboard. The lower
priority indicates that the transferable tries to import prior to the MTransferable
instances having higher priority.public boolean isDndTransferable()
public int compareTo(TransferableDescriptor o)
compareTo
in interface java.lang.Comparable<TransferableDescriptor>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object