Namespaces
Variants
Actions
(Difference between revisions)

Archived:Gridbox for Symbian Web Runtime

Jump to: navigation, search
m (Hamishwillee - Adding missing translation link)
m (Hamishwillee - Tidy wiki text)
 
Line 1: Line 1:
[[Category:S60 3rd Edition FP2]][[Category:Symbian Web Runtime]][[Category:Code Examples]][[Category:JavaScript]][[Category:Code Snippet]]
+
[[Category:S60 3rd Edition FP2]][[Category:Symbian Web Runtime]][[Category:Code Examples]][[Category:JavaScript]][[Category:UI]]
 
{{Archived|timestamp=20120313130702|user=roy.debjit| }}
 
{{Archived|timestamp=20120313130702|user=roy.debjit| }}
 
+
{{Abstract|This example Javascript code is intended for re-use and incorporation into larger projects.}}
{{ArticleMetaData <!-- v1.2 -->
+
{{ArticleMetaData <!-- v1.2 -->
 
|sourcecode= [[Media:gridbox.zip]]
 
|sourcecode= [[Media:gridbox.zip]]
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
Line 24: Line 24:
 
|author= [[User:Sellis]]
 
|author= [[User:Sellis]]
 
<!-- The following are not in current metadata -->
 
<!-- The following are not in current metadata -->
|subcategory=
 
 
|id= CS000940
 
|id= CS000940
 
}}
 
}}
 
    
 
    
==Purpose==
 
{{Abstract|This example Javascript code is intended for re-use and incorporation into larger projects.}}
 
 
 
==Overview==
 
==Overview==
  
Line 41: Line 37:
 
==Public methods==
 
==Public methods==
  
The following public methods are used in this libary. For detailed descriptions of the methods, see the Gridbox_Library_Ref.pdf included in the example application.
+
The following public methods are used in this library. For detailed descriptions of the methods, see the Gridbox_Library_Ref.pdf included in the example application.
 
+
  
 +
<code javascript>
 
   Constructor GridBox (Element [div] viewElement,
 
   Constructor GridBox (Element [div] viewElement,
 
                         Integer maxRow,
 
                         Integer maxRow,
Line 79: Line 75:
 
    
 
    
 
   Callback function onItemSelected ()
 
   Callback function onItemSelected ()
 
+
</code>
  
 
==Example application==
 
==Example application==

Latest revision as of 07:12, 28 September 2012

Archived.png
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}}.

This example Javascript code is intended for re-use and incorporation into larger projects.

MultiMediaTile.png
Article Metadata

Code Example
Source file: Media:gridbox.zip

Compatibility
Platform(s): S60 3rd Edition, FP2

Article
Created: sellis (14 Feb 2008)
Last edited: hamishwillee (28 Sep 2012)

Overview

GridBox is a graphical user interface library, written in JavaScript language and designed for the S60 Web Runtime platform. The library can be used mainly in Web widgets for S60 to display images, icons, or even text information on a grid view.

GridBox 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). GridBox, however, does not enforce this requirement automatically. Widgets using the library, need to set the browsing mode accordingly. This gives the widgets a chance to mixed-use GridBox and other UI components that may require the “cursor” mode.

Grid view demo.jpg

Public methods

The following public methods are used in this library. For detailed descriptions of the methods, see the Gridbox_Library_Ref.pdf included in the example application.

  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 ()

Example application

File:Gridbox.zip

This page was last modified on 28 September 2012, at 07:12.
567 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved