Changeset 2313
- Timestamp:
- 10/17/12 15:36:39 (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
r2312 r2313 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 19 import clarin.cmdi.componentregistry.common.components.RegistryViewStack; 19 20 import clarin.cmdi.componentregistry.services.BrowserService; … … 53 54 private var startupPanel:String = null; 54 55 56 [Bindable] 57 private var rssProfilesMenu:RssContextMenu; 58 [Bindable] 59 private var rssComponentsMenu:RssContextMenu; 55 60 56 61 … … 68 73 Config.instance.addEventListener(Config.USER_SPACE_TOGGLE_EVENT, setUserSpace); 69 74 70 profilesOverview.rssUri = Config.getRssUriDescriptions("profiles"); 71 componentsOverview.rssUri = Config.getRssUriDescriptions("components"); 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")); 72 80 73 81 setUserSpace(); … … 79 87 componentsSrv = ComponentListService.getInstance(userSpace); 80 88 profilesSrv = ProfileListService.getInstance(userSpace); 81 profilesOverview.rssUri = Config.getRssUriDescriptions("profiles"); 82 componentsOverview.rssUri = Config.getRssUriDescriptions("components"); 89 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 83 96 refresh(); 84 97 } … … 237 250 height="70%" 238 251 browseMenu="{profilesMenu}" 252 rssLinkMenu = "{rssProfilesMenu}" 239 253 createNew="createNewProfile(event)" 240 254 /> -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml
r2312 r2313 16 16 <mx:Script> 17 17 <![CDATA[ 18 import clarin.cmdi.componentregistry.common.components.RssContextMenu; 18 19 import clarin.cmdi.componentregistry.common.ItemDescription; 19 20 import clarin.cmdi.componentregistry.common.components.BrowseContextMenu; … … 28 29 [Bindable] 29 30 private var menu:BrowseContextMenu; 31 32 [Bindable] 33 public var rssLinkMenu:RssContextMenu; 30 34 31 35 private var _itemToScrollTo:ItemDescription; 32 36 33 [Bindable]34 public var rssUri:String;37 //[Bindable] 38 //public var rssUri:String; 35 39 36 40 [Bindable] … … 107 111 } 108 112 109 private function copyRssLink():void { 110 System.setClipboard(rssLink.text); 111 } 113 114 112 115 ]]> 113 116 </mx:Script> 114 117 115 <mx:HBox> 116 <mx:Label text="RSS feed: "/> 117 <comp:LinkRenderer id="rssLink" text="{rssUri}"/> 118 <mx:Button label="copy to clipboard" toolTip="Click here to copy the uri to your clipboard" click="copyRssLink();" /> 119 </mx:HBox> 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 125 120 126 121 127 <mx:HBox paddingLeft="5"
Note: See TracChangeset
for help on using the changeset viewer.