Changeset 2320 for ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/RssContextMenu.as
- Timestamp:
- 10/22/12 16:32:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/RssContextMenu.as
r2317 r2320 3 3 import clarin.cmdi.componentregistry.services.Config; 4 4 5 import flash.events.Event; 5 6 import flash.events.ContextMenuEvent; 6 7 import flash.geom.Point; … … 16 17 17 18 private var _copyRssLinkMenuItem:ContextMenuItem; 18 private var _showRssLinkMenuItem:ContextMenuItem; 19 19 protected var _showRssLinkMenuItem:ContextMenuItem; 20 20 21 21 … … 25 25 cm.hideBuiltInItems(); 26 26 cm.customItems = createMenuItems(); 27 27 cm.addEventListener(ContextMenuEvent.MENU_SELECT, menuUpdateCaption); 28 28 } 29 29 … … 31 31 var result:Array = new Array(); 32 32 33 _copyRssLinkMenuItem = new ContextMenuItem("Copy the link to the clipboard"); 33 _showRssLinkMenuItem = new ContextMenuItem(" "); 34 _showRssLinkMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, showRssLink); 35 _showRssLinkMenuItem.visible = true; 36 result.push(_showRssLinkMenuItem); 37 38 _copyRssLinkMenuItem = new ContextMenuItem("Copy Rss link to clipboard"); 34 39 _copyRssLinkMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, copyRssLink); 35 40 _copyRssLinkMenuItem.visible = true; 36 41 result.push(_copyRssLinkMenuItem); 37 38 _showRssLinkMenuItem = new ContextMenuItem("Show link to the RSS feed");39 _showRssLinkMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, showRssLink);40 _showRssLinkMenuItem.visible = true;41 result.push(_showRssLinkMenuItem);42 42 43 43 return result; … … 51 51 } 52 52 53 protected function positioning(xShift:int, event:ContextMenuEvent):Point{ 54 var point:Point = new Point(); 55 point.x = event.mouseTarget.mouseX; 56 point.y = event.mouseTarget.mouseY; 57 point = event.mouseTarget.localToGlobal(point); 58 return (new Point(point.x-xShift, point.y)); 53 protected function menuUpdateCaption(event:ContextMenuEvent):void{ 59 54 } 55 56 60 57 } 61 58 }
Note: See TracChangeset
for help on using the changeset viewer.