Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Tree documentation: setCellText and redrawing.

Assigned to


Developer Documentation
Mozilla Platform
13 years ago
4 years ago


(Reporter: Michael (GoodWill), Assigned: sheppy)


(Depends on: 1 bug)


(Whiteboard: u=webdev p=0 c=DOM)


(1 attachment)

20.00 KB, application/octet-stream


13 years ago
This is relations to bug 278484.
Thee is little documentation for the tree object out there, but I learned this
bit and with bz's blessing I am filing a bug an bit about setCellText and redrawing.

Unlike many other controls the data for the tree.view is stored in a custom data
type that the developer defines. The developer needs to write a
contructor/prototype for the view of any tree and apply to that view.
The function with teh constructor are responsible for manipulating and
maintaining the data. Basically they are get, set and functions of the tree.view

As of today the best place to figure out how the tree works is look at the
pageinfo.js and pageinfo.xul of Seamonkey release 1.8a6 (look at the attachments).

As I learned from the esteemed bz the developer is responsible for setting up a
way to have tree redrawn when the underlying data has been changed. 
That can be done by issuing of the invalidate functions after the change has
There are many invalidate methods available: invalidate(), invalidateCell(row,
column),and etc..

The attachment above show several implementations and gives you a general idea
on how to use them.

Comment 1

13 years ago
Created attachment 171365 [details]
Tree refresh samples

Draft 0.1. Sample xul and JS file to demostrate how to uset setCellText and
invalidate methods of the tree.view


11 years ago
Assignee: endico → nobody
Component: Mozilla Developer → Documentation Requests
OS: Windows Server 2003 → All
Product: Documentation → Mozilla Developer Center
QA Contact: imajes → doc-request
Hardware: PC → All
Component: Documentation Requests → Documentation
Product: Mozilla Developer Network → Mozilla Developer Network
Automatically closing all bugs that have not been updated in a while. Please reopen if this is still important to you and has not yet been corrected.
Last Resolved: 5 years ago
Resolution: --- → INVALID
Reopening for review by Sheppy.
Assignee: nobody → eshepherd
Resolution: INVALID → ---
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation


4 years ago
Whiteboard: u=webdev p=0


4 years ago
Assignee: eshepherd → bruant.d
Component: General → DOM
Keywords: #relman/triage/needs-info
Whiteboard: u=webdev p=0 → u=webdev p=0 c=DOM
Depends on: 891774

Comment 4

4 years ago
This seems like a XUL feature, so Mozilla-internal documentation.
What's the good component/product for that?
Flags: needinfo?(eshepherd)


4 years ago
Assignee: bruant.d → eshepherd
Component: DOM → Mozilla Platform
Flags: needinfo?(eshepherd)
You need to log in before you can comment on or make changes to this bug.