|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.component.transfer.AbstractTransferable<S>
S - The source of the transfer.public abstract class AbstractTransferable<S>
An abstract object that can be transferred, such as between components using drag and drop.
| Constructor Summary | |
|---|---|
AbstractTransferable(S source)
Source constructor. |
|
| Method Summary | ||
|---|---|---|
boolean |
canTransfer(com.globalmentor.net.ContentType contentType)
Determines whether this transferable can transfer data with the given content type. |
|
S |
getSource()
|
|
|
transfer(java.lang.Class<T> objectClass)
Transfers data of the given class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.transfer.Transferable |
|---|
getContentTypes, transfer |
| Constructor Detail |
|---|
public AbstractTransferable(S source)
source - The source of the transferable data.
java.lang.NullPointerException - if the provided source is null.| Method Detail |
|---|
public S getSource()
getSource in interface Transferable<S>public boolean canTransfer(com.globalmentor.net.ContentType contentType)
Transferable.getContentTypes().
canTransfer in interface Transferable<S>contentType - The type of data requested, which may include wildcards.
true if this object can transfer data with the requested content type.public <T> T transfer(java.lang.Class<T> objectClass)
Transferable.transfer(ContentType).
transfer in interface Transferable<S>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 | ||||||||