Listbox for Symbian Web Runtime (日本語)
Article Metadata
Code Example
Source file: Media:Listbox.zip
Compatibility
Platform(s): S60 3rd Edition FP2
Article
Translated:
By fnjwikimng
Last edited: hamishwillee
(16 Jul 2012)
Contents |
目的
本ページにおけるJavaScriptコード例は、再利用もしくはより大きなプロジェクトに組み込んで使うことを意図しています。
概要
ListBoxは、GUI(グラフィカルユーザインタフェース)ライブラリで、S60 Web Runtimeプラットフォーム用に設計されています。本ライブラリは、S60 Web Widgetで、主にリストビュー上にテキスト情報を表示するために使われるものです。
ListBoxオブジェクトは、S60端末上にある5方向(5-way)ナビゲーションキーの keypress イベントによってコントロールされます。そのため、Widgetのブラウジングモードをカーソルモード(cursor mode)ではなく、タブモード(tabbed mode)にする必要があります。ListBoxオブジェクトは自動でそれを行わないので、本ライブラリを使うWidgetでは、ブラウジングモードをそれに応じて設定する必要があります。これは、(タブモードを必要とする)ListBoxとカーソルモードを必要とするその他のUIコンポーネントが混在する可能性を秘めています。
公開(Public)メソッド
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 ()



(no comments yet)