[Project_owners] <tree> and cycler
didier at ernotte.com
Tue Jun 14 09:46:48 EDT 2005
right ? that's the conclusion I alrerady went to.
--- Neil Deakin <enndeakin at sympatico.ca> wrote:
> Didier Ernotte wrote:
> >Does anybody know what the concept of "cycler" mean in a tree. I
> >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
> >or switch with a kind of on/off value. How can I know the state of
> >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
> 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
> used for on/off items.
> / Neil
> Project_owners mailing list
> Project_owners at mozdev.org
More information about the Project_owners