PostEvent.as 807 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.imt.intimamedia.events.user
  2. {
  3. import com.imt.flex.cairngormExtended.event.SuperEvent;
  4. import com.imt.intimamedia.control.ApplicationController;
  5. import com.imt.intimamedia.vo.MessageVo;
  6. /**
  7. * Evénement de post d'un formulaire
  8. */
  9. public class PostEvent extends SuperEvent
  10. {
  11. private var _msg : MessageVo;
  12. public function PostEvent( msg : MessageVo, dispatcher : * = null )
  13. {
  14. super( ApplicationController.USER_POST );
  15. this.msg = msg;
  16. this.dispatcher = dispatcher;
  17. }
  18. /**
  19. * Message transporté par l'événement
  20. *
  21. * @default null
  22. */
  23. public function get msg () : MessageVo
  24. {
  25. return _msg;
  26. }
  27. /**
  28. * @private
  29. */
  30. public function set msg ( value : MessageVo ) : void
  31. {
  32. _msg = value;
  33. }
  34. }
  35. }