Changeset 2338
- Timestamp:
- 10/29/12 19:01:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/CommentsPanel.as
r2337 r2338 25 25 import mx.controls.scrollClasses.ScrollBar; 26 26 27 28 27 29 [Event(name="commentsLoaded",type="flash.events.Event")] 28 30 public class CommentsPanel extends Canvas 29 31 { 30 32 public static const COMMENTS_LOADED:String = "commentsLoaded"; 33 34 35 public static const SCROLL_BAR_SWITCHED_EVENT:String = "verticalScrollBarSwitched"; 36 [Bindable] 37 private var _vScrollBarVisibility:Boolean; 31 38 32 39 [Bindable] … … 53 60 this.setStyle("layout", "absolute"); 54 61 this.verticalScrollPolicy = "on"; 55 62 this.addEventListener(SCROLL_BAR_SWITCHED_EVENT, vScrollBarSwitchedHandler); 56 63 // this is for responding to the deletion of comments. At this point there is no way to distinghuish between item and component deletion 57 64 // and that probably is fine since they mostly require the same response. It does mean that this component will also reload when a … … 60 67 } 61 68 62 69 private function vScrollBarSwitchedHandler(e:Event):void{ 70 this.verticalScrollBar.visible = _vScrollBarVisibility; 71 } 72 73 // where to put this dispatcher, where the panel is redrawn/made a displayObject? where is it? 74 public function vScrollBarDispatcher():void { 75 if (_vScrollBarVisibility != this.verticalScrollBar.accessibilityEnabled) { 76 _vScrollBarVisibility = this.verticalScrollBar.accessibilityEnabled; 77 dispatchEvent(new Event(SCROLL_BAR_SWITCHED_EVENT)); 78 } 79 } 63 80 64 81 private function makeRssLinkButton():RssLinkButton{
Note: See TracChangeset
for help on using the changeset viewer.