summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
diff options
context:
space:
mode:
authorJonathan Bauer2015-08-31 15:28:26 +0200
committerJonathan Bauer2015-08-31 15:28:26 +0200
commit3a7304b69366eb8eabdeee6b8fce2784d845fc1f (patch)
tree0efb3b4a610004ad0efb3e90f890fffadf8c137d /dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
parent[client] re-enable download button in ImageListWindow if user aborts filechooser (diff)
downloadtutor-module-3a7304b69366eb8eabdeee6b8fce2784d845fc1f.tar.gz
tutor-module-3a7304b69366eb8eabdeee6b8fce2784d845fc1f.tar.xz
tutor-module-3a7304b69366eb8eabdeee6b8fce2784d845fc1f.zip
[client] ask user confirmation before deleting a lecture in LectureListWindow
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
index 6f48c706..36dce613 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/ThriftActions.java
@@ -940,14 +940,27 @@ public class ThriftActions {
* Methods to delete lectures
*
********************************************************************************/
+ /**
+ * Callback interface reporting the status of the deletion back to the gui
+ */
public interface DeleteLectureCallback {
void deleted(boolean success);
}
+ /**
+ * NON-BLOCKING
+ * Deletes the lecture with the given lectureId
+ *
+ * @param frame
+ * @param lectureId
+ * @param callback
+ */
public static void deleteLecture(final Frame frame, final String lectureId,
final DeleteLectureCallback callback) {
if (lectureId == null)
return;
+ if (!userConfirmed(frame, "Wollen Sie diese Veranstaltung wirklick löschen?"))
+ return;
QuickTimer.scheduleOnce(new Task() {
boolean success = false;