Archived:Gridbox in Symbian Web Runtime (日本語)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
The article is believed to be still valid for the original topic scope.
The article is believed to be still valid for the original topic scope.
Article Metadata
Code Example
Source file: Media:gridbox.zip
Compatibility
Platform(s): S60 3rd Edition FP2
Article
Translated:
By fnjwikimng
Last edited: hamishwillee
(28 Sep 2012)
Contents |
目的
本ページにおけるJavaScriptコード例は、再利用もしくはより大きなプロジェクトに組み込んで使うことを意図しています。
概要
GridBoxは、JavaScript言語で書かれたGUI(グラフィカルユーザインタフェース)ライブラリで、S60 Web Runtimeプラットフォーム用に設計されています。本ライブラリは、S60 Web Widgetで、主にグリッドビュー上に画像、アイコン、テキスト情報を表示するために使われるものです。
GridBoxオブジェクトは、S60端末上にある5方向(5-way)ナビゲーションキーの keypress イベントによってコントロールされます。そのため、Widgetのブラウジングモードをカーソルモード(cursor mode)ではなく、タブモード(tabbed mode)にする必要があります。GridBoxオブジェクトは自動でそれを行わないので、本ライブラリを使うWidgetでは、ブラウジングモードをそれに応じて設定する必要があります。これは、(タブモードを必要とする)GridBoxとカーソルモードを必要とするその他のUIコンポーネントが混在する可能性を秘めています。
公開(Public)メソッド
本ライブラリでは、以下の公開メソッドが使われています。これらメソッドの詳しい記述については、アプリケーション例に含まれる Gridbox_Library_Ref.pdfファイルをご覧ください。
Constructor GridBox (Element [div] viewElement,
Integer maxRow,
Integer maxCol,
Integer maxHeight,
Integer maxWidth,
Boolean searchEnabled,
String mode)
Void activateGridBox ()
Void deactivateGridBox ()
Void releaseResources ()
Element [text input] getSearchElement ()
Void setResourceLocation (String path)
Void setSize (Integer maxRow, Integer maxCol, Integer maxHeight, Integer maxWidth)
Void setDisplayStyle (String unselectedStyle, String selectedStyle)
String getSelectedItem ()
Void addItem (String item)
Void createList (Array newItems)
Void removeItem ()
Void filter (String argument)
Callback function onCenterNaviKeyPress ()
Callback function onItemSelected ()


