Package muntjac :: Package event :: Module transferable_impl :: Class TransferableImpl
[hide private]
[frames] | no frames]

Class TransferableImpl

source code

                object --+    
                         |    
transferable.ITransferable --+
                             |
                            TransferableImpl
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, sourceComponent, rawVariables)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getData(self, dataFlavor)
Returns the data from ITransferable by its data flavor (aka data type).
source code
 
getDataFlavors(self)
Returns: a collection of data flavors ( data types ) available in this ITransferable
source code
 
getSourceComponent(self)
Returns: the component that created the ITransferable or null if the source component is unknown
source code
 
setData(self, dataFlavor, value)
Stores data of given data flavor to ITransferable.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sourceComponent, rawVariables)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getData(self, dataFlavor)

source code 

Returns the data from ITransferable by its data flavor (aka data type). Data types can be any string keys, but MIME types like "text/plain" are commonly used.

Note, implementations of ITransferable often provide a better typed API for accessing data.

Parameters:
  • dataFlavor - the data flavor to be returned from ITransferable
Returns:
the data stored in the ITransferable or null if ITransferable contains no data for given data flavour
Overrides: transferable.ITransferable.getData
(inherited documentation)

getDataFlavors(self)

source code 
Returns:
a collection of data flavors ( data types ) available in this ITransferable
Overrides: transferable.ITransferable.getDataFlavors
(inherited documentation)

getSourceComponent(self)

source code 
Returns:
the component that created the ITransferable or null if the source component is unknown
Overrides: transferable.ITransferable.getSourceComponent
(inherited documentation)

setData(self, dataFlavor, value)

source code 

Stores data of given data flavor to ITransferable. Possibly existing value of the same data flavor will be replaced.

Parameters:
  • dataFlavor - the data flavor
  • value - the new value of the data flavor
Overrides: transferable.ITransferable.setData
(inherited documentation)