diff options
Diffstat (limited to 'files/ja/archive/mozilla/xul/property/currentindex/index.html')
-rw-r--r-- | files/ja/archive/mozilla/xul/property/currentindex/index.html | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/files/ja/archive/mozilla/xul/property/currentindex/index.html b/files/ja/archive/mozilla/xul/property/currentindex/index.html deleted file mode 100644 index 6346607dd8..0000000000 --- a/files/ja/archive/mozilla/xul/property/currentindex/index.html +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: currentIndex -slug: Archive/Mozilla/XUL/Property/currentIndex -tags: - - XUL Properties - - XUL Reference -translation_of: Archive/Mozilla/XUL/Property/currentIndex ---- -<div class="noinclude"><span class="breadcrumbs XULRefProp_breadcrumbs">« <a href="/ja/docs/XUL_Reference" title="XUL_Reference">XUL リファレンス</a></span></div> -<dl><dt> <code><span><a href="https://developer.mozilla.org/ja/docs/XUL/Property/currentIndex">currentIndex</a></span></code> </dt><dd> 型: <em>整数型</em> </dd><dd> 現在フォーカスされた <code><a href="/ja/docs/Mozilla/Tech/XUL/tree" title="tree">tree</a></code> 内の行の index を設定します。行がフォーカスされていない場合、値は <code>-1</code> になります。複数選択できる tree では、現在の index は選択された最後の行になります。このプロパティを選択の変更に使用してはいけません。代わりに、<code>tree.view.selection</code> を通して利用可能な <code><a href="/ja/NsITreeSelection" title="ja/NsITreeSelection">nsITreeSelection</a></code> オブジェクトのメソッドを使用してください。 </dd></dl> -<div class="noinclude"> -<pre>// セルのテキストを取得する方法の例 -<script language ="javascript"> -function treeRowClicked(){ - var tree = document.getElementById("my-tree"); - var selection = tree.view.selection; - var cellText = tree.view.getCellText(tree.currentIndex, tree.columns.getColumnAt(0)); - alert(cellText); -} -</script> - -<tree id="my-tree" seltype="single" onselect="treeRowClicked()"> - <treecols> - <treecol label="タイトル" flex="1"/><treecol label="URL" flex="1"/> - </treecols> - <treechildren> - <treeitem> - <treerow> - <treecell label="joe@somewhere.com"/> - <treecell label="最高機密計画"/> - </treerow> - </treeitem> - <treeitem> - <treerow> - <treecell label="mel@whereever.com"/> - <treecell label="昼食にしようか"/> - </treerow> - </treeitem> - </treechildren> -</tree> -</pre> -<h3 id="See_also" name="See_also">参照</h3> -<ul> <li><a href="/ja/XUL/Property/listbox.currentIndex" title="ja/XUL/Property/Listbox.currentIndex">Listbox.currentIndex</a></li> -</ul> -</div> -<div class="noinclude"> - -</div> |