Prima::Lists 1.20 reviewDownload
Prima::Lists is a Perl module for user-selectable item list widgets. The module provides classes for several abstraction layers of
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:
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.
Prima::Lists 1.20 keywords