Class ClipboardType


  • public class ClipboardType
    extends java.lang.Object
    Defines a "type" for items in the Clipboard
    • Constructor Summary

      Constructors 
      Constructor Description
      ClipboardType​(java.awt.datatransfer.DataFlavor flavor, java.lang.String typeName)
      Constructs a new ClipboardType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.datatransfer.DataFlavor getFlavor()
      Returns the DataFlavor for this ClipboardType
      java.lang.String getTypeName()
      Returns the name of this Clipboard Type.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ClipboardType

        public ClipboardType​(java.awt.datatransfer.DataFlavor flavor,
                             java.lang.String typeName)
        Constructs a new ClipboardType
        Parameters:
        flavor - the DataFlavor of the data in the clipboard
        typeName - the name for this ClipboardType
    • Method Detail

      • getFlavor

        public java.awt.datatransfer.DataFlavor getFlavor()
        Returns the DataFlavor for this ClipboardType
      • getTypeName

        public java.lang.String getTypeName()
        Returns the name of this Clipboard Type.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()