Line | |
---|
1 | package clarin.cmdi.componentregistry.browser { |
---|
2 | import clarin.cmdi.componentregistry.common.CommentDescription; |
---|
3 | import clarin.cmdi.componentregistry.common.ItemDescription; |
---|
4 | |
---|
5 | import flash.events.Event; |
---|
6 | |
---|
7 | public class BrowserSelectionEvent extends Event { |
---|
8 | |
---|
9 | public static const BROWSER_ITEM_SELECTED:String = "browserItemSelected"; |
---|
10 | private var _itemDescription:ItemDescription; |
---|
11 | private var _commentDescription:CommentDescription; |
---|
12 | public function BrowserSelectionEvent(itemDescription:ItemDescription, bubbles:Boolean = false, cancelable:Boolean = false) { |
---|
13 | super(BROWSER_ITEM_SELECTED, bubbles, cancelable); |
---|
14 | _itemDescription = itemDescription; |
---|
15 | } |
---|
16 | |
---|
17 | public function get itemDescription():ItemDescription { |
---|
18 | return _itemDescription; |
---|
19 | } |
---|
20 | |
---|
21 | public function get commentDescription():CommentDescription { |
---|
22 | return _commentDescription; |
---|
23 | } |
---|
24 | |
---|
25 | override public function clone():Event { |
---|
26 | return new BrowserSelectionEvent(_itemDescription, bubbles, cancelable); |
---|
27 | } |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | } |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.