|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transferable
Transferable wraps the data that is to be imported into another component. Currently Transferable is only used for drag and drop.
Method Summary | |
---|---|
Object |
getData(String dataFlavor)
Returns the data from Transferable by its data flavor (aka data type). |
Collection<String> |
getDataFlavors()
|
Component |
getSourceComponent()
|
void |
setData(String dataFlavor,
Object value)
Stores data of given data flavor to Transferable. |
Method Detail |
---|
Object getData(String dataFlavor)
Note, implementations of Transferable
often provide a better
typed API for accessing data.
dataFlavor
- the data flavor to be returned from Transferable
void setData(String dataFlavor, Object value)
dataFlavor
- the data flavorvalue
- the new value of the data flavorCollection<String> getDataFlavors()
Component getSourceComponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |