Several Observers in one Class.

2012-03-29 Thread Max
Hi there !

Have a simple GWT's TextBox, using getText() and setText() manipulations 
via Observers.
Have one onClick event, and try to fetch some values from 2 Observers 
(simply modifying TextBox with Observer's internal setText(), getText() ), 
but unsuccessful, TextBox keeps it's old values.
I could notify updated TextBox's values inside the Observer, but how to 
deliver these TextBox's updated values via onClick event ?
Is there any specific use of Observer pattern in GWT ?
How to link several Observers on one event ?

Thank you all for useful feedback ! :)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/rPrdghzhHXYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT, several Observers and one Class.

2012-03-29 Thread Max
Hi there !

I have a GWT's TextArea and tried to manipulate with text values in
this TextArea.
When I've tried to use setText() and getText() simply in OnClick event
it works -  I've got an updated text.
But when I'm starting to fetch the new text values for this TextBox by
using 2 or more Observers (with theirs internal setText() and
getText()) and made it call from OnClick event, I have troubles: the
text didn't changes.

Is it some specific work with Observers in GWT ?
How to call several Observer via one event ?
Anybody has some useful examples ?

Thanks a lot for your useful feedbacks ! :)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.