source: ComponentRegistry/branches/jeaferversion/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserSelectionEvent.as @ 1631

Last change on this file since 1631 was 1631, checked in by jeafer, 13 years ago

Jean-Charles branch initial commit,
Changes regarding comment on the ComponentRegistry service.
Get comment from RestService? to Database access (CommentsDao?) implemented.
TestComment? class in development

File size: 986 bytes
Line 
1package 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.