AbstractFieldWidget is the base class for all search widgets in Koo. More...
Public Member Functions | |
| def | __init__ |
| Creates a new AbstractSearchWidget and receives the following parameters. | |
| def | setFocus |
| Sets the focus to the widget. | |
| def | clear |
| Clears the value of the widget New widgets should override this function. | |
| def | value |
| Returns a domain-like list for the current value in the widget. | |
| def | setValue |
| Sets the given value in the search field. | |
AbstractFieldWidget is the base class for all search widgets in Koo.
In order to create a new search widget, that is: a widget that appears in a auto-generated search form you need to inherit from this class and implement some of it's functions.
Definition at line 37 of file AbstractSearchWidget.py.
| def Koo::Search::AbstractSearchWidget::AbstractSearchWidget::__init__ | ( | self, | ||
| name, | ||||
| parent, | ||||
attrs = {} | ||||
| ) |
Creates a new AbstractSearchWidget and receives the following parameters.
Note that a class that inherits AbstractSearchWidget should set self.focusWidget which by default equals 'self'.
name: The name of the field parent: The QWidget parent of this QWidget attributes: Holds some extra attributes
Definition at line 47 of file AbstractSearchWidget.py.
| def Koo::Search::AbstractSearchWidget::AbstractSearchWidget::clear | ( | self | ) |
Clears the value of the widget New widgets should override this function.
Reimplemented in Koo::Search::SearchFormWidget::SearchFormWidget.
Definition at line 67 of file AbstractSearchWidget.py.
| def Koo::Search::AbstractSearchWidget::AbstractSearchWidget::setValue | ( | self, | ||
| value | ||||
| ) |
Sets the given value in the search field.
New widgets should override this function.
Reimplemented in Koo::Search::SearchFormWidget::SearchFormWidget.
Definition at line 77 of file AbstractSearchWidget.py.
| def Koo::Search::AbstractSearchWidget::AbstractSearchWidget::value | ( | self | ) |
Returns a domain-like list for the current value in the widget.
New widgets should override this function.
Definition at line 72 of file AbstractSearchWidget.py.