Term::Stool::DrUserwContributed Perl DocuTerm::Stool::DropDown(n) NAME Term::Stool::DropDown - drop down list widget DESCRIPTION This is a drop down list widget. Term::Stool::Container is the parent of this class. FIELDS list A List widget that is displayed when the widget is dropped down. It is created automatically when the DropDown widget is created unless you pass one into the new() method (doing so is a good idea, generally). This doesn't actually have to be a list widget; it could be any sort of widget that has a value method. That would be pretty weird though, in general. The widget will be hidden when it should not be dis- played. selcolor This is the color to draw the actual widget in. Note that the activecolor is the color used for the drop down widget. METHODS init Sets up colors, and sets the fields above to reason- able defaults. display Draw the widget. resize Resize the attached list as well. activate Unlike most containers, this widget can be activated directly. deactivate When deactivated, the list is automatically retracted. dropdown Drop the list down. retract Retract the list. keypress Catches space and enter, and uses them to toggle list expansion. Passes all other keys on to the list if it is dropped down. If the list doesn't handle them, pass them on to SUPER. move_focus Though this object is a container, it doesn't handle focusing like most containers do: it can be focused, and the stuff inside it cannot be directly focused. Therefore, when asked to move focus, it immediatly passes the request to its container. AUTHOR Joey Hess <joey@kitenet.net> 2001-05-23 perl v5.6.1 Term::Stool::DropDown(n)