fr.umlv.unitex
Class MultipleBoxesSelection

java.lang.Object
  extended by fr.umlv.unitex.MultipleBoxesSelection
All Implemented Interfaces:
java.awt.datatransfer.Transferable

public class MultipleBoxesSelection
extends java.lang.Object
implements java.awt.datatransfer.Transferable

This class describes the clipboard content description for copy/paste on multiple boxes.

Author:
Sébastien Paumier

Constructor Summary
MultipleBoxesSelection(MultipleSelection m)
          Creates a new multiple box selection object for copy/paste operations
 
Method Summary
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor f)
          Returns the data contained in the clipboard, if it is a multiple box selection
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          Defines a new dataflavor to identify Unitex multiple box selection
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor f)
          Tests if the dataflavor f is equal to the Unitex multiple box selection one
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleBoxesSelection

public MultipleBoxesSelection(MultipleSelection m)
Creates a new multiple box selection object for copy/paste operations

Parameters:
m - the box selection
Method Detail

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor f)
Returns the data contained in the clipboard, if it is a multiple box selection

Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Parameters:
f - dataflavor identifying the data contained in the clipboard
Returns:
the data, or null if the data type is invalid

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Defines a new dataflavor to identify Unitex multiple box selection

Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable
Returns:
an array containing the dataflavor

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor f)
Tests if the dataflavor f is equal to the Unitex multiple box selection one

Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable
Parameters:
f - the dataflavor to test
Returns:
true if the dataflavor is equal to the Unitex multiple box selection one, false otherwise