1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Wraps the data that is to be imported into another component."""
17
18
20 """ITransferable wraps the data that is to be imported into another
21 component. Currently ITransferable is only used for drag and drop.
22 """
23
25 """Returns the data from ITransferable by its data flavor (aka data
26 type). Data types can be any string keys, but MIME types like
27 "text/plain" are commonly used.
28
29 Note, implementations of L{ITransferable} often provide a better
30 typed API for accessing data.
31
32 @param dataFlavor:
33 the data flavor to be returned from ITransferable
34 @return: the data stored in the ITransferable or null if ITransferable
35 contains no data for given data flavour
36 """
37 raise NotImplementedError
38
39
40 - def setData(self, dataFlavor, value):
41 """Stores data of given data flavor to ITransferable. Possibly existing
42 value of the same data flavor will be replaced.
43
44 @param dataFlavor:
45 the data flavor
46 @param value:
47 the new value of the data flavor
48 """
49 raise NotImplementedError
50
51
53 """@return: a collection of data flavors ( data types ) available in
54 this ITransferable
55 """
56 raise NotImplementedError
57
58
60 """@return: the component that created the ITransferable or null if
61 the source component is unknown
62 """
63 raise NotImplementedError
64