Add callbacks for components

a couple different style of Signal/Slot systems have been presented by the forum community: Signals & slots in Juce

Take a look at this thread.