JavaLikeScript 0.5 - Web Browser

Class jls.util.Resource

This class provides resource labels.
Defined in: Resource.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a Resource.
Field Summary
Field Attributes Field Name and Description
<static>  
jls.util.Resource.DEFAULT
The default resource.
Method Summary
Method Attributes Method Name and Description
 
get(key)
Returns a label.
 
getf(key)
Returns a formatted label.
<static>  
jls.util.Resource.load(path, language)
Loads a resource from an XML path.
Class Detail
jls.util.Resource()
Creates a Resource.
Field Detail
<static> {jls.util.Resource} jls.util.Resource.DEFAULT
The default resource.
Method Detail
{String} get(key)
Returns a label.
Parameters:
{String} key
The label key.
Returns:
{String} The label string.

{String} getf(key)
Returns a formatted label.
Parameters:
{String} key
The formatted label key.
Returns:
{String} The formatted label string.

<static> {jls.util.Resource} jls.util.Resource.load(path, language)
Loads a resource from an XML path.
Parameters:
{String} path
The path of the XML resource to load.
{String} language Optional
The language to use.
Returns:
{jls.util.Resource} The resource.

Documentation generated by JsDoc Toolkit 2.3.2 on Fri Feb 10 2012 22:50:34 GMT+0100 (CET)