Thank to all for replays. Yes,Johan, this solve problem. But too many methods in DefaultMutableTreeNode. I think better way exist. I create subclass that have loadAllChildren() method. Methods like children() or getChildCount() will call loadAllChildren() Dmitry.
-----Original Message----- From: "Johan Compagner" <[EMAIL PROTECTED]> To: [email protected] Date: Fri, 14 Jul 2006 11:31:05 +0200 Subject: Re: [Wicket-user] tree model > That looks strange to me. > i have used my own implementations. Where does the class cast exactly come > from? > > But still you could use DefaultMutableTreeNode just fine for lazy loading. > Just don't give him childeren yet. Do that only when ask for (override the > right methods like > children() or getChildCount()) > > johan > > On 7/14/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > It inherited that problem from Swing's Tree component. Don't ask me > > why, but even though there is this TreeNode interface, Swing's Tree is > > not really usuable with anything else than DefaultMutableTreeNode. > > Unless I missed something. > > > > Eelco > > > > > > On 7/13/06, Арву Оетук <[EMAIL PROTECTED]> wrote: > > > When I use class which implement TreeNode, I got ClassCastException. > > Tree use only DefaultMutableTreeNode. > > > Wich way I can use? > > > > > > > > > -----Original Message----- > > > From: Michael Welter <[EMAIL PROTECTED]> > > > To: Арву Оетук <[EMAIL PROTECTED]>, [email protected] > > > Date: Thu, 13 Jul 2006 03:33:53 -0600 > > > Subject: Re: [Wicket-user] tree model > > > > > > > > > > > Absolutely! The ability to drill-down into a data structure without > > > > having to instantiate the entire structure in memory. > > > > > > > > Арву Оетук wrote: > > > > > Hi all. > > > > > I want use big tree model. > > > > > But I don't want load all tree in memory. > > > > > Is it possible use TreeNode instead DefaultMutableTreeNode? > > > > > Or other way exists? > > > > > Dmitry. > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > Using Tomcat but need to do more? Need to support web services, > > security? > > > > > Get stuff done quickly with pre-integrated technology to make your > > job easier > > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > _______________________________________________ > > > > > Wicket-user mailing list > > > > > [email protected] > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > -- > > > > Michael Welter > > > > Telecom Matters Corp. > > > > Denver, Colorado US > > > > +1.303.414.4980 > > > > [EMAIL PROTECTED] > > > > www.TelecomMatters.net > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > > security? > > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Wicket-user mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
