Changeset 2328
- Timestamp:
- 10/23/12 13:25:57 (12 years ago)
- Location:
- ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml
r2320 r2328 170 170 label="filter..."/> 171 171 <mx:Label text="Showing {dataGrid.dataProvider.length} of {dataGrid.unfilteredLength}"/> 172 173 174 <comp:RssLinkButton 175 contextMenu = "{(new RssDescriptionsContextMenu(typeOfDescription)).cm}" 176 click="goToFeed()" 177 /> 178 </mx:HBox> 172 </mx:HBox> 173 <comp:RssLinkButton 174 contextMenu = "{(new RssDescriptionsContextMenu(typeOfDescription)).cm}" 175 click="goToFeed()" 176 /> 179 177 </mx:HBox> 180 178 -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/CommentsPanel.as
r2320 r2328 54 54 } 55 55 56 private function makeRssLinkButton():RssLinkButton{ 56 private function makeRssLinkButton():HBox{ 57 var result:HBox = new HBox(); 58 result.setStyle("horizontalAlign", "right"); 59 result.percentWidth=100; 60 this.setStyle("paddingRight", 5); 61 57 62 var rssButton:RssLinkButton = new RssLinkButton(); 58 63 rssButton.contextMenu = (new RssCommentsContextMenu(_itemDescription)).cm; 59 64 rssButton.addEventListener(MouseEvent.CLICK, goToFeed); 60 return rssButton; 65 66 result.addChild(rssButton); 67 return result; 61 68 } 62 69 … … 71 78 72 79 // Rss feed "button" 73 var rssButton: RssLinkButton= makeRssLinkButton();80 var rssButton:HBox = makeRssLinkButton(); 74 81 addChild(rssButton); 75 82 -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/RssLinkButton.mxml
r2321 r2328 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" 3 > 2 <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" 3 cornerRadius="5" 4 borderStyle="solid" 5 > 4 6 <mx:Script> 5 7 <![CDATA[ 6 8 import clarin.cmdi.componentregistry.common.StyleConstants; 9 10 private const OUT_FOCUS_BORDER_COLOR:String="white"; 11 private const IN_FOCUS_BORDER_COLOR:String = "haloBlue"; 12 13 private function focusBorder():void{ 14 setStyle("borderColor", IN_FOCUS_BORDER_COLOR); 15 16 } 17 18 private function unFocusBorder():void{ 19 setStyle("borderColor", OUT_FOCUS_BORDER_COLOR); 20 } 7 21 ]]> 8 22 </mx:Script> 9 23 10 24 <mx:Image id="pict" 11 source="{StyleConstants.rssIcon}" 25 source="{StyleConstants.rssIcon}" 12 26 toolTip = "RSS feed" 13 27 useHandCursor="true" 14 28 buttonMode="true" 29 mouseOver = "focusBorder()" 30 mouseOut = "unFocusBorder()" 15 31 /> 16 32 </mx:Canvas>
Note: See TracChangeset
for help on using the changeset viewer.