Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

gadget-items

Generic function

Summary

Returns the items for the specified gadget.

Signature

gadget-items gadget => items

Arguments

gadget
An instance of type <collection-gadget>.

Values

items
An instance of type <sequence>. Default value: #[].

Library

duim-gadgets

Module

duim-gadgets

Description

Returns the items for gadget. The items of any collection gadget is the collection of items that the collection gadget contains. In a list box, for example, the items are the list items themselves.

Example

The following code creates a list box whose items are the lower-cased equivalents of the symbols stated. Note that the label key for a gadget is a function that computes the label for the items in that gadget.

*gadget* := contain
              (make(<list-box>, 
                    items: #(#"One", #"Two", #"Three"),
                    label-key: 
                      method (symbol) 
                       as-lowercase
                         (as(<string>, symbol)) end));

You can return the items in the gadget as follows:

gadget-items(*g*);

This returns the symbol: #(#"one", #"two", #"three").

See also

gadget-items-setter, page 567

gadget-label-key, page 570

gadget-selection, page 578

gadget-value-key, page 589


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index