Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 addBody
 addClassName
 addContent
 addPreference
 appendText
 Array
B
 body
C
 callback
 camelCase
 Class manipulation methods
 clearDelayed, Environment
 clearPeriodical
 contains
 Content management
 Content manipulation methods
 Core
 createElement
D
 data
 Data
 Data storage
 debugMode
 delays, Environment
 detect
 dir
 DOM manipulation methods
E
 Element
 empty
 environment
 Environment
 equals
 escapeRegExp
 Events manipulation methods
 every
 extend
F
 filter
 forEach
 format
 Functions
G
 getBool
 getChildren
 getDimensions
 getFeed
 getInt
 getJson
 getModule
 getParent
 getPreference
 getText
 getTitle
 getValue
 getXml
H
 hasClassName
 height, Environment
 hide
 html, Environment
I
 id
 indexOf
 init, Environment
 initPreferences
 inject
 isEmail
L
 lang
 launch
 launchModule, Environment
 loaded, Environment
 locale
 log
M
 makeClickable
 map
 merge
 mergePreferences
 metas
 methods
 Methods
N
 normalize
O
 openURL
 Others
P
 parseRelativeTime
 periodicals
 preferences
 Preferences management
 Properties
R
 readOnly
 registered, Environment
 registerModule, Environment
 remove
 removeClassName
 request
addBody: function(content)
Adds contents to the existing body of the Widget.
addClassName: function(className)
Adds a CSS class to element.
addContent: function(content)
addPreference: function(preference)
Adds a single preference to the existing preferences of the widget.
appendText: function(text)
Adds a new text node at the end of the element’s existing content
Extensions to the native JavaScript Array class.
callback: function(name,
args,
bind)
Executes the callback method associated with the given callback name (key).
callback: function(name,
args,
bind)
Fire Environment.key then the callback method associated with the given callback name (key).
camelCase: function()
Not documented
clearDelayed: function(name)
Unregister a delayed event previously registered with setDelayed
clearPeriodical: function(name)
Unregister a periodical event previously registered with setPeriodical
clearPeriodical: function(name)
Unregister a periodical event previously registered with setPeriodical
contains: function(string,
separator)
Not documented
UWA Runtime Core.
createElement: function(tagName,
options)
Creates a new element according to the provided “tagName”.
The Data class provides abstract methods to access external resources using Ajax (XMLHttpRequest) requests.
Boolean: activates or desactivates the debug mode for the widget.
Object: Stores environment’s delayed events.
detect: function(iterator)
Not documented
Document Object Model extensions.
empty: function()
Empty an element of all its children.
The Environment Base class provide base functions to run an UWA Widget Execution Environnement.
equals: function(compare)
Test wether the array equals to the one passed as parameter.
escapeRegExp: function()
Returns string with escaped regular expression characters
every: function(fn,
bind)
Tests whether all elements in the array pass the test implemented by the provided function.
UWA.extend = function(original,
extended)
Copies all the properties from the second passed object to the first passed Object.
filter: function(fn,
bind)
Creates a new array with all elements that pass the test implemented by the provided function.
forEach: function(fn,
bind)
Executes a provided function once per array element.
format : function()
Not documented
getBool: function(name)
Gets the Boolean value of the given preference.
getChildren: function()
return a collection of the element’s child nodes
getDimensions: function()
Finds the computed width and height of element and returns them as key/value pairs of an object.
getFeed: function(url,
callback)
Gets the content of a feed, in a JSON format.
getInt: function(name)
Gets the Integer value of the given preference.
getJson: function(url,
callback)
This method is used to get the content of an external JSON data source.
getModule: function(url,
callback,
id)
This method is used to get the content of an external widget, in XML format.
getModule: function()
Returns the widget (= module) currently registered in the Environment.
getParent: function()
return a reference to the element’s parent node
getPreference: function(name)
Get a preference with its name.
getText: function(url,
callback)
This method is used to get the content of an external data source.
getTitle: function()
Get the title of the Widget.
getValue: function(name)
Gets the value of the given preference.
getXml: function(url,
callback)
This method is used to get the content of an external XML data source.
hasClassName: function(className)
Checks whether element has the given CSS className.
Integer: The current height of the widget in pixel.
hide: function()
Hides and returns element.
Object: HTML Dom elements related to this environnement
indexOf: function(item,
from)
Returns the first index at which a given element can be found in the array, or -1 if it is not present.
init: function()
Initialize the Environment, when DOM is ready
initPreferences: function()
Initializes preferences of the widget.
inject: function(el,
where)
Insert the Element inside the passed element
isEmail: function()
Not documented
launch: function()
Launch the widget : call initPreferences then fire widget.onLoad.
launchModule: function()
Launch the registered widget by fire the widget.launch method.
Boolean: flag to know if the Environnement is loaded.
UWA.log = function(message)
Log a message to a console, if one available.
log: function(string)
Logs environment’s messages in the console, if one exists and if the debugMode is true.
makeClickable: function()
Not documented
map: function(fn,
bind)
Creates a new array with the results of calling a provided function on every element in this array.
UWA.merge = function()
Copies the properties from the second passed object to the first passed Object if it not exists already.
mergePreferences: function(prefs)
Add preferences to the widget if preferences of the same name are not already defined.
normalize: function(sum)
Not documented
openURL: function(url)
Open an URL.
parseRelativeTime: function(raw,
offset)
Not documented
Object: Stores environment’s periodical events.
Array: Stores widget’s preferences.
This methods are mostly for internal use or advanced scripting.
Boolean: flag to know if a Widget is registered.
registerModule: function(module)
Registers a Widget (module) into the execution Environment.
remove: function()
Completely removes element from the document and returns it.
removeClassName: function(className)
Removes element’s CSS className and returns element.
request: function(url,
request)
This method is used to get the content of an external data source.