Class k.u.s.SearchContainer(gtk.VBox):

Part of kiwi.ui.search
A search container is a widget which consists of:
Function__init__
Create a new SearchContainer object.
Functiondo_set_propertyUndocumented
Functiondo_get_propertyUndocumented
Functiondo_set_child_propertyUndocumented
Functiondo_get_child_propertyUndocumented
Functionadd_filter
Adds a search filter
Functionset_filter_position
Set the the filter position.
Functionget_filter_position
Get filter by position.
Functionset_query_executer
Ties a QueryExecuter instance to the SearchContainer class
Functionget_query_executer
Fetchs the QueryExecuter for the SearchContainer
Functionget_primary_filter
Fetches the primary filter for the SearchContainer.
Functionsearch
Starts a search.
Functionset_auto_search
Enables/Disables auto search which means that the search result box
Functionset_text_field_columnsUndocumented
Functiondisable_search_entry
Disables the search entry
Functionset_summary_label
Adds a summary label to the result set
Function_on_search_button__clickedUndocumented
Function_on_search_entry__activateUndocumented
Function_on_search_filter__changedUndocumented
Function_create_uiUndocumented
def __init__(self, columns=None, chars=25):
Create a new SearchContainer object.
def do_set_property(self, pspec, value):
Undocumented
def do_get_property(self, pspec):
Undocumented
def do_set_child_property(self, child, property_id, value, pspec):
Undocumented
def do_get_child_property(self, child, property_id, pspec):
Undocumented
def add_filter(self, search_filter, position=SearchFilterPosition.BOTTOM, columns=None, callback=None):
Adds a search filter
def set_filter_position(self, search_filter, position):
Set the the filter position.
def get_filter_position(self, search_filter):
Get filter by position.
def set_query_executer(self, querty_executer):
Ties a QueryExecuter instance to the SearchContainer class
def get_query_executer(self):
Fetchs the QueryExecuter for the SearchContainer
def get_primary_filter(self):
Fetches the primary filter for the SearchContainer. The primary filter is the filter attached to the standard entry normally used to do free text searching
def search(self):
Starts a search. Fetches the states of all filters and send it to a query executer and finally puts the result in the result class
def set_auto_search(self, auto_search):
Enables/Disables auto search which means that the search result box is automatically populated when a filter changes
def set_text_field_columns(self, columns):
Undocumented
def disable_search_entry(self):
Disables the search entry
def set_summary_label(self, column, label='Total:', format='%s'):
Adds a summary label to the result set
def _on_search_button__clicked(self, button):
Undocumented
def _on_search_entry__activate(self, button):
Undocumented
def _on_search_filter__changed(self, search_filter):
Undocumented
def _create_ui(self):
Undocumented