Line | |
---|
1 | /* ClearUnsavedViewsModelEvent.as */
|
---|
2 |
|
---|
3 | package gov.va.med.edp.control
|
---|
4 | {
|
---|
5 | import com.adobe.cairngorm.control.CairngormEvent;
|
---|
6 |
|
---|
7 | import flash.events.Event;
|
---|
8 |
|
---|
9 | public class ClearUnsavedViewsModelEvent extends CairngormEvent
|
---|
10 | {
|
---|
11 | public static const EVENT_CLEAR_UNSAVED_VIEWS:String = "clearUnsavedViewsModel";
|
---|
12 |
|
---|
13 | public function ClearUnsavedViewsModelEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false)
|
---|
14 | {
|
---|
15 | super(type, bubbles, cancelable);
|
---|
16 | }
|
---|
17 |
|
---|
18 | override public function clone():Event
|
---|
19 | {
|
---|
20 | return new ClearUnsavedViewsModelEvent(type);
|
---|
21 | }
|
---|
22 |
|
---|
23 | public static function dispatchClearUnsavedViews():void {
|
---|
24 | var clearUnsavedViewsEvent: ClearUnsavedViewsModelEvent = new ClearUnsavedViewsModelEvent(ClearUnsavedViewsModelEvent.EVENT_CLEAR_UNSAVED_VIEWS);
|
---|
25 | clearUnsavedViewsEvent.dispatch();
|
---|
26 | }
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.