Inherits from
- TraitType: enthought.traits.trait_handlers.TraitType
Attributes
Inherited from base classes
Method summary
- __init__(self, trait_type = List, id = None, **metadata)
- bind(obj, trait_name, extension_point_id)
- connect(self, obj, trait_name)
- connect_extension_point_traits(obj)
- disconnect(self, obj, trait_name)
- disconnect_extension_point_traits(obj)
- get(self, obj, trait_name)
- set(self, obj, name, value)
Inherited from base classes
- __call__(self, *args, **kw)
- __getattr__(self, name)
- arg_error(self, method, arg_num, object, name, value)
- as_ctrait(self)
- clone(self, default_value = Missing, **metadata)
- create_editor(self)
- dup_arg_error(self, method, arg_num, object, name)
- error(self, object, name, value)
- full_info(self, object, name, value)
- get_default_value(self)
- get_editor(self, trait = None)
- get_value(self, object, name, trait = None)
- info(self)
- init(self)
- inner_traits(self)
- is_valid(self, object, name, value)
- keyword_error(self, method, object, name, value)
- missing_arg_error(self, method, arg_num, object, name)
- repr(self, value)
- return_error(self, method, object, value)
- set_value(self, object, name, value)
Methods
- __init__(self, trait_type = List, id = None, **metadata)
Constructor.
- bind(obj, trait_name, extension_point_id)
Create a binding to an extension point.
- connect(self, obj, trait_name)
Connect the extension point to a trait on an object.
This allows the object to react when contributions are added or removed from the extension point.
fixme: It would be nice to be able to make the connection automatically but we would need a slight tweak to traits to allow the trait type to be notified when a new instance that uses the trait type is created.
- connect_extension_point_traits(obj)
Connect all of the 'ExtensionPoint' traits on an object.
- disconnect(self, obj, trait_name)
Disconnect the extension point from a trait on an object.
- disconnect_extension_point_traits(obj)
Disconnect all of the 'ExtensionPoint' traits on an object.
- get(self, obj, trait_name)
Trait type getter.
- set(self, obj, name, value)
Trait type setter.