1Prima::ExtLists(3)    User Contributed Perl Documentation   Prima::ExtLists(3)
2
3
4

NAME

6       Prima::ExtLists - extended functionality for list boxes
7

SYNOPSIS

9               use Prima::ExtLists;
10
11               my $vec = '';
12               vec( $vec, 0, 8) = 0x55;
13               Prima::CheckList-> new(
14                       items  => [1..10],
15                       vector => $vec,
16               );
17

DESCRIPTION

19       The module is intended to be a collection of list boxes with particular
20       enhancements. Currently the only package is contained is
21       "Prima::CheckList" class.
22

Prima::CheckList

24       Provides a list box, where each item is equipped with a check box.  The
25       check box state can interactively be toggled by the enter key; also the
26       list box reacts differently by click and double click.
27
28   Properties
29       button INDEX, STATE
30           Runtime only. Sets INDEXth button STATE to 0 or 1.  If STATE is -1,
31           the button state is toggled.
32
33           Returns the new state of the button.
34
35       vector VEC
36           VEC is a vector scalar, where each bit corresponds to the check
37           state of each list box item.
38
39           See also: "vec" in perlfunc.
40
41   Methods
42       clear_all_buttons
43           Sets all buttons to state 0
44
45       set_all_buttons
46           Sets all buttons to state 1
47

AUTHOR

49       Dmitry Karasik, <dmitry@karasik.eu.org>.
50

SEE ALSO

52       Prima, Prima::Lists, examples/extlist.pl
53
54
55
56perl v5.28.0                      2017-02-28                Prima::ExtLists(3)
Impressum