|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.ui.ObjectSelection
Represents a serialised object that is transfered e.g. by drag & drop.
| Field Summary | |
private String |
className_
The name of the class that is tranferred. |
private DataFlavor |
flavor_
The DataFlavor of this Transferable
. |
private byte[] |
obj_
The serialized object graph. |
| Constructor Summary | |
ObjectSelection(Object o)
Creates an instance with the given object. |
|
| Method Summary | |
Object |
getTransferData(DataFlavor flavor)
Deserializes and returns the embedded data object. |
DataFlavor[] |
getTransferDataFlavors()
This Transferable supports only serialized
object data flavor types. |
boolean |
isDataFlavorSupported(DataFlavor flavor)
This transferable supports only serialized
object data flavor types. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private byte[] obj_
private String className_
private DataFlavor flavor_
DataFlavor of this Transferable
.
| Constructor Detail |
public ObjectSelection(Object o)
throws IOException,
NotSerializableException,
InvalidClassException
o - The content object.| Method Detail |
public DataFlavor[] getTransferDataFlavors()
Transferable supports only serialized
object data flavor types.
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor flavor)
transferable supports only serialized
object data flavor types.
isDataFlavorSupported in interface Transferabletrue if the given data flavor is
not null and is a serialized object type.
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException,
IOException
getTransferData in interface TransferableIOException - if the object cannot be
deserialized for some reason.
UnsupportedFlavorException - if the given
flavor is not supported. In other words, if the
given flavor is not a serialized object flavor
type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||