Class TransferableDescriptor

    • Constructor Detail

      • TransferableDescriptor

        @Deprecated
        public TransferableDescriptor​(String name,
                                      String className,
                                      Integer priority,
                                      Integer inputPriority,
                                      boolean isDefault,
                                      boolean copyAsTransferable)
        Deprecated.
        since 5.3.3 new descriptor parameter added.
        Constructs a TransferableDescriptor object.
        Parameters:
        name - the displayed name of the MTransferable object.
        className - the representation class of the MTransferable object
        priority - Priority of the MTransferable object when exporting to clipboard
        inputPriority - Priority of the MTransferable object when importing to clipboard
        isDefault - 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.
      • TransferableDescriptor

        public TransferableDescriptor​(String name,
                                      String className,
                                      Integer priority,
                                      Integer inputPriority,
                                      boolean isDefault,
                                      boolean copyAsTransferable,
                                      boolean dndTransferable)
        Constructs a TransferableDescriptor object.
        Parameters:
        name - the displayed name of the MTransferable object.
        className - the representation class of the MTransferable object
        priority - Priority of the MTransferable object when exporting to clipboard
        inputPriority - Priority of the MTransferable object when importing to clipboard
        isDefault - 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 object
    • Method Detail

      • getRepresentationClass

        public String getRepresentationClass()
        Gets the name of the representation class of the MTransferable.
        Returns:
        representation class name of the MTransferable.
      • isDefaultTransferable

        public boolean isDefaultTransferable()
        Determines whether the MTransferable instance should be used by the default copy operation.
        Returns:
        true if the MTransferable instance should be used by the default copy operation, false otherwise.
      • isCopyAsTransferable

        public boolean isCopyAsTransferable()
        Determines whether the MTransferable is appearing as an option in the Copy As dialog.
        Returns:
        true if the MTransferable is appearing in the Copy As dialog, false otherwise.
      • getPriority

        public Integer getPriority()
        Gets the priority of the MTransferable object by exporting to clipboard. This priority determines the order in the Copy As dialog: the lowest comes first.
        Returns:
        the priority in the Copy As dialog.
      • getInputPriority

        public Integer getInputPriority()
        Priority of the MTransferable object when importing from clipboard. The lower priority indicates that the transferable tries to import prior to the MTransferable instances having higher priority.
        Returns:
        the priority when importing from clipboard.
      • isDndTransferable

        public boolean isDndTransferable()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object