Changeset 2314
- Timestamp:
- 10/18/12 14:21:17 (12 years ago)
- Location:
- ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/Browse.mxml
r2313 r2314 16 16 import clarin.cmdi.componentregistry.common.ItemDescription; 17 17 import clarin.cmdi.componentregistry.common.components.BrowseContextMenu; 18 import clarin.cmdi.componentregistry.common.components.RssContextMenu;18 //import clarin.cmdi.componentregistry.common.components.RssContextMenu; 19 19 import clarin.cmdi.componentregistry.common.components.RegistryViewStack; 20 20 import clarin.cmdi.componentregistry.services.BrowserService; … … 54 54 private var startupPanel:String = null; 55 55 56 [Bindable]57 private var rssProfilesMenu:RssContextMenu;58 [Bindable]59 private var rssComponentsMenu:RssContextMenu;60 56 61 57 … … 70 66 71 67 Config.instance.addEventListener(Config.USER_SPACE_TOGGLE_EVENT, toggleUserSpace); 72 73 68 Config.instance.addEventListener(Config.USER_SPACE_TOGGLE_EVENT, setUserSpace); 74 75 //profilesOverview.rssUri = Config.getRssUriDescriptions("profiles"); 76 //componentsOverview.rssUri = Config.getRssUriDescriptions("components"); 77 78 rssProfilesMenu = new RssContextMenu(Config.getRssUriDescriptions("profiles")); 79 rssComponentsMenu = new RssContextMenu(Config.getRssUriDescriptions("components")); 80 69 81 70 setUserSpace(); 82 71 … … 88 77 profilesSrv = ProfileListService.getInstance(userSpace); 89 78 90 //profilesOverview.rssUri = Config.getRssUriDescriptions("profiles"); 91 //componentsOverview.rssUri = Config.getRssUriDescriptions("components"); 92 93 rssProfilesMenu.rssUri = Config.getRssUriDescriptions("profiles"); 94 rssComponentsMenu.rssUri=Config.getRssUriDescriptions("components"); 95 79 96 80 refresh(); 97 81 } … … 250 234 height="70%" 251 235 browseMenu="{profilesMenu}" 252 rssLinkMenu = "{rssProfilesMenu}"236 typeOfDescription = "profiles" 253 237 createNew="createNewProfile(event)" 254 238 /> … … 273 257 height="70%" 274 258 browseMenu="{componentsMenu}" 259 typeOfDescription= "components" 275 260 createNew="createNewComponent(event)" 276 261 /> -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml
r2313 r2314 16 16 <mx:Script> 17 17 <![CDATA[ 18 import clarin.cmdi.componentregistry.common.components.RssContextMenu;19 18 import clarin.cmdi.componentregistry.common.ItemDescription; 20 19 import clarin.cmdi.componentregistry.common.components.BrowseContextMenu; 21 20 import clarin.cmdi.componentregistry.common.components.RegistryViewStack; 21 import clarin.cmdi.componentregistry.common.components.RssContextMenu; 22 import clarin.cmdi.componentregistry.common.components.LabelButton; 22 23 import clarin.cmdi.componentregistry.services.Config; 24 25 import flash.events.ContextMenuEvent; 26 import flash.ui.ContextMenu; 27 import flash.ui.ContextMenuItem; 23 28 24 29 import mx.collections.ArrayCollection; 25 30 import mx.controls.Text; 31 import mx.core.UIComponent; 26 32 27 33 private var defaultColor:Object; 28 34 private var currentSelectedItem:ItemDescription; 35 29 36 [Bindable] 30 37 private var menu:BrowseContextMenu; 31 38 32 [Bindable]33 public var rssLinkMenu:RssContextMenu;34 35 39 private var _itemToScrollTo:ItemDescription; 36 40 37 41 //[Bindable] 38 //public var rssUri:String;42 public var typeOfDescription:String; 39 43 40 44 [Bindable] … … 91 95 menu.dataGrid = dataGrid; 92 96 } 97 98 99 93 100 94 101 private function handleKeyUp(event:KeyboardEvent):void { … … 112 119 113 120 114 121 private function goToFeed():void{ 122 var request:URLRequest = new URLRequest(Config.getRssUriDescriptions(typeOfDescription)); 123 navigateToURL(request, "_blank"); 124 } 115 125 ]]> 116 126 </mx:Script> 117 127 118 <mx:VBox id="linkToFeed" 119 contextMenu="{rssLinkMenu.cm}" 120 > 121 <mx:Label text ="Feed"/> 122 <comp:LinkRenderer text = "{rssLinkMenu.rssUri}" /> 123 </mx:VBox> 124 128 <mx:HBox contextMenu="{(new RssContextMenu(typeOfDescription)).cm}"> 129 <mx:Button id="rssLabelButton" 130 label="Feed" 131 click="goToFeed()"/> 132 </mx:HBox> 125 133 126 134
Note: See TracChangeset
for help on using the changeset viewer.