diff options
| author | Jonathan Bauer | 2015-08-31 14:46:53 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-08-31 14:46:53 +0200 |
| commit | b3892df2263b2676219c3c42b7cf62741ee08b4a (patch) | |
| tree | 77bcaf8aee9785805c9e8b35fa1f03dced54fdc0 /dozentenmodul/src/main/java | |
| parent | [server] Add SMTP mailer class (diff) | |
| download | tutor-module-b3892df2263b2676219c3c42b7cf62741ee08b4a.tar.gz tutor-module-b3892df2263b2676219c3c42b7cf62741ee08b4a.tar.xz tutor-module-b3892df2263b2676219c3c42b7cf62741ee08b4a.zip | |
[client] better user feedback if dates are invalid in LectureDetails
Diffstat (limited to 'dozentenmodul/src/main/java')
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java | 6 | ||||
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java index 90a15b45..85f4813e 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java @@ -338,7 +338,7 @@ public class LectureDetailsWindow extends LectureDetailsWindowLayout implements } } if (versionSize == 0) { - Gui.showMessageBox(this, "Fehler bei der Abfrag der Größe des Images.", MessageType.ERROR, null, + Gui.showMessageBox(this, "Fehler bei der Abfrage der Größe des Images.", MessageType.ERROR, null, null); return; } @@ -455,13 +455,13 @@ public class LectureDetailsWindow extends LectureDetailsWindowLayout implements if (start.after(end)) { startDate.setForeground(Color.red); if (feedback) - Gui.showMessageBox(me, "Startzeit is nach Endzeit!", MessageType.ERROR, LOGGER, null); + Gui.showMessageBox(me, "Start der Veranstaltung ist nach dem Enddatum!", MessageType.ERROR, LOGGER, null); } else { startDate.setForeground(dateTimeTextColor); final Date now = new Date(); if (now.after(end)) { if (feedback) - Gui.showMessageBox(me, "Endzeit liegt in die Vergangenheit!", MessageType.ERROR, LOGGER, + Gui.showMessageBox(me, "Enddatum liegt in der Vergangenheit!", MessageType.ERROR, LOGGER, null); endDate.setForeground(Color.red); } else { diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java index 70bc06d2..10bdab30 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/ImageCreationWizard.java @@ -78,6 +78,11 @@ public class ImageCreationWizard extends Wizard implements UiFeedback { new ImageVersionWrite(uploadWizardState.isRestricted)); } + /** + * Checks the validity of the state + * + * @return true if we have all the needed information in the state, false otherwise + */ private boolean isStateValid() { // debug purposes if (uploadWizardState.name == null || uploadWizardState.name.isEmpty()) { |
