Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A query with respect to Cairngorm Events

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .


 
Ratan Kumar Yadav
Greenhorn
Posts: 6
Flex Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi,

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....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic