Class TransferableNestedList

    • Field Detail

      • FlavorNestedList

        public static DataFlavor FlavorNestedList
      • m_Data

        protected List[] m_Data
        the nodes to transfer.
    • Constructor Detail

      • TransferableNestedList

        public TransferableNestedList​(Node data)
        Initializes the container.
        Parameters:
        data - the node to transfer
      • TransferableNestedList

        public TransferableNestedList​(Node[] data)
        Initializes the container.
        Parameters:
        data - the nodes to transfer
    • Method Detail

      • getTransferDataFlavors

        public DataFlavor[] getTransferDataFlavors()
        Returns an array of DataFlavor objects indicating the flavors the data can be provided in. The array should be ordered according to preference for providing the data (from most richly descriptive to least descriptive).
        Specified by:
        getTransferDataFlavors in interface Transferable
        Returns:
        an array of data flavors in which this data can be transferred
      • isDataFlavorSupported

        public boolean isDataFlavorSupported​(DataFlavor flavor)
        Returns whether or not the specified data flavor is supported for this object.
        Specified by:
        isDataFlavorSupported in interface Transferable
        Parameters:
        flavor - the requested flavor for the data
        Returns:
        boolean indicating whether or not the data flavor is supported
      • getData

        public List[] getData()
        Returns the underlying nodes.
        Returns:
        the nodes
      • toString

        public String toString()
        Returns the underlying commandline of the full actor.
        Overrides:
        toString in class Object
        Returns:
        the commandline