Re: Is fireModelChanged mandatory ?

Christian Cryder <[email protected]> Fri, 16 Sep 2005 16:54:28 -0400
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1126904136-23388-155
Content-Type: multipart/alternative;
 boundary="------------020301040105070701010609"

This is a multi-part message in MIME format.
--------------020301040105070701010609
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

If you are implementing by extending from one of the abstract 
implementations, then you won't need to. If you are implementing from 
scratch, then should look at the abstract implementations for guidance.

Typically, all the end programmer needs to do is the former, not the 
latter. But I don't know exactly what you are doing so I can't say for 
sure...

That help? If you are still unsure, send some more info and I will try 
and answer it better for your specific needs.

Christian

Franck Routier wrote:

> 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, à 15:40, Christian Cryder a écrit :
>
>     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
>
>     /"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
>
>------------------------------------------------------------------------
>
>
>--
>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/


--------------020301040105070701010609
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">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
If you are implementing by extending from one of the abstract
implementations, then you won't need to. If you are implementing from
scratch, then should look at the abstract implementations for guidance.<br>
<br>
Typically, all the end programmer needs to do is the former, not the
latter. But I don't know exactly what you are doing so I can't say for
sure...<br>
<br>
That help? If you are still unsure, send some more info and I will try
and answer it better for your specific needs.<br>
<br>
Christian<br>
<br>
Franck Routier wrote:
<blockquote cite="[email protected]"
 type="cite">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 ?
  <br>
  <br>
  <br>
Le 16 sept. 05, &agrave; 15:40, Christian Cryder a &eacute;crit :
  <br>
  <br>
  <blockquote> 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:Hi Barracudans,
    <br>
    <blockquote><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>
      <tt><br>
      <br>
--
      <br>
Barracuda mailing list
      <br>
<!-- 0000,0000,EEEE --><a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
      <br>
<!-- 0000,0000,EEEE --><a class="moz-txt-link-freetext" href="http://www.objectweb.org/wws/lists/projects/barracuda">http://www.objectweb.org/wws/lists/projects/barracuda</a>
      <br>
      </tt><br>
    </blockquote>
    <br>
    <br>
-- <br>
<!-- Arial -->Christian Cryder
    <br>
<!-- Arial --> Internet Architect,
<!-- 0000,0000,EEEE -->ATMReports.com
    <br>
    <br>
    <i>"Coffee? I could quit anytime, just not today"</i>
    <br>
    <i><!-- 0000,0000,EEEE --><font size="-1"><a class="moz-txt-link-freetext" href="http://seelifedifferently.blogspot.com">http://seelifedifferently.blogspot.com</a></font></i>
    <br>
    <br>
    <br>
--
    <br>
    <br>
Barracuda mailing list
    <br>
    <br>
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
    <br>
    <br>
<a class="moz-txt-link-freetext" href="http://www.objectweb.org/wws/lists/projects/barracuda">http://www.objectweb.org/wws/lists/projects/barracuda</a>
    <br>
    <br>
  </blockquote>
  <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>

--------------020301040105070701010609--


------------=_1126904136-23388-155
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


------------=_1126904136-23388-155--