Index
Adds contents to the existing body of the Widget.
addBody: function( content )
Adds a CSS class to element.
addClassName: function( className )
addContent: function( content )
Adds a single preference to the existing preferences of the widget.
addPreference: function( preference )
Adds a new text node at the end of the element’s existing content
appendText: function( text )
Extensions to the native JavaScript Array class.
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).
callback: function( name, args, bind )
Not documented
camelCase: function()
Unregister a delayed event previously registered with setDelayed
clearDelayed: function( name )
Unregister a periodical event previously registered with setPeriodical
clearPeriodical: function( name )
Unregister a periodical event previously registered with setPeriodical
clearPeriodical: function( name )
Not documented
contains: function( string, separator )
UWA Runtime Core.
Creates a new element according to the provided “tagName”.
createElement: function( tagName, options )
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.
Not documented
detect: function( iterator )
Document Object Model extensions.
Empty an element of all its children.
empty: function()
The Environment Base class provide base functions to run an UWA Widget Execution Environnement.
Test wether the array equals to the one passed as parameter.
equals: function( compare )
Returns string with escaped regular expression characters
escapeRegExp: function()
Tests whether all elements in the array pass the test implemented by the provided function.
every: function( fn, bind )
Copies all the properties from the second passed object to the first passed Object.
UWA.extend = function( original, extended )
Creates a new array with all elements that pass the test implemented by the provided function.
filter: function( fn, bind )
Executes a provided function once per array element.
forEach: function( fn, bind )
Not documented
format : function()
Gets the Boolean value of the given preference.
getBool: function( name )
return a collection of the element’s child nodes
getChildren: function()
Finds the computed width and height of element and returns them as key/value pairs of an object.
getDimensions: function()
Gets the content of a feed, in a JSON format.
getFeed: function( url, callback )
Gets the Integer value of the given preference.
getInt: function( name )
This method is used to get the content of an external JSON data source.
getJson: function( url, callback )
This method is used to get the content of an external widget, in XML format.
getModule: function( url, callback, id )
Returns the widget (= module) currently registered in the Environment.
getModule: function()
return a reference to the element’s parent node
getParent: function()
Get a preference with its name.
getPreference: function( name )
This method is used to get the content of an external data source.
getText: function( url, callback )
Get the title of the Widget.
getTitle: function()
Gets the value of the given preference.
getValue: function( name )
This method is used to get the content of an external XML data source.
getXml: function( url, callback )
Checks whether element has the given CSS className.
hasClassName: function( className )
Integer: The current height of the widget in pixel.
Hides and returns element.
hide: function()
Object: HTML Dom elements related to this environnement
Returns the first index at which a given element can be found in the array, or -1 if it is not present.
indexOf: function( item, from )
Initialize the Environment, when DOM is ready
init: function()
Initializes preferences of the widget.
initPreferences: function()
Insert the Element inside the passed element
inject: function( el, where )
Not documented
isEmail: function()
Launch the widget : call initPreferences then fire widget.onLoad.
launch: function()
Launch the registered widget by fire the widget.launch method.
launchModule: function()
Boolean: flag to know if the Environnement is loaded.
Log a message to a console, if one available.
UWA.log = function( message )
Logs environment’s messages in the console, if one exists and if the debugMode is true.
log: function( string )
Not documented
makeClickable: function()
Creates a new array with the results of calling a provided function on every element in this array.
map: function( fn, bind )
Copies the properties from the second passed object to the first passed Object if it not exists already.
UWA.merge = function()
Add preferences to the widget if preferences of the same name are not already defined.
mergePreferences: function( prefs )
Not documented
normalize: function( sum )
Open an URL.
openURL: function( url )
Not documented
parseRelativeTime: function( raw, offset )
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.
Registers a Widget (module) into the execution Environment.
registerModule: function( module )
Completely removes element from the document and returns it.
remove: function()
Removes element’s CSS className and returns element.
removeClassName: function( className )
This method is used to get the content of an external data source.
request: function( url, request )