Closed Bug 278536 Opened 20 years ago Closed 4 years ago

Tree documentation: setCellText and redrawing.

Categories

(Developer Documentation Graveyard :: Mozilla Platform, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: goodwill.mozilla.bugzilla, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

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.
Attached file Tree refresh samples
Draft 0.1. Sample xul and JS file to demostrate how to uset setCellText and
invalidate methods of the tree.view
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
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
Closed: 12 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
Whiteboard: u=webdev p=0
Assignee: eshepherd → bruant.d
Component: General → DOM
Whiteboard: u=webdev p=0 → u=webdev p=0 c=DOM
Depends on: 891774
This seems like a XUL feature, so Mozilla-internal documentation.
What's the good component/product for that?
Flags: needinfo?(eshepherd)
Assignee: bruant.d → eshepherd
Component: DOM → Mozilla Platform
Flags: needinfo?(eshepherd)
Assignee: eshepherd → nobody
Priority: -- → P5
Whiteboard: u=webdev p=0 c=DOM
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: REOPENED → RESOLVED
Closed: 12 years ago4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: