|
org.openide.util 6.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.util.datatransfer.ExTransferable
public class ExTransferable
Provides additional operations on a transferable.
Nested Class Summary | |
---|---|
static class |
ExTransferable.Multi
Transferable object for multiple transfer. |
static class |
ExTransferable.Single
Support for transferable owner with only one data flavor. |
Field Summary | |
---|---|
static Transferable |
EMPTY
An implementation of Transferable that contains no data. |
static DataFlavor |
multiFlavor
Flavor for transfer of multiple objects. |
Method Summary | |
---|---|
void |
addTransferListener(TransferListener l)
Adds a listener to watch the life-cycle of this object. |
static ExTransferable |
create(Transferable t)
Method to create a new extended transferable from a plain transferable. |
Object |
getTransferData(DataFlavor flavor)
|
DataFlavor[] |
getTransferDataFlavors()
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
|
void |
put(ExTransferable.Single single)
Add a new flavor with its data. |
void |
remove(DataFlavor flavor)
Remove a flavor from the supported set. |
void |
removeTransferListener(TransferListener l)
Removes a listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Transferable EMPTY
Transferable
that contains no data.
public static final DataFlavor multiFlavor
Method Detail |
---|
public void put(ExTransferable.Single single)
single
- the single transferable to usepublic void remove(DataFlavor flavor)
flavor
- the flavor to removepublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
public static ExTransferable create(Transferable t)
ExTransferable
, then it
is returned as is.
Otherwise the data is copied.
t
- transferable to create support for
public final void addTransferListener(TransferListener l)
l
- the listenerpublic final void removeTransferListener(TransferListener l)
|
org.openide.util 6.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |