Package wx :: Class DataObjectComposite
[frames | no frames]

Type DataObjectComposite

object --+    
         |    
DataObject --+
             |
            DataObjectComposite

Known Subclasses:
URLDataObject

wx.DataObjectComposite is the simplest wx.DataObject derivation which may be sued to support multiple formats. It contains several 'wx.DataObjectSimple` objects and supports any format supported by at least one of them. Only one of these data objects is preferred (the first one if not explicitly changed by using the second parameter of Add) and its format determines the preferred format of the composite data object as well.

See wx.DataObject documentation for the reasons why you might prefer to use wx.DataObject directly instead of wx.DataObjectComposite for efficiency reasons.


Method Summary
DataObjectComposite __init__(self)
wx.DataObjectComposite is the simplest wx.DataObject derivation which may be sued to support multiple formats.
  __repr__(self)
  Add(self, dataObject, preferred)
Adds the dataObject to the list of supported objects and it becomes the preferred object if preferred is True.

Class Variable Summary

Method Details

__init__(self)
(Constructor)

wx.DataObjectComposite is the simplest wx.DataObject derivation which may be sued to support multiple formats. It contains several 'wx.DataObjectSimple` objects and supports any format supported by at least one of them. Only one of these data objects is preferred (the first one if not explicitly changed by using the second parameter of Add) and its format determines the preferred format of the composite data object as well.

See wx.DataObject documentation for the reasons why you might prefer to use wx.DataObject directly instead of wx.DataObjectComposite for efficiency reasons.

Returns:
DataObjectComposite
Overrides:
wx.DataObject.__init__

Add(self, dataObject, preferred=False)

Adds the dataObject to the list of supported objects and it becomes the preferred object if preferred is True.
Parameters:
dataObject
           (type=DataObjectSimple)
preferred
           (type=bool)

Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:25:43 2005 http://epydoc.sf.net