Changeset 206 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml
- Timestamp:
- 03/03/10 12:01:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml
r161 r206 16 16 <mx:Script> 17 17 <![CDATA[ 18 import clarin.cmdi.componentregistry.common.components.BrowseContextMenu; 18 19 import mx.collections.ArrayCollection; 19 20 import mx.events.CollectionEvent; … … 22 23 23 24 private var currentSelectedItem:ItemDescription; 24 25 [Bindable] 26 private var menu:BrowseContextMenu; 25 27 26 28 private function dispatchBrowserSelectionEvent():void { … … 34 36 } 35 37 } 38 39 public function set browseMenu(browseMenu:BrowseContextMenu):void { 40 this.menu = browseMenu; 41 menu.dataGrid= dataGrid; 42 } 43 44 private function handleKeyUp(event:KeyboardEvent):void { 45 if (event.keyCode == Keyboard.DELETE) { 46 menu.deleteSelectedItems(); 47 } 48 } 36 49 ]]> 37 50 </mx:Script> 38 51 39 <comp:DownloadMenu id="menu"40 dataGrid="{dataGrid}" viewStack="{this.parentApplication.viewStack}"/>41 52 <mx:HBox horizontalAlign="center" 42 53 verticalAlign="middle" … … 47 58 48 59 <comp:FilteringDataGrid id="dataGrid" 49 50 51 52 53 click="{dispatchBrowserSelectionEvent()}"54 55 56 57 allowMultipleSelection="false"58 59 >60 x="0" 61 y="112" 62 width="100%" 63 height="100%" 64 click="dispatchBrowserSelectionEvent()" 65 dataProvider="{browserDataProvider}" 66 columns="{browserColumns}" 67 contextMenu="{menu.cm}" 68 allowMultipleSelection="true" 69 searchInput="{searchBox}" 70 keyUp="handleKeyUp(event)"> 60 71 </comp:FilteringDataGrid> 61 72 </mx:VBox>
Note: See TracChangeset
for help on using the changeset viewer.