blob: 3df3c27e10540fb94e38030bb857bd08f35093b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
---
title: サンプル
slug: Preferences_System/Examples
tags:
- MDC Project
- Preferences system
- XUL
translation_of: Mozilla/Preferences/Preferences_system/Examples
---
<div>{{Preferences_System_TOC}}</div>
<h2 id="Example_preferences_dialog" name="Example_preferences_dialog">設定ダイアログの例</h2>
<pre class="brush:xml"><?xml version="1.0"?>
<?xml-stylesheet href="<span class="nowiki">chrome://global/skin/</span>" type="text/css"?>
<prefwindow
id="stockwatcher2-prefs"
title="StockWatcher 2 Options"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<prefpane id="sw2-stock-pane" label="Stock Settings">
<preferences>
<preference id="pref_symbol" name="stockwatcher2.symbol" type="string"/>
</preferences>
<hbox align="center">
<label control="symbol" value="Stock to watch: "/>
<textbox preference="pref_symbol" id="symbol" maxlength="4"/>
</hbox>
</prefpane>
</prefwindow></pre>
<h2 id="See_also" name="See_also">関連情報</h2>
<ul>
<li><a href="/ja/docs/Adding_preferences_to_an_extension">設定を拡張機能に加える</a></li>
</ul>
|