|
|
|
@ -17,10 +17,10 @@ package gui;
|
|
|
|
|
* @author Louis Royer
|
|
|
|
|
* @author Flavien Haas
|
|
|
|
|
* @author JS Auge
|
|
|
|
|
* @version 1.0
|
|
|
|
|
*/
|
|
|
|
|
public class DownloadSelectionGen extends javax.swing.JPanel {
|
|
|
|
|
|
|
|
|
|
// Variables declaration - do not modify
|
|
|
|
|
private javax.swing.JButton jButton1;
|
|
|
|
|
private javax.swing.JButton jButton2;
|
|
|
|
|
private javax.swing.JLabel jLabel1;
|
|
|
|
@ -30,9 +30,11 @@ public class DownloadSelectionGen extends javax.swing.JPanel {
|
|
|
|
|
private String[] listFilesToDownload;
|
|
|
|
|
private ClientManagement clientManagement;
|
|
|
|
|
private Logger logger;
|
|
|
|
|
// End of variables declaration
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param listFilesToDownload list of files to display
|
|
|
|
|
* @param clientManagement clientManagement
|
|
|
|
|
* @param logger logger
|
|
|
|
|
* Creates new form ArgumentsGen
|
|
|
|
|
*/
|
|
|
|
|
public DownloadSelectionGen(String[] listFilesToDownload, ClientManagement clientManagement, Logger logger) {
|
|
|
|
@ -44,8 +46,6 @@ public class DownloadSelectionGen extends javax.swing.JPanel {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This method is called from within the constructor to initialize the form.
|
|
|
|
|
* WARNING: Do NOT modify this code. The content of this method is always
|
|
|
|
|
* regenerated by the Form Editor.
|
|
|
|
|
*/
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">
|
|
|
|
@ -116,6 +116,8 @@ public class DownloadSelectionGen extends javax.swing.JPanel {
|
|
|
|
|
);
|
|
|
|
|
}// </editor-fold>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Actions to initiate when button "Download" is pressed */
|
|
|
|
|
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
|
String fileSelected = jList1.getSelectedValue();
|
|
|
|
|
System.out.println("File to download: " + fileSelected);
|
|
|
|
@ -123,6 +125,7 @@ public class DownloadSelectionGen extends javax.swing.JPanel {
|
|
|
|
|
//DownloadFileGUI.download();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Actions to initiate when button "Back" is initiate */
|
|
|
|
|
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
|
|
ArgumentsGen a = new ArgumentsGen();
|
|
|
|
|
JFrame topFrame = (JFrame) SwingUtilities.getWindowAncestor(this);
|
|
|
|
|