Class k.u.l.ListSlave(SlaveDelegate):

Part of kiwi.ui.listdialog

known subclasses: kiwi.ui.listdialog.ListDialog

Undocumented
Function__init__

The keyactions parameter is sent to kiwi.controllers.BaseController,

Function_on_listcontainer__add_itemUndocumented
Function_on_listcontainer__remove_itemUndocumented
Function_on_listcontainer__edit_itemUndocumented
Function_on_listcontainer__selection_changedUndocumented
Functionset_list_type

Set list type.

Functionadd_list_item

Add item to list.

Functionadd_list_items

Add items to list.

Functionremove_list_item

Remove item from list.

Functionupdate_list_item

Update item in list.

Functionrefresh

Updates all the items in the list.

Functionadd_item

This must be implemented in a subclass if you want to be able

Functionremove_item

A subclass can implement this to get a notification after

Functionedit_item

A subclass must implement this if you want to support editing

Functionselection_changed

This will be called when the selection changes in the ListDialog

Functionpopulate

This will be called once after the user interface construction is done.

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.

def add_list_item(self, item):

Add item to list.

def add_list_items(self, item):

Add items to list.

def remove_list_item(self, item):

Remove item from list.

def update_list_item(self, item):

Update item in list.

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

def edit_item(self, item):

A subclass must implement this if you want to support editing of objects.

def selection_changed(self, selection):

This will be called when the selection changes in the ListDialog

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