../../Developer.FoundationDotJS.org/wwwroot/Foundation.js
Foundation
Object
All Implemented Interfaces:
Direct Known Subclasses:
ClientLoader
, Control
, TabSet.Tab
, Game
, GameForm
, GameForms
, GameOfLifeGame
, SetGame
, SudokuGame
, Resourceful
All Known Implementing Classes:
ClientLoader
, Completer
, Control
, FloatControl
, InputCapture
, MicroLogin
, TabSet
, TabSet.Tab
, AtaxxGame
, AtaxxGameForm
, AtollGame
, AtollGameForm
, BackgammonGame
, BackgammonGameForm
, BegirdGame
, BegirdGameForm
, ByteGame
, ByteGameForm
, CageGame
, CageGameForm
, CaptureTheFlagGame
, CaptureTheFlagGameForm
, CephalopodGame
, CephalopodGameForm
, CheckersGame
, CheckersGameForm
, ChessGame
, ChessGameForm
, ChineseCheckersGame
, ChineseCheckersGameForm
, GameInputCapture
, HexBoardMaker
, StartGameJoinTab
, StartGamePreviewTab
, StartGameStartTab
, StartGameTabSet
, StartGameTabSetLoader
, WW2GameInputCapture
, CopolymerGame
, CopolymerGameForm
, CrosswayGame
, CrosswayGameForm
, DiffusionGame
, DiffusionGameForm
, DipoleGame
, DipoleGameForm
, EmpiresGame
, EmpiresGameForm
, GambitGame
, GambitGameForm
, Game
, GameForm
, GameFormLoader
, GameForms
, GameLoader
, GameOfLifeGame
, GomokuGame
, GomokuGameForm
, ImpasseGame
, ImpasseGameForm
, Link4Game
, Link4GameForm
, McCooeyHexChessGame
, McCooeyHexChessGameForm
, MergersGame
, MergersGameForm
, MyGames
, MyGamesLoader
, MyTurns
, OmegaChessGame
, OmegaChessGameForm
, OustGame
, OustGameForm
, PalisadeGame
, PalisadeGameForm
, PhalanxGame
, PlateauGame
, PlateauGameForm
, PoliticsGame
, PoliticsGameForm
, QuadratureGame
, QuadratureGameForm
, ReflektitGame
, ReflektitGameForm
, ReversiGame
, ReversiGameForm
, RiveGame
, RiveGameForm
, RushGame
, RushGameForm
, ScribeGame
, ScribeGameForm
, SetGame
, SetGame.Example
, SetGame.ExamplePractice
, SetGame.ExampleTest
, SetGame.Tutorial
, SetGame.TutorialColorTab
, SetGame.TutorialFillAndNumberTab
, SetGame.TutorialFillTab
, SetGame.TutorialIntroductionTab
, SetGame.TutorialNumberTab
, SetGame.TutorialPlayTab
, SetGame.TutorialShapeTab
, SetGameLoader
, SnagGame
, SnagGameForm
, SudokuGame
, TanboGame
, TanboGameForm
, TicTacToeGame
, TicTacToeGameForm
, TriversiGame
, TriversiGameForm
, TutorialGame
, TwixtGame
, TwixtGameForm
, Viktory2Game
, Viktory2GameForm
, WW2Game
, WW2GameForm
, XGame
, XGameForm
, XiangqiGame
, XiangqiGameForm
, ZertzGame
, ZertzGameForm
, Resourceful
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"