Re: Is fireModelChanged mandatory ?
Christian Cryder <[email protected]> Fri, 16 Sep 2005 09:40:09 -0400
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1126878066-23388-84 Content-Type: multipart/alternative; boundary="------------030907080007030404050107" This is a multi-part message in MIME format. --------------030907080007030404050107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Franck, fireModelChanged is an internal method - you should never need to invoke it. Basically, it is defined in the various model implementations - when you change data to the model (eg. adding data, removing data, etc), then the model notifies any listeners "hey, something has happened - better refresh yourselves" So this method is an internal communication mechanism for models to talk to the components that use them. THat help? Christian Franck Routier wrote: > Hi Barracudans, > > I was just wondering if / where fireModelChanged is defined ? > Is it defined in an interface ? > > I which to implement TemplateModel, which means also implementing > Model and Contextual, but I cannot see fireModelChanged anywhere. > However, all AbstractxxxModel I see are providing a fireModelChanged() > method. > > I was just wondering what this is for, and why it's not defined in the > interfaces if mandatory. > > Thanks, > > Franck > >------------------------------------------------------------------------ > > >-- >Barracuda mailing list >[email protected] >http://www.objectweb.org/wws/lists/projects/barracuda > > -- ------------------------------------------------------------------------ Christian Cryder Internet Architect, ATMReports.com <http://atmreports.com> ------------------------------------------------------------------------ /"Coffee? I could quit anytime, just not today" http://seelifedifferently.blogspot.com/ --------------030907080007030404050107 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hi Franck,<br> <br> fireModelChanged is an internal method - you should never need to invoke it. Basically, it is defined in the various model implementations - when you change data to the model (eg. adding data, removing data, etc), then the model notifies any listeners "hey, something has happened - better refresh yourselves"<br> <br> So this method is an internal communication mechanism for models to talk to the components that use them.<br> <br> THat help?<br> <br> Christian<br> <br> Franck Routier wrote: <blockquote cite="[email protected]" type="cite">Hi Barracudans, <br> <br> I was just wondering if / where fireModelChanged is defined ? <br> Is it defined in an interface ? <br> <br> I which to implement TemplateModel, which means also implementing Model and Contextual, but I cannot see fireModelChanged anywhere. However, all AbstractxxxModel I see are providing a fireModelChanged() method. <br> <br> I was just wondering what this is for, and why it's not defined in the interfaces if mandatory. <br> <br> Thanks, <br> <br> Franck <br> <br> <pre wrap=""> <hr size="4" width="90%"> -- Barracuda mailing list <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> <a class="moz-txt-link-freetext" href="http://www.objectweb.org/wws/lists/projects/barracuda">http://www.objectweb.org/wws/lists/projects/barracuda</a> </pre> </blockquote> <br> <br> <div class="moz-signature">-- <br> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; "> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>Foo bar rama</title> <table border="0"> <tbody> <tr> <td width="100%"> <hr align="left" size="1" width="350"> </td> </tr> <tr> <td width="100%"><font face="Arial">Christian Cryder<br> Internet Architect, <a href="http://atmreports.com">ATMReports.com</a></font></td> </tr> <tr> <td width="100%"> <hr align="left" size="1" width="350"> </td> </tr> <tr> <td width="100%"> <p align="center"><i>"Coffee? I could quit anytime, just not today"<br> <a href="http://seelifedifferently.blogspot.com"><font size="2">http://seelifedifferently.blogspot.com</font></a></i></p> </td> </tr> </tbody> </table> </div> </body> </html> --------------030907080007030404050107-- ------------=_1126878066-23388-84 Content-Type: text/plain; name="message-footer.txt" Content-Disposition: inline; filename="message-footer.txt" Content-Transfer-Encoding: 8bit -- Barracuda mailing list [email protected] http://www.objectweb.org/wws/lists/projects/barracuda ------------=_1126878066-23388-84--