2 summary:: An abstract superclass for EZListView and EZPopUpMenu
3 categories:: GUI>EZ-GUI
4 related:: Classes/EZListView, Classes/EZPopUpMenu
7 Users will not normally directly create instances of EZLists, but only use it through its subclasses. It provides the basic mechanisms for link::Classes/EZListView:: and link::Classes/EZPopUpMenu::.
16 argument:: globalAction
25 subsection:: Building and Changing the List
28 Set/get the global function to be performed in addition to the item functions: code:: { arg listObj; value } ::.
31 Set/get an link::Classes/Array:: of Associations including the labels and the item functions: code:: ['label' -> { arg listObj; value }, ] ::.
33 In menus, the OS X graphics system gives special meanings to some characters. See link::Classes/PopUpMenu:: ; Or and link::Classes/Array:: link::Classes/Symbol::s (if you are only using code::globalAction::). link::Classes/Array::s of link::Classes/Symbol::s will get converted into and array of link::Classes/Association::s with and empty link::Classes/Function:: code:: ['label' -> {}, ] ::.
36 Returns:: the item label of the current selection.
39 Returns:: the item function of the current selection.
44 An instance of link::Classes/String:: or link::Classes/Symbol::. The name of the list/menu item.
46 An instance of link::Classes/Function::.
49 Inserts a list/menu item at positiion of index.
51 An link::Classes/Integer::. The index where to insert an item.
53 An instance of link::Classes/String:: or link::Classes/Symbol::. The name of the list/menu item.
55 An instance of link::Classes/Function::.
57 method:: replaceItemAt
58 Replace a list/menu item at positiion of index.
60 An link::Classes/Integer::. The index where to insert an item.
62 An instance of link::Classes/String:: or link::Classes/Symbol::. The name of the list/menu item. Default is the current item label.
64 An instance of link::Classes/Function::. Default is the current item action.
67 Removes a list/menu item at positiion of index.
69 An link::Classes/Integer::. The index where to remove an item.
72 Removes both the view, label and the list/menu from the parent view.
74 subsection:: Accessing Values
77 Gets/sets the list/menu to the index at value. Does not perform the action.
79 An link::Classes/Integer::.
82 Sets the value and performs the action at the index value and the global action.
84 An link::Classes/Integer::.
87 Performs the action at the current index and the global action.
90 Called by init and overriden by all subclasses. This is where the class specific views are built.