Archived:Listbox for Symbian Web Runtime
ListBox is controlled by the “keypress” event of the five-way navigation key (on S60 devices). Therefore, it requires the browsing mode of a widget to be set to “tabbed” mode (vs. “cursor” mode). ListBox, however, does not enforce this requirement automatically. Widgets which use the library will need to set the browsing mode accordingly. This gives the widgets a chance to mixed-use ListBox and other UI components that may require the “cursor” mode.
Constructor ListBox (Element [div] viewElement, Integer maxVisibleLen, Boolean sort) Void activateListBox () Void deactivateListBox () Void releaseResources () Void setMaxVisible (Integer maxVisibleLen) Void setDisplayStyle (String unselectedStyle, String selectedStyle) String getSelectedItem () Void addItem (String item) Void createList (Array newItems) Void removeItem () Void filter (String argument) Callback function onRightNaviKeyPress() Callback function onLeftNaviKeyPress() Callback function onCenterNaviKeyPress () Callback function onItemSelected ()