k.u.l.ListSlave(SlaveDelegate) : class documentation

Part of kiwi.ui.listdialog View In Hierarchy

Known subclasses: kiwi.ui.listdialog.ListDialog

No class docstring
Method __init__ The keyactions parameter is sent to kiwi.controllers.BaseController,
Method set_list_type Set list type.
Method add_list_item Add item to list.
Method add_list_items Add items to list.
Method remove_list_item Remove item from list.
Method update_list_item Update item in list.
Method refresh Updates all the items in the list.
Method add_item This must be implemented in a subclass if you want to be able
Method remove_item A subclass can implement this to get a notification after
Method edit_item A subclass must implement this if you want to support editing
Method selection_changed This will be called when the selection changes in the ListDialog
Method populate This will be called once after the user interface construction is done.
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 SlaveView (via SlaveDelegate):

Method get_glade_adaptor Special init code that subclasses may want to override.
Method on_attach Hook function called when attach_slave is performed on slave views.
Method on_startup This is a virtual method that can be customized by classes that
Method get_toplevel Returns the toplevel widget in the view
Method get_widget Retrieves the named widget from the View
Method set_controller Sets the view's controller, checking to see if one has already
Method show_and_loop Runs show() and runs the GTK+ event loop. If the parent
Method show Shows the toplevel widget
Method show_all Shows all widgets attached to the toplevel widget
Method focus_toplevel Focuses the toplevel widget in the view
Method focus_topmost Looks through widgets specified (if no widgets are specified,
Method get_topmost_widget A real hack; returns the widget that is most to the left and
Method attach_slave Attaches a slaveview to the current view, substituting the
Method get_sizegroups Get a list of sizegroups for the current view.
Method detach_slave Detatch a slave called name from view
Method get_slave Undocumented
Method connect_multiple Connect the same handler to the specified signal for a number of
Method disconnect_autoconnected Disconnect handlers previously connected with
Method handler_block Undocumented
Method handler_unblock Undocumented
Method add_proxy Add a proxy to this view that automatically update a model when
Method check_and_notify_validity Undocumented
Method force_validation Undocumented
Method register_validate_function The signature of the validate function is:
Method _get_notebooks Undocumented
Method _check_reserved Undocumented
Method _get_toplevel Undocumented
Method _attach_callbacks Undocumented
Method _merge_sizegroup Undocumented
Method _attach_groups Undocumented
Method _on_child__validation_changed Undocumented
Method _on_notebook_slave__validation_changed Undocumented

Inherited from BaseController (via SlaveDelegate):

Method on_key_press The keypress handler, which dispatches keypresses to the
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
Method update_keyactions XXX
Method _get_all_methods Undocumented
def __init__(self, columns=None, orientation=gtk.ORIENTATION_VERTICAL):
The keyactions parameter is sent to kiwi.controllers.BaseController, the rest are sent to kiwi.ui.views.SlaveView
def _on_listcontainer__add_item(self, listcontainer):
Undocumented
def _on_listcontainer__remove_item(self, listcontainer, item):
Undocumented
def _on_listcontainer__edit_item(self, listcontainer, item):
Undocumented
def _on_listcontainer__selection_changed(self, listcontainer, selection):
Undocumented
def set_list_type(self, list_type):
Set list type.
See AlsoListcontainer.set_list_type
def add_list_item(self, item):
Add item to list.
See AlsoListcontainer.add_item
def add_list_items(self, item):
Add items to list.
See AlsoListcontainer.add_items
def remove_list_item(self, item):
Remove item from list.
See AlsoListcontainer.remove_item
def update_list_item(self, item):
Update item in list.
See AlsoListcontainer.edit_item
def refresh(self):
Updates all the items in the list. Clears the list and calls "populate()"
def add_item(self):
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

def remove_item(self, item):
A subclass can implement this to get a notification after an item is removed. If it's not implemented ListContainer.default_remove will be called
ReturnsFalse if the item should not be removed
def edit_item(self, item):
A subclass must implement this if you want to support editing of objects.
ReturnsFalse if the item should not be removed
def selection_changed(self, selection):
This will be called when the selection changes in the ListDialog
Parametersselectionselected object or None if nothing is selected
def populate(self):
This will be called once after the user interface construction is done. It should return a list of objects which will initially be inserted
Returnsobject to insert (type: sequence of objects )
API Documentation for Kiwi, generated by pydoctor at 2010-05-20 02:10:57.