Tree documentation: setCellText and redrawing.

REOPENED
Assigned to

Status

Developer Documentation
Mozilla Platform
REOPENED
13 years ago
4 years ago

People

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

Tracking

(Depends on: 1 bug)

Details

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

Attachments

(1 attachment)

20.00 KB, application/octet-stream
Details
(Reporter)

Description

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
occured.
There are many invalidate methods available: invalidate(), invalidateCell(row,
column),and etc..
http://www.xulplanet.com/references/objref/TreeBoxObject.html#method_invalidate

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

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

Updated

10 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.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
Reopening for review by Sheppy.
Assignee: nobody → eshepherd
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation
(Assignee)

Updated

4 years ago
Whiteboard: u=webdev p=0
(Assignee)

Updated

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)
(Assignee)

Updated

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.