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: |