|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
S - The source of the transfer.public interface Transferable<S>
An object that can be transferred, such as between components using drag and drop.
| Method Summary | ||
|---|---|---|
boolean |
canTransfer(com.globalmentor.net.ContentType contentType)
Determines whether this transferable can transfer data with the given content type. |
|
com.globalmentor.net.ContentType[] |
getContentTypes()
|
|
S |
getSource()
|
|
|
transfer(java.lang.Class<T> objectClass)
Transfers data of the given class. |
|
java.lang.Object |
transfer(com.globalmentor.net.ContentType contentType)
Transfers data using the given content type. |
|
| Method Detail |
|---|
S getSource()
com.globalmentor.net.ContentType[] getContentTypes()
boolean canTransfer(com.globalmentor.net.ContentType contentType)
contentType - The type of data requested, which may include wildcards.
true if this object can transfer data with the requested content type.java.lang.Object transfer(com.globalmentor.net.ContentType contentType)
contentType - The type of data expected.
null.
java.lang.IllegalArgumentException - if the given content type is not supported.<T> T transfer(java.lang.Class<T> objectClass)
T - The type of object to be transferred.objectClass - The class of object to return.
null.
java.lang.IllegalArgumentException - if the given class is not supported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||