class documentation
The Resources tree conmponent view for the ACME text UI.
| Method | __init__ |
Initialize the view. |
| Method | on |
Handle the show event. |
| Method | on |
Handle the expanded event. |
| Method | on |
Handle the highlighted event. |
| Method | on |
Handle the hover event. |
| Method | refresh |
Refresh the current node. |
| Method | refresh |
Refresh the parent node of the current node. |
| Method | refresh |
Refresh a node. |
| Class Variable | dispatcher |
Injected Dispatcher instance. |
| Instance Variable | auto |
Whether to auto expand the tree. Inherited from TextualTree. |
| Instance Variable | parent |
The parent container of the tree view. |
| Method | _build |
Build the children of a node. |
| Method | _retrieve |
Retrieve the children of a resource and return a sorted list of tuples. |
| Method | _update |
Update the resource view. |
| Method | _update |
Update the tree view. |
| Method | _update |
Update the resource view with a type section. |
| Class Variable | _virtual |
Dictionary of virtual resources and their parameters. |
| Instance Variable | _app |
The application. |
Retrieve the children of a resource and return a sorted list of tuples.
Each tuple contains a resource and a boolean indicating if the resource has children itself.
Sort order is: virtual and instance resources first, then by type and name.
| Parameters | |
ri:str | The resource id of the parent resource. |
| Returns | |
list[ | A sorted list of tuples (resource, hasChildren). |