Prima::DetailedOutline - a multi-column outline viewer with controlling header widget. |
Prima::DetailedOutline - a multi-column outline viewer with controlling header widget.
use Prima::DetailedOutline;
my $l = $w-> insert( 'Prima::DetailedList', columns => 2, headers => [ 'Column 1', 'Column 2' ], items => [ [ ['Item 1, Col 1', 'Item 1, Col 2'], [ [ ['Item 1-1, Col 1', 'Item 1-1, Col 2'] ], [ ['Item 1-2, Col 1', 'Item 1-2, Col 2'], [ [ ['Item 1-2-1, Col 1', 'Item 1-2-1, Col 2'] ], ] ], ] ], [ ['Item 2, Col 1', 'Item 2, Col 2'], [ [ ['Item 2-1, Col 1', 'Item 2-1, Col 2'] ], ] ], ], ); $l-> sort(1);
Prima::DetailedOutline combines the functionality of Prima::OutlineViewer and Prima::DetailedList.
This class inherits all the properties, methods, and events of Prima::OutlineViewer (primary ancestor) and Prima::DetailedList (secondary ancestor). One new property is introduced, and one property is different enough to warrant mention.
When using the node functionality inherited from Prima::OutlineViewer, the item data (that is, the arrayref of text strings) is the first element of the node.
autowidths
) whenever a node is expanded or collapsed.
Copyright 2003 Teo Sankaro
This program is distributed under the BSD License. (Although a credit would be nice.)
Teo Sankaro, <teo_sankaro@hotmail.com>.
Prima, the Prima::Outlines manpage, the Prima::DetailedList manpage
Prima::DetailedOutline - a multi-column outline viewer with controlling header widget. |