summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java
diff options
context:
space:
mode:
authorMichael Wilson2014-08-25 17:50:08 +0200
committerMichael Wilson2014-08-25 17:50:08 +0200
commit5f9def7c33845efcff91ec1edf7caae71fc4ed75 (patch)
treedcc58f563fe379910b3858b0ea73a6abd2fcbfaf /Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java
parentMerge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff)
downloadtutor-module-5f9def7c33845efcff91ec1edf7caae71fc4ed75.tar.gz
tutor-module-5f9def7c33845efcff91ec1edf7caae71fc4ed75.tar.xz
tutor-module-5f9def7c33845efcff91ec1edf7caae71fc4ed75.zip
Verhindere unerlaubtes zurückgehen auf vorige Seite während Up-DOwnloads
Diffstat (limited to 'Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java')
-rw-r--r--Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java20
1 files changed, 15 insertions, 5 deletions
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