CS000940 - Web Runtime Gridbox Widget(日本語)

原文(英語): CS000940 - WRT Gridbox Widget

Knowledge Base Home

ID CS000940
作成日付 2008年5月2日

プラットフォーム S60 3rd Edition FP2
テスト済み端末  

カテゴリ(Category) S60 Web Runtime
サブカテゴリ(Subcategory)  

使用API  
使用クラス  

使用メソッド  
   

目的
本ページにおける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 ()

アプリケーション例
Image:Gridbox.zip



Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.

Post Info

This entry was posted on Wednesday, July 2nd, 2008 and is filed under Blogroll.

You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.



Previous Post: Groups seek drilling halt near sage grouse habitat »
Next Post: Google wins source code ruling against Viacom »

Read More

Related Reading:



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

You must be logged in to post a comment.

edwan