Using Listeners

Ok so I would like use (.. I think) the Listener Patern to make a few things happen for my program.

What I have is this:

My GUI has many little controllers for check boxes, radio groups, text fields .. etc.

So at the click of a button, I would like for each of them to be able to interpret their setting / state and turn it into a string to be displayed somewhere. This set of strings will be then collaborated in a single class and spit out to the system out or some other buffer of sorts.

As of now, I have all of my gui controllers implement an interface I call "KNotable" (K cuz my name is Kurt) in which they return a String that describes the state of its respective gui components.

Thus my question is, how would I register some sort of listener to these gui classes such that when a certain method in a "Collaboration Class" (... if you will) can be called, and then have all of the registered listeners of the gui classes do their associated action.

Does this make sense? .... thats what the listener pattern does correct?

thanks in advance --kurt

[1108 byte] By [Curtis_Pastorea] at [2007-10-2 6:37:02]
# 1
Add a call to each component which calls the AddActionListener method giving your Collaboration object as a parameter.
Gargoylea at 2007-7-16 13:39:35 > top of Java-index,Other Topics,Patterns & OO Design...