Re: Is fireModelChanged mandatory ?
Franck Routier <[email protected]> Fri, 16 Sep 2005 17:39:14 +0200
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1126885196-23388-107 Content-Type: multipart/alternative; boundary=Apple-Mail-1-401583236 --Apple-Mail-1-401583236 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed So, if I'm implementing Model interface, should I add such a method=20 (cut and paste from say DefaultTemplateModel), although it is not=20 really part of the interface contract ? Le 16 sept. 05, =E0 15:40, Christian Cryder a =E9crit : > Hi Franck, > > fireModelChanged is an internal method - you should never need to=20 > invoke it. Basically, it is defined in the various model=20 > implementations - when you change data to the model (eg. adding data,=20 > removing data, etc), then the model notifies any listeners "hey,=20 > something has happened - better refresh yourselves" > > So this method is an internal communication mechanism for models to=20 > 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=20 >> Model and Contextual, but I cannot see fireModelChanged anywhere.=20 >> However, all AbstractxxxModel I see are providing a=20 >> fireModelChanged() method. >> >> I was just wondering what this is for, and why it's not defined in=20 >> the interfaces if mandatory. >> >> Thanks, >> >> Franck >> >> >> >> -- >> Barracuda mailing list >> [email protected] >> http://www.objectweb.org/wws/lists/projects/barracuda >> > > > --=20 > Christian Cryder > Internet Architect, ATMReports.com > > "Coffee? I could quit anytime, just not today" > http://seelifedifferently.blogspot.com > > > -- > > Barracuda mailing list > > [email protected] > > http://www.objectweb.org/wws/lists/projects/barracuda > --Apple-Mail-1-401583236 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=ISO-8859-1 So, if I'm implementing Model interface, should I add such a method (cut and paste from say DefaultTemplateModel), although it is not really part of the interface contract ? Le 16 sept. 05, =E0 15:40, Christian Cryder a =E9crit : <excerpt> 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, <excerpt> 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 <fixed> -- Barracuda mailing list <color><param>0000,0000,EEEE</param>[email protected]</color> <color><param>0000,0000,EEEE</param>http://www.objectweb.org/wws/lists/proj= ects/barracuda</color> </fixed> </excerpt> --=20 <fontfamily><param>Arial</param>Christian Cryder</fontfamily> <fontfamily><param>Arial</param> Internet Architect, <color><param>0000,0000,EEEE</param>ATMReports.com</color></fontfamily> <italic>"Coffee? I could quit anytime, just not today"</italic> <italic><color><param>0000,0000,EEEE</param><smaller>http://seelifedifferen= tly.blogspot.com</smaller></color></italic> -- Barracuda mailing list [email protected] http://www.objectweb.org/wws/lists/projects/barracuda </excerpt>= --Apple-Mail-1-401583236-- ------------=_1126885196-23388-107 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 ------------=_1126885196-23388-107--