{"size": 1753, "ext": "scrbl", "max_stars_repo_path": "gui-doc/mrlib/scribblings/hierlist/compound-item.scrbl", "max_stars_repo_name": "jjsimpso/gui", "max_stars_repo_stars_event_min_datetime": "2015-03-17T22:11:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-12T15:09:34.000Z", "max_issues_repo_path": "gui-doc/mrlib/scribblings/hierlist/compound-item.scrbl", "max_issues_repo_name": "jjsimpso/gui", "max_issues_repo_issues_event_min_datetime": "2015-01-09T15:53:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T16:21:29.000Z", "max_forks_repo_path": "gui-doc/mrlib/scribblings/hierlist/compound-item.scrbl", "max_forks_repo_name": "jjsimpso/gui", "max_forks_repo_forks_event_min_datetime": "2015-01-08T13:03:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-26T21:49:09.000Z"}
{"max_stars_count": 65, "max_issues_count": 231, "max_forks_count": 89, "avg_line_length": 28.737704918, "max_line_length": 84, "alphanum_fraction": 0.6046776954}
#lang scribble/doc
@(require "../common.rkt" (for-label mrlib/hierlist))

@definterface/title[hierarchical-list-compound-item<%>
                    (hierarchical-list-item<%>)]{

Instantiate this interface via @method[hierarchical-list% new-list].


@defmethod[(new-item [mixin ((implementation?/c hierarchical-list-item<%>)
                             . -> .
                             (implementation?/c hierarchical-list-item<%>))
                             (lambda (%) %)])
           (is-a?/c hierarchical-list-item<%>)]{

Like @xmethod[hierarchical-list% new-item].}


@defmethod[(set-no-sublists [no-sublists? any/c]) void?]{

Like @xmethod[hierarchical-list% set-no-sublists].}


@defmethod[(new-list [mixin ((implementation?/c hierarchical-list-compound-item<%>)
                             . -> .
                             (implementation?/c hierarchical-list-compound-item<%>))
                             (lambda (%) %)])
           (is-a?/c hierarchical-list-compound-item<%>)]{

Like @xmethod[hierarchical-list% new-list].}


@defmethod[(delete-item [i (is-a?/c hierarchical-list-item<%>)]) void?]{

Deletes immediate item or sub-list @racket[i] from the sub-list.}


@defmethod[(get-items) (listof (is-a?/c hierarchical-list-item<%>))]{

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


@defmethod*[([(open) void?]
             [(close) void?]
             [(toggle-open/closed) void?])]{

Shows or hides the items of this sub-list.}


@defmethod[(is-open?) boolean?]{

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


@defmethod[(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.}

}
