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::.
15 subsection:: Building and Changing the List
18 Set/get the global function to be performed in addition to the item functions: code:: { arg listObj; value } ::.
21 Set/get an link::Classes/Array:: of Associations including the labels and the item functions: code:: ['label' -> { arg listObj; value }, ] ::.
23 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' -> {}, ] ::.
26 Returns:: the item label of the current selection.
29 Returns:: the item function of the current selection.
34 An instance of link::Classes/String:: or link::Classes/Symbol::. The name of the list/menu item.
36 An instance of link::Classes/Function::.
39 Inserts a list/menu item at positiion of index.
41 An link::Classes/Integer::. The index where to insert an item.
43 An instance of link::Classes/String:: or link::Classes/Symbol::. The name of the list/menu item.
45 An instance of link::Classes/Function::.
47 method:: replaceItemAt
48 Replace a list/menu item at positiion of index.
50 An link::Classes/Integer::. The index where to insert an item.
52 An instance of link::Classes/String:: or link::Classes/Symbol::. The name of the list/menu item. Default is the current item label.
54 An instance of link::Classes/Function::. Default is the current item action.
57 Removes a list/menu item at positiion of index.
59 An link::Classes/Integer::. The index where to remove an item.
62 Removes both the view, label and the list/menu from the parent view.
64 subsection:: Accessing Values
67 Gets/sets the list/menu to the index at value. Does not perform the action.
69 An link::Classes/Integer::.
72 Sets the value and performs the action at the index value and the global action.
74 An link::Classes/Integer::.
77 Performs the action at the current index and the global action.
80 Called by init and overriden by all subclasses. This is where the class specific views are built.