summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java
diff options
context:
space:
mode:
authorTobias Spitzer2014-08-26 07:42:14 +0200
committerTobias Spitzer2014-08-26 07:42:14 +0200
commit4fcc347e9b95c5dbf7ab2df310e66892c8da4380 (patch)
treea270ce5b3735ebe99b8b2df1efe9eb56d04f9296 /Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java
parentsfda (diff)
parentdate geändert (diff)
downloadtutor-module-4fcc347e9b95c5dbf7ab2df310e66892c8da4380.tar.gz
tutor-module-4fcc347e9b95c5dbf7ab2df310e66892c8da4380.tar.xz
tutor-module-4fcc347e9b95c5dbf7ab2df310e66892c8da4380.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tutor-module
Conflicts: Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class fsad
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 7a439934..aae76861 100644
--- a/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java
+++ b/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java
@@ -84,6 +84,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.
@@ -114,9 +115,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);
@@ -563,5 +561,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