From b4c0509f7794408e16985bad70c937611cc41743 Mon Sep 17 00:00:00 2001 From: hallgren Date: Tue, 9 Aug 2011 15:57:40 +0000 Subject: [PATCH] minibar: more documentation (in minibar-api.html) --- .../javascript/minibar/minibar-api.html | 230 ++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 src/runtime/javascript/minibar/minibar-api.html diff --git a/src/runtime/javascript/minibar/minibar-api.html b/src/runtime/javascript/minibar/minibar-api.html new file mode 100644 index 000000000..758080815 --- /dev/null +++ b/src/runtime/javascript/minibar/minibar-api.html @@ -0,0 +1,230 @@ + + + +GF web services API examples + + + + + +

Minibar API

+ +The minibar is structured as three object: + + + +They are described below. + +

The Minibar object

+ +

+This is the complete Minibar web app. It is defined in +minibar.js. It also uses the Input +and Translations objects, and some auxiliary functions defined +in minibar_support.js +and support.js, so to use it in an +HTML file, you would normally include at least the following: + +

+<script type="text/JavaScript" src="minibar.js"></script>
+<script type="text/JavaScript" src="minibar_input.js"></script>
+<script type="text/JavaScript" src="minibar_translations.js"></script>
+<script type="text/JavaScript" src="minibar_support.js"></script>
+<script type="text/JavaScript" src="support.js"></script>
+
+ +

+For an example, see minibar.html. + +

Constructor

+ +var minibar=new Minibar(server,options,target) + + + +

Methods

+There are several internal methods, but since this is a self-contained +web app, there is usually no need to call any methods from outside. + +

The Input object

+ +This object handles user input. Text can be entered by typing or by clicking +on the "refrigerator magnets". +

+It is defined in +minibar_input.js. +It also uses some auxiliary functions defined +in minibar_support.js +and support.js, so to use it in an +HTML file, you would normally include at least the following: + +

+<script type="text/JavaScript" src="minibar_input.js"></script>
+<script type="text/JavaScript" src="minibar_support.js"></script>
+<script type="text/JavaScript" src="support.js"></script>
+
+ +

Constructor

+ +var input=new Input(server,options,translations) + + + +

Properties and user interface

+ +The input object created by the Inputconstructor +contains two field that the caller should add to the user interface: + + +

Methods

+ + + +

The Translations object

+ +This object display translations. It is defined in +minibar_translations.js. +It also uses some auxiliary functions defined +in minibar_support.js +and support.js, so to use it in an +HTML file, you would normally include at least the following: + +
+<script type="text/JavaScript" src="minibar_input.js"></script>
+<script type="text/JavaScript" src="minibar_support.js"></script>
+<script type="text/JavaScript" src="support.js"></script>
+
+ +

Constructor

+var translations=new Translations(server,options) + + +

Properties and user interface

+ + +The translations object created by the +Translations constructor contains two field that the caller +should add to the user interface: + + +

Methods

+ + + +
+
+ +HTML Last modified: Tue Aug 9 17:55:19 CEST 2011 + +
+ +
+TH +