summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
diff options
context:
space:
mode:
authorJonathan Bauer2015-08-10 15:10:45 +0200
committerJonathan Bauer2015-08-10 15:10:45 +0200
commitf035c9f75a6ebf91c37d68fa9c0977bde381532a (patch)
tree545f66de43d27cfbe646c7419dce5eb231b1d73f /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
parent[client] removed right info pane for lecture. Added start/end date in table. (diff)
downloadtutor-module-f035c9f75a6ebf91c37d68fa9c0977bde381532a.tar.gz
tutor-module-f035c9f75a6ebf91c37d68fa9c0977bde381532a.tar.xz
tutor-module-f035c9f75a6ebf91c37d68fa9c0977bde381532a.zip
[client] "download" button in popupmenu, fine tune buttons on image list
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
index 042824f3..10c3e8fd 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
@@ -45,6 +45,7 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout implements UiFe
private ImageDetailsRead image = null;
private JMenuItem popupItemNew = new JMenuItem("Neue Veranstaltung");
+ private JMenuItem popupItemDownload = new JMenuItem("Download");
private JMenuItem popupItemDelete = new JMenuItem("Löschen");
public ImageDetailsWindow(Frame modalParent) {
@@ -83,6 +84,10 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout implements UiFe
// TODO new lecture wizard with this image preset
LOGGER.debug("New lecture clicked");
}
+ if (e.getSource().equals(popupItemDownload)) {
+ // TODO delete that image
+ LOGGER.debug("Download image clicked");
+ }
if (e.getSource().equals(popupItemDelete)) {
// TODO delete that image
LOGGER.debug("Delete image clicked");
@@ -92,6 +97,7 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout implements UiFe
});
// add them to the popup menu
pop.addMenuItem(popupItemNew);
+ pop.addMenuItem(popupItemDownload);
pop.addSeparator();
pop.addMenuItem(popupItemDelete);
// TODO check permissions and disable them if needed