The observer pattern

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Johansson

    #1

    The observer pattern

    Hello experts!

    How can I use the parameters of this update to prevent executing the row of
    body of this update when the update is called.
    I'm using the observer pattern.
    public void update(Observab le o, Object arg)
    {
    textField.setTe xt(String.value Of(subject.getV alue()));
    }

    Many thanks!
    //Tony


  • Michael G

    #2
    Re: The observer pattern


    "Tony Johansson" <johansson.ande rsson@telia.com > wrote in message
    news:uB1Ue.3336 6$d5.188735@new sb.telia.net...[color=blue]
    > Hello experts!
    >
    > How can I use the parameters of this update to prevent executing the row
    > of body of this update when the update is called.
    > I'm using the observer pattern.
    > public void update(Observab le o, Object arg)
    > {
    > textField.setTe xt(String.value Of(subject.getV alue()));
    > }[/color]

    Under what conditions do you not want to execute the statement in update()?

    Mike



    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

    Comment

    Working...