| Pakiet | org.osmf.utils |
| Klasa | public class OSMFStrings |
| Dziedziczenie | OSMFStrings Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Właściwości publiczne
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| resourceStringFunction : Function [statyczny]
Function that the getString methods uses to retrieve a user-facing string. | OSMFStrings | ||
Metody publiczne
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
[statyczny]
Returns the user-facing string for the given key. | OSMFStrings | ||
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
Szczegół właściwości
resourceStringFunction | właściwość |
resourceStringFunction:Function| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Function that the getString methods uses to retrieve a user-facing string.
This function takes a String parameter (which is expected to be one of the static consts on this class) and an optional Array of parameters which can be substituted into the String (formatted as {0}, {1}, etc.).
Clients can supply their own getString function to localize the strings. By default, the getString function returns an English-language String.
Implementacja
public static function get resourceStringFunction():Function public static function set resourceStringFunction(value:Function):voidSzczegół metody
getString | () | metoda |
public static function getString(key:String, params:Array = null):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Returns the user-facing string for the given key. All possible keys are defined as static constants on this class. The parameters are optional substitution variables, formatted as {0}, {1}, etc.
Parametry
key:String | |
params:Array (default = null) |
String |
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne