kiwi.ui.search.DateSearchFilter(SearchFilter) class documentationkiwi.ui.search
(View In Hierarchy)
A filter which helps you to search by a date interval. Can be customized through add_option.
| Class | Type | Undocumented |
| Method | __init__ | Create a new DateSearchFilter object. @param label: name of the search filter |
| Method | get_state | Implement this in a subclass |
| Method | clear_options | Removes all previously added options |
| Method | add_option | Adds a date option @param option_type: option to add @type option_type:
a DateSearchOption
subclass |
| Method | add_option_fixed | No summary |
| Method | add_option_fixed_interval | No summary |
| Method | get_start_date | Get the start date. @returns: start date @rtype: datetime.date or None |
| Method | get_end_date | Get the end date. @returns: end date @rtype: datetime.date or None |
| Method | set_use_date_entries | Toggles the visibility of the user selectable date entries @param use_date_entries: |
| Method | select | selects an item in the combo Data or position can be sent in. If nothing is sent in the first item will be selected, if any |
| Method | _update_dates | Undocumented |
| Method | _update_sensitivity | Undocumented |
| Method | _internal_set_start_date | Undocumented |
| Method | _internal_set_end_date | Undocumented |
| Method | _on_mode__content_changed | Undocumented |
| Method | _on_start_date__changed | Undocumented |
| Method | _on_end_date__changed | Undocumented |
Inherited from SearchFilter:
| Method | do_set_property | Undocumented |
| Method | do_get_property | Undocumented |
| Method | set_label | Undocumented |
Create a new DateSearchFilter object.
| Parameters | label | name of the search filter |
Adds a date option
| Parameters | option_type | option to add (type: a DateSearchOption
subclass) |
Adds a fixed option, eg one for which date is not possible to modify.
| Parameters | name | name of the option |
| date | fixed data | |
| position | position to add the option at |
Adds a fixed option interval, eg one for which the dates are not possible to modify.
| Parameters | name | name of the option |
| start | start of the fixed interval | |
| end | end of the fixed interval | |
| position | position to add the option at |
Toggles the visibility of the user selectable date entries
| Parameters | use_date_entries |