Inherits from
- HasTraits: enthought.traits.has_traits.HasTraits
Attributes
- application
The application that the editor is part of. This is a convenience property and is equivalent to 'self.window.application'.
application = Property(Instance(Application))
- control
The toolkit-specific control that represents the editor.
The framework sets this to the value returned by 'create_control'.
control = Any
- dirty
Is the resource that the editor is editing 'dirty' i.e., has it been modified but not saved?
dirty = Bool(False)
- has_focus
Does the editor currently have the focus?
has_focus = Bool(False)
- id
The editor's globally unique identifier.
id = Str
- name
The editor's name.
name = Str
- resource
The resource that the editor is editing.
The framework sets this when the editor is created.
resource = Any
- selection
The current selection within the editor.
selection = List
- window
The workbench window that the editor is in.
The framework sets this when the editor is created.
window = Instance('enthought.envisage.workbench.Window')
Inherited from base classes
Method summary
- close(self)
- create_control(self, parent)
- destroy_control(self)
- get_service(self, interface, query = None)
- get_services(self, interface, query = None)
- set_focus(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name)
- __reduce_ex__(self, protocol)
- __setstate__(self, state)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- get(self, *names, **metadata)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same')
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set(self, trait_change_notify = True, **traits)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- close(self)
Closes the editor.
This method is not currently called by the framework itself as the user is normally in control of the editor lifecycle. Call this if you want to control the editor lifecycle programmatically.
- create_control(self, parent)
Creates the toolkit-specific control that represents the editor.
The parameter parent is the toolkit-specific control that is the editor's parent.
Editor implementors should override this!
- destroy_control(self)
Destroys the toolkit-specific control that represents the editor.
- get_service(self, interface, query = None)
Returns a service that implements the specified interface.
Raises a SystemError if no such service is found.
- get_services(self, interface, query = None)
Returns all services that match the specified query.
If no services match the query, then an empty list is returned.
- set_focus(self)
Sets the focus to the appropriate control in the editor.
By default we set the focus to be the editor's top-level control. Override this method if you need to give focus to some other child control.