|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lightdev.app.filemanager.ui.FileRefTransferable
public class FileRefTransferable
A class that can be used for the transport of object arrays of class FileRef[] in data transfer operations such as cut, copy and paste or drag and drop.
| Field Summary | |
|---|---|
static DataFlavor |
FileRefArrayFlavor
the data flavor supported by this Transferable |
static DataFlavor |
FileSystemFlavor
|
| Constructor Summary | |
|---|---|
FileRefTransferable(FileRef[] files,
FileSystem sourceFs)
create a new instance of class FileRefTransferable |
|
| Method Summary | |
|---|---|
Object |
getTransferData(DataFlavor flavor)
get the data of a given data flavor this instance of FileRefTransferable transports |
DataFlavor[] |
getTransferDataFlavors()
get the data flavors supported by this class |
boolean |
isDataFlavorSupported(DataFlavor flavor)
determine whether or not a given data flavor is supported by this class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DataFlavor FileRefArrayFlavor
public static final DataFlavor FileSystemFlavor
| Constructor Detail |
|---|
public FileRefTransferable(FileRef[] files,
FileSystem sourceFs)
files - the array of files to transport with this instance of FileRefTransferablesourceFs - the source file system| Method Detail |
|---|
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException,
IOException
getTransferData in interface Transferableflavor - the requested data flavor
UnsupportedFlavorException - if the given flavor is not supported
IOExceptionpublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferableflavor - the requested data flavor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||