kiwi.ui.listdialog.ListSlave(SlaveDelegate)
class documentationkiwi.ui.listdialog
(View In Hierarchy)
Known subclasses: kiwi.ui.listdialog.ListDialog
Method | __init__ | The keyactions parameter is sent to L{kiwi.controllers.BaseController}, the rest are sent to L{kiwi.ui.views.SlaveView} |
Method | set_list_type | Set list type. @see: L{Listcontainer.set_list_type} |
Method | add_list_item | Add item to list. @see: L{Listcontainer.add_item} |
Method | add_list_items | Add items to list. @see: L{Listcontainer.add_items} |
Method | remove_list_item | Remove item from list. @see: L{Listcontainer.remove_item} |
Method | update_list_item | Update item in list. @see: L{Listcontainer.edit_item} |
Method | refresh | Updates all the items in the list. Clears the list and calls "populate()" |
Method | add_item | This must be implemented in a subclass if you want to be able to add items. |
Method | remove_item | No summary |
Method | edit_item | A subclass must implement this if you want to support editing of objects. @returns: False if the item should not be removed |
Method | selection_changed | This will be called when the selection changes in the ListDialog @param selection: selected object or None if nothing is selected |
Method | populate | No summary |
Method | _on_listcontainer__add_item | Undocumented |
Method | _on_listcontainer__remove_item | Undocumented |
Method | _on_listcontainer__edit_item | Undocumented |
Method | _on_listcontainer__selection_changed | Undocumented |
Inherited from BaseController (via SlaveDelegate):
Method | on_key_press | The keypress handler, which dispatches keypresses to the functions mapped to in self.keyactions |
Method | get_parent | parent: the correspondent parent for the controller |
Method | set_parent | parent: the correspondent parent for the controller |
Method | get_view | view: the correspondent view for the controller |
Method | set_view | view: the correspondent view for the controller |
Method | set_keyactions | Sets the keyactions mapping. See the constructor documentation for a description of it. |
Method | update_keyactions | XXX |
Method | _get_all_methods | Undocumented |
Inherited from BaseController (via SlaveDelegate):
Method | on_key_press | The keypress handler, which dispatches keypresses to the functions mapped to in self.keyactions |
Method | get_parent | parent: the correspondent parent for the controller |
Method | set_parent | parent: the correspondent parent for the controller |
Method | get_view | view: the correspondent view for the controller |
Method | set_view | view: the correspondent view for the controller |
Method | set_keyactions | Sets the keyactions mapping. See the constructor documentation for a description of it. |
Method | update_keyactions | XXX |
Method | _get_all_methods | Undocumented |
The keyactions parameter is sent to L{kiwi.controllers.BaseController}, the rest are sent to L{kiwi.ui.views.SlaveView}
This must be implemented in a subclass if you want to be able to add items. It should return the model you want to add to the list or None if you don't want anything to be added, eg the user cancelled creation of the model
A subclass can implement this to get a notification after an item is removed. If it's not implemented L{ListContainer.default_remove} will be called @returns: False if the item should not be removed
A subclass must implement this if you want to support editing of objects. @returns: False if the item should not be removed