[Project_owners] <tree> and cycler

Didier Ernotte didier at ernotte.com
Tue Jun 14 09:46:48 EDT 2005

So if I build the tree "by hand" in javascript, cycler is useless,
right ? that's the conclusion I alrerady went to. 


--- Neil Deakin <enndeakin at sympatico.ca> wrote:

> Didier Ernotte wrote:
> >Hi,
> >
> >Does anybody know what the concept of "cycler" mean in a tree. I
> can't
> >figure out after reading doc.
> >I have a <tree> and each line has a simulated checkbox to select it
> >(type="checkbox" is another question.... is it working on a treecol
> ?).
> >  
> >
> type="checkbox" is 1.8+
> >I have set the cycler="true" in the column where the image of the
> >checkbox is, but then ? I though that the cycler was a kind of
> toggle
> >or switch with a kind of on/off value. How can I know the state of
> my
> >line (selected/ not selected) with a cycler column ?
> >
> A cycler cell is one that shows an icon like the unread or flagged 
> status in mail. The tree's view should supply row or cell properties 
> which are used to style the icon as necessary. If you are
> implementing 
> your own nsITreeView, or using a tree template builder 
> (dont-build-content type) with an attached nsIXULTreeBuilderObserver,
> you can listen for cycle changes. Otherwise, a cycler cell isn't 
> particularly going to do anything. In 1.8, a checkbox column should
> be 
> used for on/off items.
> / Neil
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

More information about the Project_owners mailing list