Inherits from
- Editor: enthought.traits.ui.wx.editor.Editor
Attributes
- auto_add
Is 'auto_add' mode in effect? (I.e., new rows are automatically added to the end of the table when the user modifies current last row.)
auto_add = Bool(False)
- click
The event fired when a cell is clicked on:
click = Event
- columns
The set of columns currently defined on the editor:
columns = List(TableColumn)
- dclick
The event fired when a cell is double-clicked on:
dclick = Event
- filter
Current filter object (should be a TableFilter or callable or None):
filter = Any
- filtered_indices
The indices of the table items currently passing the table filter:
filtered_indices = List(Int)
- grid
The grid widget associated with the editor:
grid = Instance(Grid)
- in_column_mode
Is the editor in column mode (i.e. not row or cell mode)?
in_column_mode = Property
- in_row_mode
Is the editor in row mode (i.e. not column or cell mode)?
in_row_mode = Property
- model
The table model associated with the editor:
model = Instance(TableModel)
- scrollable
Is the table editor scrollable? This value overrides the default.
scrollable = True
- selected_cell
selected_cell = Tuple(Any, Str)
- selected_cell_index
selected_cell_index = Tuple(Int, Int)
- selected_cell_indices
selected_cell_indices = List(Tuple(Int, Int))
- selected_cells
selected_cells = List(Tuple(Any, Str))
- selected_column
selected_column = Any
- selected_column_index
selected_column_index = Int(-Const(1))
- selected_column_indices
selected_column_indices = List(Int)
- selected_columns
selected_columns = List
- selected_indices
selected_indices = Property
- selected_items
selected_items = Property
- selected_row
The currently selected table item(s):
selected_row = Any
- selected_row_index
Index of currently edited (i.e., selected) table item(s):
selected_row_index = Int(-Const(1))
- selected_row_indices
selected_row_indices = List(Int)
- selected_rows
selected_rows = List
- selected_values
selected_values = Property
- toolbar
TableEditorToolbar associated with the editor:
toolbar = Any
- toolbar_ui
The Traits UI associated with the table editor toolbar:
toolbar_ui = Instance(UI)
Inherited from base classes
Traits
Inherited from base classes
Method summary
- add_row(self, object = None, index = None)
- add_to_menu(self, menu_item)
- add_to_toolbar(self, toolbar_item)
- can_add_to_menu(self, action)
- can_add_to_toolbar(self, action)
- create_new_row(self)
- dispose(self)
- eval_when(self, condition, object, trait)
- filter_modified(self)
- init(self, parent)
- move_column(self, from_column, to_column)
- on_add(self)
- on_delete(self)
- on_move_down(self)
- on_move_up(self)
- on_no_sort(self)
- on_prefs(self)
- on_search(self)
- perform(self, action, action_event = None)
- prepare_menu(self, row, column)
- refresh(self)
- restore_prefs(self, prefs)
- save_prefs(self)
- set_extended_selection(self, *pairs)
- set_selection(self, objects = [ ], notify = True)
- setx(self, **keywords)
- update_editor(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __init__(self, parent, **traits)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __set_value(self, value)
- __setstate__(self, state, trait_change_notify = True)
- 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_undo_item(self, object, name, old_value, new_value)
- has_traits_interface(self, *interfaces)
- log_change(self, undo_factory, *undo_args)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- parse_extended_name(self, name)
- prepare(self, parent)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- string_value(self, value, format_func = None)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- sync_value(self, user_name, editor_name, mode = 'both', is_list = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- 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
- add_row(self, object = None, index = None)
Adds a specified object as a new row after the specified index.
- add_to_toolbar(self, toolbar_item)
Adds a toolbar item to the toolbar being constructed.
- can_add_to_toolbar(self, action)
Returns whether the toolbar action should be defined in the user interface.
- create_new_row(self)
Creates a new row object using the provided factory.
- dispose(self)
Disposes of the contents of an editor.
- eval_when(self, condition, object, trait)
Evaluates a condition within a defined context and sets a specified object trait based on the result, which is iassumed to be a Boolean.
- filter_modified(self)
Handles updating the selection when some aspect of the current filter has changed.
- init(self, parent)
Finishes initializing the editor by creating the underlying toolkit widget.
- move_column(self, from_column, to_column)
Moves the specified from_column from its current position to just preceding the specified to_column.
- on_add(self)
Handles the user requesting to add a new row to the table.
- on_delete(self)
Handles the user requesting to delete the currently selected items of the table.
- on_move_down(self)
Handles the user requesting to move the current item down one row.
- on_move_up(self)
Handles the user requesting to move the current item up one row.
- on_no_sort(self)
Handles the user requesting that columns not be sorted.
- on_prefs(self)
Handles the user requesting to set the user preference items for the table.
- on_search(self)
Handles the user requesting a table search.
- perform(self, action, action_event = None)
Performs the action described by a specified Action object.
- refresh(self)
Refreshes the editor control.
- restore_prefs(self, prefs)
Restores any saved user preference information associated with the editor.
- save_prefs(self)
Returns any user preference information associated with the editor.
- set_extended_selection(self, *pairs)
Sets the current selection to a set of specified object/column pairs.
- set_selection(self, objects = [ ], notify = True)
Sets the current selection to a set of specified objects.
- setx(self, **keywords)
Set one or more attributes without notifying the grid model.
- update_editor(self)
Updates the editor when the object trait changes externally to the editor.