9.3 hierarchical-list-compound-item<%>

► |  | Mr Lib: Extra GUI Libraries

1 | Aligned Pasteboard
2 | Arrow Toggle Snip
3 | Bitmap Label
4 | Cache-image Snip
5 | Close Icon
6 | Expandable Snip
7 | GIF and Animated GIF Writing
8 | Graphs
9 | Hierarchical List Control
10 | Include Bitmap
11 | Interactive Value Port
12 | Name Message
13 | Path Dialog
14 | Plot
15 | Switchable Button
16 | Image Core
17 | Matrix Snip
18 | Snip Canvases
19 | Syntax Browser
20 | Te X Table
21 | Terminal Window
22 | White on Black Panel Predicate
23 | Acknowledgments
| Index

▼ | 9 | Hierarchical List Control

9.1 | hierarchical-list%
9.2 | hierarchical-list-item<%>
9.3 | hierarchical-list-compound-item<%>
9.4 | Snips in a hierarchical-list% Instance

On this page:

new-item
set-no-sublists
new-list
delete-item
get-items
open
close
toggle-open/ closed
is-open?
get-arrow-snip

Inherited methods:
from hierarchical-list-item<%>
click-select
get-allow-selection?
get-clickable-snip
get-editor
get-parent
is-selected?
select
set-allow-selection
user-data

Racket
top contents ← prev up next →

interface hierarchical-list-compound-item<%> : interface?
implements: | hierarchical-list-item<%>

Instantiate this interface via new-list.

> method (send a-hierarchical-list-compound-item new-item [mixin])
> → (is-a?/c hierarchical-list-item<%>)
> | mixin |  | : |  |
> ((implementation?/c hierarchical-list-item<%>)
> . -> .
> (implementation?/c hierarchical-list-item<%>))
> |  |  | = |  | (lambda (%) %)

Like new-item in hierarchical-list%.

> method (send a-hierarchical-list-compound-item set-no-sublists no-sublists?)
> → void?
> no-sublists? : any/c

Like set-no-sublists in hierarchical-list%.

> method (send a-hierarchical-list-compound-item new-list [mixin])
> → (is-a?/c hierarchical-list-compound-item<%>)
> | mixin |  | : |  |
> ((implementation?/c hierarchical-list-compound-item<%>)
> . -> .
> (implementation?/c hierarchical-list-compound-item<%>))
> |  |  | = |  | (lambda (%) %)

Like new-list in hierarchical-list%.

> method (send a-hierarchical-list-compound-item delete-item i) → void?
> i : (is-a?/c hierarchical-list-item<%>)

Deletes immediate item or sub-list i from the sub-list.

> method (send a-hierarchical-list-compound-item get-items)
> → (listof (is-a?/c hierarchical-list-item<%>))

Returns a list of all immediate items in the sub-list.

> method (send a-hierarchical-list-compound-item open) → void?
> (send a-hierarchical-list-compound-item close) → void?
> (send a-hierarchical-list-compound-item toggle-open/closed)
> → void?

Shows or hides the items of this sub-list.

> method (send a-hierarchical-list-compound-item is-open?) → boolean?

Reports whether the items of this sub-list are visible.

> method (send a-hierarchical-list-compound-item get-arrow-snip)
> → (is-a?/c snip%)

Returns a snip that corresponds to the arrow to hide/show items of the sub-list. The result is intended for use by automatic test suites.
top contents ← prev up next →