|SWT / MVC and menu listeners [message #444653]
||Tue, 19 October 2004 13:18
Originally posted by: James.Corbett.CCRA-ADRC.GC.CA|
I am using a controller class to set up my application. Essentially it
calls the main form and is there waiting for events. I have a class for
building my main menu and its called from the main form. What I want to do
is set up a listener from the controller class so that when a menu option
is evoked I can process the information into my status line which is also
another class. Initially I tried to reference the main form from the menu
class and then repopulate the text of the status line but the main form
wasn't visible to the menu class and it fell apart.
I asked one of my work mates on how best to approach this issue and he
suggested that I implement a controller class which by default would have
the Main method. So, is it possible to set up a listener in the
controller? If so, is the listener waiting for an event from the main form
or from the menu class?
Many thanks in advance.
Powered by FUDForum
. Page generated in 0.01823 seconds