1Prima::DetailedOutline(U3s)er Contributed Perl DocumentatPiroinma::DetailedOutline(3)
2
3
4
6 Prima::DetailedOutline - a multi-column outline viewer with controlling
7 header widget.
8
10 use Prima qw(DetailedOutline Application);
11
12 my $l = Prima::DetailedOutline->new(
13 columns => 2,
14 headers => [ 'Column 1', 'Column 2' ],
15 size => [200, 100],
16 items => [
17 [ ['Item 1, Col 1', 'Item 1, Col 2'], [
18 [ ['Item 1-1, Col 1', 'Item 1-1, Col 2'] ],
19 [ ['Item 1-2, Col 1', 'Item 1-2, Col 2'], [
20 [ ['Item 1-2-1, Col 1', 'Item 1-2-1, Col 2'] ],
21 ] ],
22 ] ],
23 [ ['Item 2, Col 1', 'Item 2, Col 2'], [
24 [ ['Item 2-1, Col 1', 'Item 2-1, Col 2'] ],
25 ] ],
26 ],
27 );
28 $l-> sort(1);
29 run Prima;
30
32 Prima::DetailedOutline combines the functionality of
33 Prima::OutlineViewer and Prima::DetailedList.
34
36 This class inherits all the properties, methods, and events of
37 Prima::OutlineViewer (primary ancestor) and Prima::DetailedList
38 (secondary ancestor). One new property is introduced, and one property
39 is different enough to warrant mention.
40
41 Methods
42 items ARRAY
43 Each item is represented by an arrayref with either one or two
44 elements. The first element is the item data, an arrayref of text
45 strings to display. The second element, if present, is an arrayref
46 of child items.
47
48 When using the node functionality inherited from
49 Prima::OutlineViewer, the item data (that is, the arrayref of text
50 strings) is the first element of the node.
51
52 autoRecalc BOOLEAN
53 If this is set to a true value, the column widths will be
54 automatically recalculated (via "autowidths") whenever a node is
55 expanded or collapsed.
56
58 Copyright 2003 Teo Sankaro
59
60 This program is distributed under the BSD License. (Although a credit
61 would be nice.)
62
64 Teo Sankaro, <teo_sankaro@hotmail.com>.
65
67 Prima, Prima::Outlines, Prima::DetailedList
68
69
70
71perl v5.32.0 2020-07-28 Prima::DetailedOutline(3)