This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Flex and the fly likes A query with respect to Cairngorm Events Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "A query with respect to Cairngorm Events " Watch "A query with respect to Cairngorm Events " New topic

A query with respect to Cairngorm Events

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

I am new to cairngorm .
I am designing a StudentApplication using Flex with Cairngorm .
I am struck at writing a Event class for Cairngorm .Please guide me

Assume that this StudentApplication is suppourting Create , Delete , Update ,Read Operations .

My question is do i need to write 4 Event classes , each representing that Operation ,

Or is it possible to do in one Event class by taking 4 different Sring constants , each representing the Appropiate Action .

My question is do i need to make Create , Update , Delete , Read Events for every
Event of my Application ??

Please guide me .

Thanks in advance .

Save India From Corruption - Anna Hazare.
Ratan Kumar Yadav

Joined: May 02, 2008
Posts: 6


It would be better if you create separate event for each of your operations like create,delete,updare etc.
Make sure you map your events in FrontController ,i.e your UIController and write a command class
which will implement ICommand interface.

Once the Event is Dispatched,it vl come wover to command class "execute" method and den you can decide here which operation need to Perform.

Hope I made things simpler....
I agree. Here's the link:
subject: A query with respect to Cairngorm Events
It's not a secret anymore!