Package penny.downloadmanager.view

Examples of penny.downloadmanager.view.DownloadDataView


        download.stop();
    }
}//GEN-LAST:event_formWindowClosing

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        DownloadDataView view = new DownloadDataView(download);
        view.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed
View Full Code Here


            add(u);
        }
    }

    public void openDownloadView(Download download) {
        DownloadDataView view = null;

        for (DownloadDataView v : downloadViews) {
            if (v.getDownload().equals(mainModel.getSelectedDownload())) {
                view = v;
                break;
            }
        }

        if (view == null) {
            view = new DownloadDataView(mainModel.getSelectedDownload());
            downloadViews.add(view);
        }

        view.setVisible(true);
        view.addWindowListener(this);
    }
View Full Code Here

    @Override
    public void windowClosing(WindowEvent e) {
        if (e.getWindow().equals(View.getMainWindowView())) {
            exit();
        } else if (e.getWindow() instanceof DownloadDataView) {
            DownloadDataView view = (DownloadDataView) e.getWindow();
            view.removeWindowListener(this);
            view.getDownload().removePropertyChangeListener(view);
            downloadViews.remove(view);

        }
    }
View Full Code Here

TOP

Related Classes of penny.downloadmanager.view.DownloadDataView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.