Version: 4.1.3
Creates a hierarchical-list control.
|
→ (is-a?/c hierarchical-list%) |
|
| style | | : | | (listof (one-of/c 'no-border 'control-border 'combo | 'no-hscroll 'no-vscroll | 'hide-hscroll 'hide-vscroll | 'auto-vscroll 'auto-hscroll | 'resize-corner 'deleted 'transparent)) |
| | | | = | | '(no-hscroll) |
|
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.
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.
Deletes immediate item or sub-list i from the list.
Returns a list of all immediate items in the list control.
Reports whether items are selectable, or enables/disables item
selection.
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<%>.
Called for a double-click on i.
Called when the arrow for i is turned down.
Called when the arrow for i is turned up.
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.
Like can-do-edit-operation? in editor<%>. The default
implementation always returns #f.
Like do-edit-operation in editor<%>. The default implementation
does nothing.
Move the selection, scroll, and call on-select.
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.
Like select, but always calls
on-select.
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.
Gets/sets whether the on-click method is
called in response to all mouse clicks (as opposed to only when
selected). on-click is called before
on-select, if it is called (if the click
results in selction).
This is initially disabled, by default.
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.