|
superclass: editor-canvas% |
constructor
(new hierarchical-list% [parent parent] [ [style style]]) → (is-a?/c hierarchical-list%)
parent :
(or/c (is-a?/c frame%) (is-a?/c dialog%) (is-a?/c panel%) (is-a?/c pane%))
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)
If the style 'transparent is passed, then the use-style-background method will be called with #t when editor snips are created as part of the hierarchical list, ensuring that the entire control is transparent.
method
(send a-hierarchical-list get-selected)
→
(or/c (is-a?/c hierarchical-list-item<%>) false/c)
method
→ (is-a?/c hierarchical-list-item<%>)
mixin :
((implementation?/c hierarchical-list-item<%>) . -> . (implementation?/c hierarchical-list-item<%>)) = (lambda (%) %)
The mixin argument is applied to a class implementing hierarchical-list-item<%>, and the resulting class is instantiated as the list item.
method
(send a-hierarchical-list set-no-sublists no-sublists?) → void?
no-sublists? : any/c
method
→ (is-a?/c hierarchical-list-compound-item<%>)
mixin :
((implementation?/c hierarchical-list-compound-item<%>) . -> . (implementation?/c hierarchical-list-compound-item<%>)) = (lambda (%) %)
The mixin argument is applied to a class implementing hierarchical-list-compound-item<%>, and the resulting class is instantiated as the sub-list.
method
(send a-hierarchical-list delete-item i) → void?
i : (is-a?/c hierarchical-list-item<%>)
method
→ (listof (is-a?/c hierarchical-list-item<%>))
method
(send a-hierarchical-list selectable) → boolean?
(send a-hierarchical-list selectable on?) → void? on? : any/c
method
i : (or/c (is-a?/c hierarchical-list-item<%>) false/c)
method
i : (is-a?/c hierarchical-list-item<%>)
method
(send a-hierarchical-list on-double-select i) → any
i : (is-a?/c hierarchical-list-item<%>)
method
(send a-hierarchical-list on-item-opened i) → any
i : (is-a?/c hierarchical-list-compound-item<%>)
method
(send a-hierarchical-list on-item-closed i) → any
i : (is-a?/c hierarchical-list-compound-item<%>)
method
(send a-hierarchical-list sort less-than-proc [ recur?]) → void?
less-than-proc :
((is-a?/c hierarchical-list-item<%>) (is-a?/c hierarchical-list-item<%>) . -> . any/c) recur? : any/c = #t
method
(send a-hierarchical-list can-do-edit-operation? op [ recursive?]) → boolean? op : symbol? recursive? : any/c = #t
method
(send a-hierarchical-list do-edit-operation op [ recursive?]) → void? op : symbol? recursive? : any/c = #t
method
(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-in) → void? (send a-hierarchical-list select-out) → void? (send a-hierarchical-list page-up) → void? (send a-hierarchical-list page-down) → void?
method
i : (or/c (is-a?/c hierarchical-list-item<%>) false/c)
The allow-deselect method controls whether i is allowed to be #f to deselect the currently selected item.
method
(send a-hierarchical-list click-select i) → void?
i : (or/c (is-a?/c hierarchical-list-item<%>) false/c)
method
(send a-hierarchical-list on-select-always) → boolean?
(send a-hierarchical-list on-select-always always?) → void? always? : any/c
The initial mode enables on-select calls always.
method
(send a-hierarchical-list on-click-always) → boolean?
(send a-hierarchical-list on-click-always always?) → void? always? : any/c
This is initially disabled, by default.
method
(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).