Prima::Lists 1.20 review

Download
by rbytes.net on

Prima::Lists is a Perl module for user-selectable item list widgets. The module provides classes for several abstraction layers of

License: Perl Artistic License
File size: 1389K
Developer: Dmitry Karasik
0 stars award from rbytes.net

Prima::Lists is a Perl module for user-selectable item list widgets.

The module provides classes for several abstraction layers of item representation. The hierarchy of classes is as follows:

AbstractListViewer
AbstractListBox
ListViewer
ProtectedListBox
ListBox

The root class, Prima::AbstractListViewer, provides common interface, while by itself it is not directly usable. The main differences between classes are centered around the way the item list is stored. The simplest organization of a text-only item list, provided by Prima::ListBox, stores an array of text scalars in a widget.

More elaborated storage and representation types are not realized, and the programmer is urged to use the more abstract classes to derive own mechanisms. For example, for a list of items that contain text strings and icons see "Prima::DirectoryListBox" in Prima::FileDialog.

To organize an item storage, different from Prima::ListBox, it is usually enough to overload either the Stringify, MeasureItem, and DrawItem events, or their method counterparts: get_item_text, get_item_width, and draw_items.

Requirements:
Perl

Prima::Lists 1.20 keywords