Changeset 2320 for ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/RssDescriptionsContextMenu.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/RssDescriptionsContextMenu.as
r2318 r2320 1 1 package clarin.cmdi.componentregistry.common.components 2 2 { 3 import clarin.cmdi.componentregistry.common.RssLinkPopUp;4 3 import clarin.cmdi.componentregistry.services.Config; 5 4 6 import flash. geom.Point;5 import flash.events.Event; 7 6 import flash.events.ContextMenuEvent; 8 import mx.managers.PopUpManager;7 import flash.ui.ContextMenuItem; 9 8 import flash.system.System; 9 import flash.net.URLRequest; 10 import flash.net.navigateToURL; 10 11 11 12 public class RssDescriptionsContextMenu extends RssContextMenu 12 13 { 13 14 private var _typeOfDescription:String; 15 14 16 15 17 public function RssDescriptionsContextMenu(typeOfDescription:String) … … 18 20 } 19 21 20 21 override protected function copyRssLink(event:ContextMenuEvent):void { 22 override protected function copyRssLink(event:ContextMenuEvent):void { 22 23 System.setClipboard(Config.getRssUriDescriptions(_typeOfDescription)); 23 24 } 25 26 override protected function showRssLink(event:ContextMenuEvent):void{ 27 navigateToURL(new URLRequest(Config.getRssUriDescriptions(_typeOfDescription)), "_blank"); 28 } 24 29 25 26 override protected function showRssLink(event:ContextMenuEvent):void{ 27 28 var rssLinkPanel:RssLinkPopUp = new RssLinkPopUp(); 29 rssLinkPanel.uri = Config.getRssUriDescriptions(_typeOfDescription); 30 31 var xShift:int = 350; 32 var position:Point = positioning(xShift, event); 33 rssLinkPanel.x = position.x; 34 rssLinkPanel.y=position.y; 35 36 PopUpManager.addPopUp(rssLinkPanel, event.mouseTarget); 30 override protected function menuUpdateCaption(event:ContextMenuEvent):void { 31 _showRssLinkMenuItem.caption = Config.getRssUriDescriptions(_typeOfDescription); 37 32 } 38 33 }
Note: See TracChangeset
for help on using the changeset viewer.