What's new? | Help | Directory | Sign in
Google
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Copyright (c) 2008, andCulture Inc.
* All rights reserved.
*
* NOTICE: You are permitted to use, modify, and distribute this file
* in accordance with the terms of the BSD license agreement accompanying it.
*/

package com.andculture.puremvcflexunittesting {
import flash.events.Event;

import org.puremvc.as3.interfaces.INotification;

/**
* Custom event that wraps the PureMVC INotification object. Dispatch this
* event in PureMVCTestCase in order for handlers to have access to the
* notification details.
*/
public class PureMVCNotificationEvent extends Event {
private var _notification:INotification;

/**
* Gets or sets the dispatched INotification object.
*/
public function get notification():INotification {
return _notification;
}

/**
* @private
*/
public function set notification(value:INotification):void {
_notification = value;
}

/**
* Constructor.
*
* @param notification INotification that was observed.
* @param bubbles Specifies whether the event can bubble up
* the display list hierarchy.
* @param cancelable Specifies whether the behavior associated
* with the event can be prevented.
*/
public function PureMVCNotificationEvent(notification:INotification, bubbles:Boolean = false, cancelable:Boolean = false) {
super(notification.getName(), bubbles, cancelable);
_notification = notification;
}
}
}
Show details Hide details

Change log

r11 by lmarburger on Jun 10, 2008   Diff
Switched to PureMVC Standard.  MultiCore
adds complexity and is unnecessary in this
project.
Go to: 
Project members, sign in to write a code review

Older revisions

r7 by lmarburger on Jun 07, 2008   Diff
Removed the name parameter from
PureMVCNotificationEvent since the
event name should always be the same
as the observed notification's name.
Made some comments more clear and
...
r6 by lmarburger on Jun 07, 2008   Diff
PureMVCNotificationEvent now wraps
INotification instead of just its body
object.
r3 by lmarburger on Jun 06, 2008   Diff
Fixed a package namespace typo.
All revisions of this file

File info

Size: 1423 bytes, 49 lines