mozilla

Compare Revisions

nsITreeView

Change Revisions

Revision 70629:

Revision 70629 by Smi on

Revision 70630:

Revision 70630 by bsmozilla on

Title:
nsITreeView
nsITreeView
Slug:
XPCOM_Interface_Reference/nsITreeView
XPCOM_Interface_Reference/nsITreeView
Tags:
Interfaces, Interfaces:Scriptable, "XPCOM Interface Reference"
Interfaces, Interfaces:Scriptable, "XPCOM Interface Reference"
Content:

Revision 70629
Revision 70630
n8      The <code>nsITreeView</code> interface is used by the tree n8      The <code>nsITreeView</code> interface is used by the tree 
>widget to get information about what and how to display a tree wi>widget to get information about what and how to display a tree wi
>dget. Implementing a <code>nsITreeView</code> in lieu of <a href=>dget. Implementing a <code>nsITreeView</code> in lieu of <a href=
>"en/DOM">DOM</a> methods for tree creation can improve performanc>"/en/DOM" title="en/DOM">DOM</a> methods for tree creation can im
>e dramatically, and removes the need to make changes to the tree >prove performance dramatically, and removes the need to make chan
>manually when changes to the database occur.>ges to the tree manually when changes to the database occur.
9    </p>
10    <p>9    </p>
10    <p>
11      Further information about creating treeviews is given in th11      Further information about creating treeviews is given in th
>e <a href="en/XUL_Tutorial/Custom_Tree_Views">XUL Tutorial</a>.>e <a href="/en/XUL_Tutorial/Custom_Tree_Views" title="en/XUL_Tuto
 >rial/Custom_Tree_Views">XUL Tutorial</a>.
n196            <b>Readonly:</b> The total number of rows in the treen196            <strong>Readonly:</strong> The total number of rows i
> (including the offscreen rows).>n the tree (including the offscreen rows).
nn235          <td>
236            &nbsp;
235          <td></td>237          </td>
nn246          <td>
247            &nbsp;
244          <td></td>248          </td>
nn257          <td>
258            &nbsp;
253          <td></td>259          </td>
nn268          <td>
269            &nbsp;
262          <td></td>270          </td>
nn279          <td>
280            &nbsp;
271          <td></td>281          </td>
nn290          <td>
291            &nbsp;
280          <td></td>292          </td>
n301        <tt>index</tt>n313        <code>index</code>
n307        <tt>properties</tt>n319        <code>properties</code>
n317      To add properties for a particular row, you must use the <an329      To add properties for a particular row, you must use the <a
> href="en/NsIAtomService">nsIAtomService</a> to create an <a href> href="/en/NsIAtomService" title="en/NsIAtomService">nsIAtomServi
>="en/NsIAtom">nsIAtom</a> string, which can then be appended to t>ce</a> to create an <a href="/en/NsIAtom" title="en/NsIAtom">nsIA
>he list:>tom</a> string, which can then be appended to the list:
n340        <tt>row</tt>n352        <code>row</code>
n346        <tt>col</tt>n358        <code>col</code>
n352        <tt>properties</tt>n364        <code>properties</code>
n378        <tt>col</tt>n390        <code>col</code>
n384        <tt>properties</tt>n396        <code>properties</code>
n418        <tt>index</tt>n430        <code>index</code>
n438        <tt>index</tt>n450        <code>index</code>
n467        <tt>index</tt>n479        <code>index</code>
n473        <tt>orientation</tt>n485        <code>orientation</code>
n493        <tt>index</tt>n505        <code>index</code>
n499        <tt>orientation</tt>n511        <code>orientation</code>
n519        <tt>rowIndex</tt>n531        <code>rowIndex</code>
n539        <tt>rowIndex</tt>n551        <code>rowIndex</code>
n545        <tt>afterIndex</tt>n557        <code>afterIndex</code>
n565        <tt>index</tt>n577        <code>index</code>
n585        <tt>row</tt>n597        <code>row</code>
n591        <tt>col</tt>n603        <code>col</code>
n611        <tt>row</tt>n623        <code>row</code>
n617        <tt>col</tt>n629        <code>col</code>
n637        <tt>row</tt>n649        <code>row</code>
n643        <tt>col</tt>n655        <code>col</code>
n663        <tt>row</tt>n675        <code>row</code>
n669        <tt>col</tt>n681        <code>col</code>
n689        <tt>tree</tt>n701        <code>tree</code>
n709        <tt>index</tt>n721        <code>index</code>
n729        <tt>col</tt>n741        <code>col</code>
n758        <tt>row</tt>n770        <code>row</code>
n764        <tt>col</tt>n776        <code>col</code>
n784        <tt>row</tt>n796        <code>row</code>
n790        <tt>col</tt>n802        <code>col</code>
n800      <code>isSelectable</code> is called to ask the view if the n812      <code>isSelectable</code> is called to ask the view if the 
>cell is selectable. This method is only called if the selection s>cell is selectable. This method is only called if the selection t
>tyle is <code>cell</code> or <code>text</code>.>ype is <code>cell</code> or <code>text</code>.
n810        <tt>row</tt>n822        <code>row</code>
n816        <tt>col</tt>n828        <code>col</code>
n833        <tt>row</tt>n845        <code>row</code>
n839        <tt>col</tt>n851        <code>col</code>
n845        <tt>value</tt>n857        <code>value</code>
n865        <tt>row</tt>n877        <code>row</code>
n871        <tt>col</tt>n883        <code>col</code>
n877        <tt>value</tt>n889        <code>value</code>
n897        <tt>action</tt>n909        <code>action</code>
n917        <tt>action</tt>n929        <code>action</code>
n923        <tt>row</tt>n935        <code>row</code>
n943        <tt>action</tt>n955        <code>action</code>
n949        <tt>row</tt>n961        <code>row</code>
n955        <tt>col</tt>n967        <code>col</code>
n966        <a href="en/Tree_Widget_Changes">Tree Widget Changes</a> n978        <a href="/en/Tree_Widget_Changes" title="en/Tree_Widget_C
>(applies to Gecko 1.8.0 and later)>hanges">Tree Widget Changes</a> (applies to Gecko 1.8.0 and later
 >)
n969        <a href="en/XUL_Tutorial/Tree_View_Details">XUL Tutorial:n981        <a href="/en/XUL_Tutorial/Tree_View_Details" title="en/XU
>Tree View Details</a>>L_Tutorial/Tree_View_Details">XUL Tutorial:Tree View Details</a>
n975        <a href="en/Sorting_and_filtering_a_custom_tree_view">Sorn987        <a href="/en/Sorting_and_filtering_a_custom_tree_view" ti
>ting and filtering a custom tree view</a>>tle="en/Sorting_and_filtering_a_custom_tree_view">Sorting and fil
 >tering a custom tree view</a>
t983        <a href="en/XUL_Tutorial/Tree_Box_Objects">XUL Tutorial:Tt995        <a href="/en/XUL_Tutorial/Tree_Box_Objects" title="en/XUL
>ree Box Objects</a>>_Tutorial/Tree_Box_Objects">XUL Tutorial:Tree Box Objects</a>

Back to History