WOApplets and WOAssociations.
WOApplets and WOAssociations.
- Subject: WOApplets and WOAssociations.
- From: MacFirst <email@hidden>
- Date: Wed, 05 Nov 2003 12:50:49 -0800
[BCCs]
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 think I need to hook a WOAssociation up to it, so it can communicate to my
component.
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 "ok, MacFirst decided that 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.?
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.