FUEL:PreferenceBranch
出典: MDC
この記事は Firefox 3 の新機能について述べています
目次 |
[編集] メソッドの概要
boolean has(in AString aName)
|
fuelIPreference get(in AString aName)
|
nsIVariant getValue(in AString aName, in nsIVariant aDefaultValue)
|
void setValue(in AString aName, in nsIVariant aValue)
|
void reset()
|
[編集] プロパティ
| プロパティ | 型 | 説明 |
root
| readonly attribute AString
| ブランチの名前。 |
all
| readonly attribute nsIVariant
| このブランチ内のすべての設定を列挙した fuelIPreference の配列。 |
events
| readonly attribute fuelIEvents
| 設定 【訳注: ブランチ内のすべての設定】 に対するイベントオブジェクト。 "change" をサポート。 |
[編集] メソッド
[編集] has()
ある設定が存在するかどうかを調べる。
boolean has(in AString aName)
[編集] 引数
- aName
- 設定の名前
[編集] 戻り値
その設定が存在する場合は true、存在しない場合は false
[編集] get()
ある設定を表すオブジェクトを取得する。
fuelIPreference get(in AString aName)
[編集] 引数
- aName
- 設定の名前
[編集] 戻り値
設定オブジェクト、あるいはもし設定が存在しなければ null。
[編集] getValue()
ある設定の値を取得する。設定が存在しない場合はデフォルト値を返す。
nsIVariant getValue(in AString aName, in nsIVariant aDefaultValue)
[編集] 引数
- aName
- 設定の名前
- aDefaultValue
- デフォルト値
[編集] 戻り値
設定の値、あるいは設定が存在しない場合はデフォルト値。
[編集] setValue()
設定の値を変更する。
void setValue(in AString aName, in nsIVariant aValue)
[編集] 引数
- aName
- 設定の名前
- aValue
- 設定の値
[編集] 戻り値
[編集] reset()
ブランチ内のすべての設定をデフォルト値へリセットする。
void reset()
[編集] 引数
[編集] 戻り値
[編集] 参照
カテゴリ: FUEL | Interfaces