../../Developer.FoundationDotJS.org/wwwroot/Foundation.jsFoundationObject
All Implemented Interfaces:
Direct Known Subclasses:
All Known Implementing Classes:
Foundation.Resourceful
implementsFoundation.Interface
Methods to retrieve resources. See the Foundation.Resourceful home page for more information.
| Note: This interface should be implemented, not extended. Do not pass as first argument to Foundation.createClass function. |
| Method Summary | |
|
|
|
Returns the value in the highest resourcePack containing the index. The resourcePack can be a property of the instance, a virtual property, a static property, or a static property of any ancestor class. The value in the highest resource pack defining the index is returned.
|
static |
Returns the value in the highest resourcePack containing the index. The resourcePack can be a static property of the class or of any ancestor class. The value in the highest resource pack defining the index is returned.
|
|
|
static |
Returns the value in the highest resourcePack containing the index. The resourcePack can be a static property of the class or of any ancestor class. The value in the highest resource pack defining the index is returned.
|
Methods inherited from Foundation.Interface |
getTypePath |
| Method Detail |
dispose()
dispose in class Interface
Variant resource(/*String*/ index,
/*Character*/ key,
/*String*/ value,
...)
Returns the value in the highest resourcePack containing the index. The resourcePack can be a property of the instance, a virtual property, a static property, or a static property of any ancestor class. The value in the highest resource pack defining the index is returned.
Parameters:index -The index of the resource.
key ⌉(Optional)(These 2 parameters in groups) Key/value pairs to replace in the returned resource.
value ⌋(Optional)(Repeatable group) Key/value pairs to replace in the returned resource.
Example:
// If the value 'greetings' in the resourcePack is "Greetings %n".
var greetingsString=this.resource("greetings",'n',"Professor");
// greetingsString now equals "Greetings Professor"
static Variant resource(/*String*/ index,
/*Character*/ key,
/*String*/ value,
...)
Returns the value in the highest resourcePack containing the index. The resourcePack can be a static property of the class or of any ancestor class. The value in the highest resource pack defining the index is returned.
Parameters:index -The index of the resource.
key ⌉(Optional)(These 2 parameters in groups) Key/value pairs to replace in the returned resource.
value ⌋(Optional)(Repeatable group) Key/value pairs to replace in the returned resource.
Example:
// If the value 'greetings' in the resourcePack is "Greetings %n".
var greetingsString=MyClass.resource("greetings",'n',"Professor");
// greetingsString now equals "Greetings Professor"
resourceUrl(index)
index -
static Variant resourceUrl(/*String*/ index,
/*Character*/ key,
/*String*/ value,
...)
Returns the value in the highest resourcePack containing the index. The resourcePack can be a static property of the class or of any ancestor class. The value in the highest resource pack defining the index is returned.
Parameters:index -The index of the resource.
key ⌉(Optional)(These 2 parameters in groups) Key/value pairs to replace in the returned resource.
value ⌋(Optional)(Repeatable group) Key/value pairs to replace in the returned resource.
Example:
// If the value 'greetings' in the resourcePack is "Greetings %n".
var greetingsString=MyClass.resource("greetings",'n',"Professor");
// greetingsString now equals "Greetings Professor"