Trees | Indices | Help |
|
---|
|
EventSenderUI --+ | Finder
The Finder control implements a finder-like browser, which displays URLs. URLs consist of items separated by the "/" character. Whenever a item is selected, an iProvider compatible instance will be asked for the subitems of the corresponding URL. Using these, a new field will be set up for presentation. A filter can be installed to prevent items from being shown.
An added benefit is the ability to automatically match previously selected path items on a certain level of the URL with the available ones, allowing to quickly parse through URLs with a similar structure.
A limitation of the current implementation is, that you can only keep one item selected at once in each url item area.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Edit | |||
---|---|---|---|
|
|||
|
|||
|
|||
|
|||
|
|||
Callbacks | |||
|
|||
Utilities | |||
|
|||
|
|||
|
|
|||
Configuration | |||
---|---|---|---|
t_element = FinderElement
|
|||
Signals | |||
selection_changed = ui.Signal()
|
|||
url_changed = ui.Signal()
|
|
|
|
|
|
|
|
Set or unset a filter. All items will be sent through the filter, and will be shown only if they pass. :param filter: Functor called f(url,t) and returns True for each item which may be shown in the Finder. The url is the full relative url leading to, but excluding the item t, whose visibility is being decided upon |
Set the provider to use :param provider: ``iFinderProvider`` compatible instance, or None If no provider is set, the instance will be blank |
Set the given url to be selected :param url: / separated relative url. The individual items must be available in the provider. :parm require_all_items: if False, the control will display as many items as possible. Otherwise it must display all given items, or raise ValueError :param allow_memory: if true, provider memory may be used to show the longest chosen url, being possibly more than you specify. Currently not implemented |
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 19 18:00:15 2011 | http://epydoc.sourceforge.net |