Trees | Index | Help |
---|
Package reportlab :: Package graphics :: Module widgetbase :: Class PropHolder |
|
Widget
Method Summary | |
---|---|
By default we verify. | |
Convenience. | |
Returns a list of all properties which can be edited and which are not marked as private. | |
Permits bulk setting of properties. | |
If the _attrMap attribute is not None, this checks all expected attributes are present; no unwanted attributes are present; and (if a checking function is found) checks each attribute has a valid value. |
Class Variable Summary | |
---|---|
NoneType |
_attrMap = None |
Method Details |
---|
__setattr__(self, name, value)By default we verify. This could be off in some parallel base classes. |
dumpProperties(self, prefix='')Convenience. Lists them on standard output. You may provide a prefix - mostly helps to generate code samples for documentation. |
getProperties(self, recur=1)Returns a list of all properties which can be edited and which are not marked as private. This may include 'child widgets' or 'primitive shapes'. You are free to override this and provide alternative implementations; the default one simply returns everything without a leading underscore. |
setProperties(self, propDict)Permits bulk setting of properties. These may include child objects e.g. "chart.legend.width = 200". All assignments will be validated by the object as if they were set individually in python code. All properties of a top-level object are guaranteed to be set before any of the children, which may be helpful to widget designers. |
verify(self)If the _attrMap attribute is not None, this checks all expected attributes are present; no unwanted attributes are present; and (if a checking function is found) checks each attribute has a valid value. Either succeeds or raises an informative exception. |
Class Variable Details |
---|
_attrMap
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Aug 10 20:01:10 2006 | http://epydoc.sf.net |