Last change
on this file since 1255 was
1255,
checked in by twagoo, 13 years ago
|
When a file (component or profile xml expected) is selected for import, it is read and import type, name and description values are extracted. For this, a new 'fileLoaded' event is added to UploadService?.
Component/Profile? selection radio buttons are no longer needed on import form, so they have been replaced by a label that gets its text from the detected type.
|
File size:
730 bytes
|
Line | |
---|
1 | package clarin.cmdi.componentregistry.importer { |
---|
2 | import clarin.cmdi.componentregistry.common.ItemDescription; |
---|
3 | |
---|
4 | import flash.events.Event; |
---|
5 | import flash.net.FileReference; |
---|
6 | |
---|
7 | public class FileLoadedEvent extends Event { |
---|
8 | public static const FILE_LOADED:String = "fileLoaded"; |
---|
9 | private var _fileReference:FileReference; |
---|
10 | |
---|
11 | public function FileLoadedEvent(fileReference:FileReference, bubbles:Boolean = false, cancelable:Boolean = false) { |
---|
12 | super(FILE_LOADED, bubbles, cancelable); |
---|
13 | _fileReference = fileReference; |
---|
14 | } |
---|
15 | |
---|
16 | public function get fileReference():FileReference { |
---|
17 | return _fileReference; |
---|
18 | } |
---|
19 | |
---|
20 | override public function clone():Event { |
---|
21 | return new FileLoadedEvent(_fileReference, bubbles, cancelable); |
---|
22 | } |
---|
23 | |
---|
24 | } |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.