wxoo.table.propertiedadapter
index
p:\wxproperties\wxoo\table\propertiedadapter.py

Adapter for propertied objects

 
Modules
       
wxoo.table.adapter
wxoo.propertydescriptor

 
Classes
       
Adapter(object)
PropertiedAdapter

 
class PropertiedAdapter(Adapter)
    Propertied-object adapter
 
 
Method resolution order:
PropertiedAdapter
Adapter
object

Methods defined here:
CalculateProperties(self, value=None)
Return property set for the given or current value
 
value -- if not None, a value other than the current value
        for which properties should be retrieved.
 
This implementation uses
        wxoo.propertydescriptor.defaultDescriptors( value )
to determine the properties for the value.

Methods inherited from Adapter:
GetProperties(self, value=None)
Returns current property set
GetPropertyCount(self)
Get a count of the current properties
GetValue(self)
Get the currently-edited object
 
returns the object
RetrieveValue(self)
Customisation Point: Retrieve reference to the value
 
This customization point is called whenever the adapter
needs to retrieve a reference to the currently-edited value.
You can override this method to allow such things as
only storing weak references.
 
Default implementation returns self.value
SetProperties(self, value=None)
Set the current property-set for the adapter
 
value -- sequence of property definition objects
        or None to attempt to automatically determine the
        property-set using CalculateProperties
SetValue(self, value=None)
Set the object to be edited by the view
 
value -- the object to be edited
StoreValue(self, value)
Customisation Point: Store reference to the value
 
This customization point is called whenever the adapter
needs to store a reference to the currently-edited value.
You can override this method to allow such things as
only storing weak references.
 
Default implementation does self.value = value
__init__(self, value=None, properties=None, **named)
Initialize the Adapter
 
view -- pointer to the wxoo.table.gridview.View sub-
        object which is being serviced by the adapter.

Data and other attributes inherited from Adapter:
__dict__ = <dictproxy object at 0x02899F30>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Adapter' objects>
list of weak references to the object (if defined)
properties = <ListProperty 'properties'>
The list of property descriptors for the Adapter
propertiesCalculated = <BooleanProperty 'propertiesCalculated'>
Whether property-set was automatically calculated
 
Used to determine whether to re-calculate if necessary
value = None