Changes between Version 7 and Version 8 of NFR_LARGE_RESOURCES_R0


Ignore:
Timestamp:
11/09/09 01:02:16 (15 years ago)
Author:
meddle
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NFR_LARGE_RESOURCES_R0

    v7 v8  
    100100   * As in the analysis when importing media resources ask the user or link or embed the media. 
    101101    * The FileDialog's JFileChooser should be modified to have combo box with options how to import the binary data. 
    102     * If modifying the FileDialog is impossible or hard and time taking for now use dialog with combo-box (radio buttons).  
    103     * In the both cases the choices are: 
     102     * JFileChooser can have an accessory component used for additional information when choosing files. 
     103     * Modify the FileDialogInput to have accessory logic. 
     104      * Make two inner classes in the FileDialogInput: 
     105       * FileAccessory, baseProObject, has two abstract methods: 
     106         * A property with a JComponent. 
     107         * getData method, returning AccessoryData. 
     108         * It can have access to a jFileChooser to track the selected files, so it has property containing JFileChooser. 
     109       * AccessoryData, holds data provided by a FileAccessory, immutable, has only one method getData 
     110      * The two classes are generic for their data. 
     111      * FileDialogInput can be constructed with an FileAccessory, it can be null if no accessory is needed. 
     112      * FileDialog sets its JFileChooser accessory to the swing component of the one in the input if it is not null. 
     113      * When constructing the FileContainer as a result of showing FileDialog, it can be constructed with AccessoryData, which can be null. 
     114      * The FileContainer has method getAccessoryData with one parameter the generic type of the data. 
     115      * Add new FileAccessory, BinDataChooser in the main.funk.resources module. 
     116       * It has JLabels with information for the user. 
     117       * It has combo bx with choices for embed and link (can be with radio buttons if dido wants :)) 
     118       * It has check box for copying to the '_files' directory. 
     119      * Add new AccessoryData in the same module, its generic type is ImportBinDataType. 
     120      * Add enumeration ImportBinDataType in the same module with three choices EMBED, LINK, COPY_AND_LINK. I don't think it is redundant, because the BinDataPersistType another purpose and contains types for remote datas. 
     121      * When importing media resources between 4 and 16 MB pass the new accessory as accessory to the file dialog. 
     122       * That is easy, modify the ImportManagers of the media resources to pass the accessory. 
     123    * The choices are used this way: 
    104124     * Embed -> makes a RawBinData for the resource (as how it is now) 
    105125     * Link -> makes a FileBinData to a file with an absolute path on the file system. 
     
    115135  * [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.base.commons/src/test/java/org/sophie2/base/commons/util/bindata/RemoteBinDataTest.java RemoteBinDataTest] (optional) 
    116136  * [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.main.func.media/src/test/java/org/sophie2/main/func/media/model/resources/MediaPersistenceTest.java MediaPersistenceTest] 
     137  * [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.main.func.file/src/test/java/org/sophie2/main/func/file/dialogs/FileDialogAccessoryDemo.java FileDialogAccessory] 
    117138 * Branch in the track browser: 
    118139  * [browser:/branches/private/meddle/nfr_large_resources]