On Mon, Dec 14, 2009 at 03:48, lp1051 <[email protected]> wrote:
> >
> > Secondly, if you include the qx.ui.treevirtual.MFamily, then you have
> > access
> > to the familyGetFirstChild(), familyGetNextSibling(), etc. methods which
> > is
> > a nice way to organize some forms of code.
> >
>
> I did include both MFamily a MNode, and I looked into the source, but there
> is one thing that makes me a little bit confused. Both of them are using
> getTableModel() for searching/accessing the tree nodes, but from my
> readings
> I expected getDataModel() to be used. I see they both can use getData()
> method, and I still don't really understand the difference between them.
> But
> I guess it will get clearer when I make my first application in qooxdoo;)
>
There is no difference between getTableModel and getDataModel. TreeVirtual
is a subclass of Table. Here's the implementation of getDataModel() in
TreeVirtual.js:
getDataModel : function()
{
return this.getTableModel();
}
The term getTableModel when used on a tree made no sense so I provided a
wrapper function getDataModel for use by users of TreeVirtual.
Cheers,
Derrell
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel