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

Type DataObjectComposite

object --+    
         |    
DataObject --+
             |
            DataObjectComposite


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.
    Inherited from DataObject
  __del__(self)
[formats] GetAllFormats(self, dir)
Returns a list of all the wx.DataFormats that this dataobject supports in the given direction.
String GetDataHere(self, format)
Get the data bytes in the specified format, returns None on failure.
size_t GetDataSize(self, format)
Get the (total) size of data for the given format
size_t GetFormatCount(self, dir)
Returns the number of available formats for rendering or setting the data.
DataFormat GetPreferredFormat(self, dir)
Returns the preferred format for either rendering the data (if dir is Get, its default value) or for setting it.
bool IsSupported(self, format, dir)
Returns True if this format is supported.
bool SetData(self, format, data)
Set the data in the specified format from the bytes in the the data string.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Class Variable Summary
    Inherited from DataObject
int Both = 3                                                                     
int Get = 1                                                                     
int Set = 2                                                                     

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.20050511.rpd on Sat Jun 16 16:58:58 2007 http://epydoc.sf.net