superclass: editor-canvas% |
Creates a hierarchical-list control.
| |||||||||||||||||
| |||||||||||||||||
|
Creates the control.
|
Returns the currently selected item, if any.
|
Creates and returns a new (empty) item in the list. See hierarchical-list-item<%> for methods to fill in the item’s label.
The mixin argument is applied to a class implementing hierarchical-list-item<%>, and the resulting class is instantiated as the list item.
(send a-hierarchical-list set-no-sublists no-sublists?) → void? |
no-sublists? : any/c |
Enables/disables sublist mode. When sublists are disabled, space to the left of the list items (that would normally align non-list items with list items) is omitted. This method can be called only when the list is empty.
|
Creates and returns a new (empty) sub-list in the list. See hierarchical-list-compound-item<%> for methods to fill in the item’s label and content.
The mixin argument is applied to a class implementing hierarchical-list-compound-item<%>, and the resulting class is instantiated as the sub-list.
(send a-hierarchical-list delete-item i) → void? |
Deletes immediate item or sub-list i from the list.
Returns a list of all immediate items in the list control.
(send a-hierarchical-list selectable) → boolean? |
(send a-hierarchical-list selectable on?) → void? |
on? : any/c |
Reports whether items are selectable, or enables/disables item selection.
i : (or/c (is-a?/c hierarchical-list-item<%>) false/c) |
Called for new select of i, where i is #f if no item is now selected.
Called when an item is clicked on, but selection for that item is not allowed. Selection can be disallowed by selectable or set-allow-selection in hierarchical-list-item<%>.
(send a-hierarchical-list on-double-select i) → any |
Called for a double-click on i.
(send a-hierarchical-list on-item-opened i) → any |
Called when the arrow for i is turned down.
(send a-hierarchical-list on-item-closed i) → any |
Called when the arrow for i is turned up.
| ||||||||||||||
| ||||||||||||||
recur? : any/c = #t |
Sorts items in the list by calling less-than-proc on pairs of items. If recur? is true, items in sub-lists are sorted recursively.
| ||||||||
→ boolean? | ||||||||
op : symbol? | ||||||||
recursive? : any/c = #t |
Like can-do-edit-operation? in editor<%>. The default implementation always returns #f.
| ||||||||||||||
op : symbol? | ||||||||||||||
recursive? : any/c = #t |
Like do-edit-operation in editor<%>. The default implementation does nothing.
(send a-hierarchical-list select-prev) → void? |
(send a-hierarchical-list select-next) → void? |
(send a-hierarchical-list select-first) → void? |
(send a-hierarchical-list select-last) → void? |
(send a-hierarchical-list select-out) → void? |
Move the selection, scroll, and call on-select.
i : (or/c (is-a?/c hierarchical-list-item<%>) false/c) |
Moves the selection, scrolls as necessary to show it, and calls on-select unless disabled via on-select-always.
The allow-deselect method controls whether i is allowed to be #f to deselect the currently selected item.
(send a-hierarchical-list click-select i) → void? |
i : (or/c (is-a?/c hierarchical-list-item<%>) false/c) |
Like select, but always calls on-select.
(send a-hierarchical-list on-select-always) → boolean? |
(send a-hierarchical-list on-select-always always?) → void? |
always? : any/c |
Gets/sets whether the on-select method is called in response to select (as opposed to click-select).
The initial mode enables on-select calls always.
(send a-hierarchical-list allow-deselect) → boolean? |
(send a-hierarchical-list allow-deselect allow?) → void? |
allow? : any/c |
Gets/sets whether the on-select can be called with a #f argument to deselect the current item (leaving none selected).
The initial mode does not allow deselection.