From 5f9def7c33845efcff91ec1edf7caae71fc4ed75 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Mon, 25 Aug 2014 17:50:08 +0200 Subject: Verhindere unerlaubtes zurückgehen auf vorige Seite während Up-DOwnloads --- .../src/gui/image/FTPEditDownloader_GUI.java | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java') diff --git a/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java b/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java index 8f7bb8ce..c68ccff2 100644 --- a/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java +++ b/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java @@ -83,6 +83,7 @@ public class FTPEditDownloader_GUI extends JFrame implements JButton btnZurck = new JButton("Zur\u00FCck"); JButton btnDownloadStarten = new JButton("Download starten"); private JLabel lblAnleitung; + private boolean isCurrentlyLoading = false; // currently up or downloading file /** * Create the frame. @@ -113,9 +114,6 @@ public class FTPEditDownloader_GUI extends JFrame implements } catch (TException e1) { // TODO Auto-generated catch block e1.printStackTrace(); - JOptionPane.showMessageDialog(null, e1.getCause() - + "\n" + e1.getStackTrace(), - "Debug-Message", JOptionPane.ERROR_MESSAGE); } task.cancel(true); System.exit(0); @@ -561,5 +559,17 @@ public class FTPEditDownloader_GUI extends JFrame implements } - } -} \ No newline at end of file + }//end PropertyChange() + + public boolean isCurrentlyLoading() { + isCurrentlyLoading = false; + + if (labelVerbleibend.getText().equals("0")) { + isCurrentlyLoading = false; + } else { + isCurrentlyLoading = true; + } + System.out.println("isCurrentlyLoading"+isCurrentlyLoading); + return isCurrentlyLoading; + }// end isCurrentlyLoading() +}// end class \ No newline at end of file -- cgit v1.2.3-55-g7522