WOAssociation example? (To talk to WOApplet)
WOAssociation example? (To talk to WOApplet)
- Subject: WOAssociation example? (To talk to WOApplet)
- From: MacFirst <email@hidden>
- Date: Sun, 09 Nov 2003 09:19:35 -0800
I'm still stuck on this...
I have a WOapplet that displays a .gif, then has color-patches ("buttons")
that you push to make that color blink on & off in the image (so you can
easily see all the "green" spots, for example.) I want to communication
information back & forth from my WOComponent/WOApp.
I think I need to use a WOAssociation.
I want my component to say "here's the image you're interested in" and
"here's an array of things those colours may represent" (i.e., grass,
mountain, water.)
That's component -> Applet communication.
*THEN* I want my applet to say "user selected blue = water, green = grass &
brown = mountain"
That's applet -> component communication.
If I follow correctly, I want to create MyAppletAssociation class, which
extends WOAssociation, and bind <something> to <a label? Like "MyArray"?>,
then the applet can stuff initial values into the array for the applet to
read, and the applet can stuff values into this array when I hit the "ok"
[WO] button.
Right? Am I really-really close?
So, can any of you shed some light on the details, here? How do I set up my
WOAssociation, what do my override methods want to do, etc.? Does anyone
have some sample code that shows how to hook this up?
Thanks!
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.