Package muntjac :: Package event :: Module data_bound_transferable :: Class DataBoundTransferable
[hide private]
[frames] | no frames]

Class DataBoundTransferable

source code

                    object --+        
                             |        
    transferable.ITransferable --+    
                                 |    
transferable_impl.TransferableImpl --+
                                     |
                                    DataBoundTransferable

Parent class for Transferable implementations that have a Muntjac container as a data source. The transfer is associated with an item (identified by its Id) and optionally also a property identifier (e.g. a table column identifier when transferring a single table cell).

The component must implement the interface IViewer.

In most cases, receivers of data transfers should depend on this class instead of its concrete subclasses.

Instance Methods [hide private]
 
__init__(self, sourceComponent, rawVariables)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getItemId(self)
Returns the identifier of the item being transferred.
source code
 
getPropertyId(self)
Returns the optional property identifier that the transfer concerns.
source code
 
getSourceContainer(self)
Returns the container data source from which the transfer occurs.
source code

Inherited from transferable_impl.TransferableImpl: getData, getDataFlavors, getSourceComponent, setData

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 x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

getItemId(self)

source code 

Returns the identifier of the item being transferred.

Returns:
item identifier

getPropertyId(self)

source code 

Returns the optional property identifier that the transfer concerns.

This can be e.g. the table column from which a drag operation originated.

Returns:
property identifier

getSourceContainer(self)

source code 

Returns the container data source from which the transfer occurs.

IViewer.getContainerDataSource is used to obtain the underlying container of the source component.

Returns:
Container