diff options
author | unknown | 2014-02-26 16:28:11 +0100 |
---|---|---|
committer | unknown | 2014-02-26 16:28:11 +0100 |
commit | d07c7effb917fdb0e6092761b4c0d0f42c3895f7 (patch) | |
tree | 7bb7ebdc3a9b252fbd2675cbd92996110d58075c | |
parent | Kommunikation von BwLehrpool Suite zu BwLehrpool Suite Server läuft nun über ... (diff) | |
download | tutor-module-d07c7effb917fdb0e6092761b4c0d0f42c3895f7.tar.gz tutor-module-d07c7effb917fdb0e6092761b4c0d0f42c3895f7.tar.xz tutor-module-d07c7effb917fdb0e6092761b4c0d0f42c3895f7.zip |
-Suchfenster verbessert
- On The Fly nach Name funktioniert nun
- Tab Meine Images nun Funktionsfähig
-Möglichkeit der Konfiguration der Anwendung ist geschaffen, somit können die beiden GUIs BillOfRights und der Link zu vmware player für immer ausgeblendet werden
-Thrift ist nun fertig implementiert
118 files changed, 711 insertions, 561 deletions
diff --git a/Dozentenmodul/.classpath b/Dozentenmodul/.classpath index 78464bbf..83245409 100644 --- a/Dozentenmodul/.classpath +++ b/Dozentenmodul/.classpath @@ -25,5 +25,6 @@ <attribute name="maven.scope" value="compile"/>
</attributes>
</classpathentry>
+ <classpathentry kind="lib" path="lib/ini4j-0.5.2-SNAPSHOT.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class Binary files differindex bc461adb..5574d48e 100644 --- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class +++ b/Dozentenmodul/bin/GUI/BillOfRights_GUI$1.class diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class Binary files differindex 82986708..49256cbe 100644 --- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class +++ b/Dozentenmodul/bin/GUI/BillOfRights_GUI$2.class diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class Binary files differindex 8be5df02..a2ae1bca 100644 --- a/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class +++ b/Dozentenmodul/bin/GUI/BillOfRights_GUI$3.class diff --git a/Dozentenmodul/bin/GUI/BillOfRights_GUI.class b/Dozentenmodul/bin/GUI/BillOfRights_GUI.class Binary files differindex 5c2fcdb9..097d3995 100644 --- a/Dozentenmodul/bin/GUI/BillOfRights_GUI.class +++ b/Dozentenmodul/bin/GUI/BillOfRights_GUI.class diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class Binary files differindex ee7be2bd..5e6450cd 100644 --- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class +++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$1.class diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class Binary files differindex f6c046d9..ced30a41 100644 --- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class +++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$2.class diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class Binary files differindex e3137f1d..48a6daee 100644 --- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class +++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$3.class diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class Binary files differindex de9f7f02..9dbe31c6 100644 --- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class +++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI$4.class diff --git a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class Binary files differindex 33b53ff7..6b3d9bc7 100644 --- a/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class +++ b/Dozentenmodul/bin/GUI/EditImageAllgemein_GUI.class diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class Binary files differindex a5f90abf..4d078f87 100644 --- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class +++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$1.class diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class Binary files differindex e0d6b0bb..19f99a6e 100644 --- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class +++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$2.class diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class Binary files differindex 9e416d61..f113d1d7 100644 --- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class +++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$3.class diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class Binary files differindex 2c924bfb..d0382e9c 100644 --- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class +++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI$4.class diff --git a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class Binary files differindex f6ff8e3f..73430373 100644 --- a/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class +++ b/Dozentenmodul/bin/GUI/EditImageTechnisch_GUI.class diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class Binary files differindex cb46e119..0e9c4d8b 100644 --- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class +++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$1.class diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class Binary files differindex 2f31d675..4955ab2d 100644 --- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class +++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$2.class diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class Binary files differindex 93093bec..bdd6d8c3 100644 --- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class +++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$3.class diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class Binary files differindex e0cabe51..507eaf5d 100644 --- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class +++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI$4.class diff --git a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class Binary files differindex 34123c90..050bb3f3 100644 --- a/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class +++ b/Dozentenmodul/bin/GUI/EingabeImageAllgemein_GUI.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class Binary files differindex 38c70c68..f7023022 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$1.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class Binary files differindex f0bc60c5..2f184a13 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$2.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class Binary files differindex 0893f571..c7666426 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$3.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class Binary files differindex b750b556..0b838072 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI$4.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class Binary files differindex 30234793..282dd0fb 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstaltungAllgemein_GUI.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class Binary files differindex f36b268f..cb2858d5 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$1.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class Binary files differindex 385d35b6..672e37c7 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$2.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class Binary files differindex 945432de..297810f5 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$3.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class Binary files differindex 2c97bca7..17769c26 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI$4.class diff --git a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class Binary files differindex 0cfa4c75..ddb5df01 100644 --- a/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class +++ b/Dozentenmodul/bin/GUI/EingabeVeranstatlungTechnisch_GUI.class diff --git a/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class b/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class Binary files differindex eeb3f65f..5c5857a5 100644 --- a/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class +++ b/Dozentenmodul/bin/GUI/ExtendedSearch_GUI.class diff --git a/Dozentenmodul/bin/GUI/Login_GUI$1.class b/Dozentenmodul/bin/GUI/Login_GUI$1.class Binary files differindex f1662376..95ef4bc2 100644 --- a/Dozentenmodul/bin/GUI/Login_GUI$1.class +++ b/Dozentenmodul/bin/GUI/Login_GUI$1.class diff --git a/Dozentenmodul/bin/GUI/Login_GUI$2.class b/Dozentenmodul/bin/GUI/Login_GUI$2.class Binary files differindex e1124c7a..a6218f8a 100644 --- a/Dozentenmodul/bin/GUI/Login_GUI$2.class +++ b/Dozentenmodul/bin/GUI/Login_GUI$2.class diff --git a/Dozentenmodul/bin/GUI/Login_GUI$3.class b/Dozentenmodul/bin/GUI/Login_GUI$3.class Binary files differindex 2fee37d2..faac433d 100644 --- a/Dozentenmodul/bin/GUI/Login_GUI$3.class +++ b/Dozentenmodul/bin/GUI/Login_GUI$3.class diff --git a/Dozentenmodul/bin/GUI/Login_GUI.class b/Dozentenmodul/bin/GUI/Login_GUI.class Binary files differindex 3f50f3e9..b1461bc3 100644 --- a/Dozentenmodul/bin/GUI/Login_GUI.class +++ b/Dozentenmodul/bin/GUI/Login_GUI.class diff --git a/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class b/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class Binary files differindex 64902560..c23e49f9 100644 --- a/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class +++ b/Dozentenmodul/bin/GUI/SearchImage_GUI$1.class diff --git a/Dozentenmodul/bin/GUI/SearchImage_GUI.class b/Dozentenmodul/bin/GUI/SearchImage_GUI.class Binary files differindex 8f3d3005..a8dbcfe7 100644 --- a/Dozentenmodul/bin/GUI/SearchImage_GUI.class +++ b/Dozentenmodul/bin/GUI/SearchImage_GUI.class diff --git a/Dozentenmodul/bin/config/config_file.class b/Dozentenmodul/bin/config/config_file.class Binary files differnew file mode 100644 index 00000000..e0afbded --- /dev/null +++ b/Dozentenmodul/bin/config/config_file.class diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI$1.class b/Dozentenmodul/bin/gui/BillOfRights_GUI$1.class Binary files differindex bc461adb..5574d48e 100644 --- a/Dozentenmodul/bin/gui/BillOfRights_GUI$1.class +++ b/Dozentenmodul/bin/gui/BillOfRights_GUI$1.class diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class b/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class Binary files differindex 82986708..49256cbe 100644 --- a/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class +++ b/Dozentenmodul/bin/gui/BillOfRights_GUI$2.class diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class b/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class Binary files differindex 8be5df02..a2ae1bca 100644 --- a/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class +++ b/Dozentenmodul/bin/gui/BillOfRights_GUI$3.class diff --git a/Dozentenmodul/bin/gui/BillOfRights_GUI.class b/Dozentenmodul/bin/gui/BillOfRights_GUI.class Binary files differindex 5c2fcdb9..097d3995 100644 --- a/Dozentenmodul/bin/gui/BillOfRights_GUI.class +++ b/Dozentenmodul/bin/gui/BillOfRights_GUI.class diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class Binary files differdeleted file mode 100644 index ee7be2bd..00000000 --- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class Binary files differdeleted file mode 100644 index f6c046d9..00000000 --- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$2.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class Binary files differdeleted file mode 100644 index e3137f1d..00000000 --- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$3.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class Binary files differdeleted file mode 100644 index de9f7f02..00000000 --- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI$4.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class Binary files differindex 33b53ff7..6b3d9bc7 100644 --- a/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class +++ b/Dozentenmodul/bin/gui/EditImageAllgemein_GUI.class diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class Binary files differindex a5f90abf..4d078f87 100644 --- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class +++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$1.class diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class Binary files differindex e0d6b0bb..19f99a6e 100644 --- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class +++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$2.class diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class Binary files differindex 9e416d61..f113d1d7 100644 --- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class +++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$3.class diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class Binary files differindex 2c924bfb..d0382e9c 100644 --- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class +++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI$4.class diff --git a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class Binary files differindex f6ff8e3f..73430373 100644 --- a/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class +++ b/Dozentenmodul/bin/gui/EditImageTechnisch_GUI.class diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class Binary files differindex cb46e119..0e9c4d8b 100644 --- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class +++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$1.class diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class Binary files differindex 2f31d675..4955ab2d 100644 --- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class +++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$2.class diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class Binary files differindex 93093bec..bdd6d8c3 100644 --- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class +++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$3.class diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class Binary files differindex e0cabe51..507eaf5d 100644 --- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class +++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI$4.class diff --git a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class Binary files differindex 34123c90..050bb3f3 100644 --- a/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class +++ b/Dozentenmodul/bin/gui/EingabeImageAllgemein_GUI.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class Binary files differindex 38c70c68..f7023022 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$1.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class Binary files differindex f0bc60c5..2f184a13 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$2.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class Binary files differindex 0893f571..c7666426 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$3.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class Binary files differindex b750b556..0b838072 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI$4.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class Binary files differindex 30234793..282dd0fb 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstaltungAllgemein_GUI.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class Binary files differindex f36b268f..cb2858d5 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$1.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class Binary files differindex 385d35b6..672e37c7 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$2.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class Binary files differindex 945432de..297810f5 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$3.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class Binary files differindex 2c97bca7..17769c26 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI$4.class diff --git a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class Binary files differindex 0cfa4c75..ddb5df01 100644 --- a/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class +++ b/Dozentenmodul/bin/gui/EingabeVeranstatlungTechnisch_GUI.class diff --git a/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class b/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class Binary files differindex eeb3f65f..5c5857a5 100644 --- a/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class +++ b/Dozentenmodul/bin/gui/ExtendedSearch_GUI.class diff --git a/Dozentenmodul/bin/gui/Login_GUI$1.class b/Dozentenmodul/bin/gui/Login_GUI$1.class Binary files differindex f1662376..95ef4bc2 100644 --- a/Dozentenmodul/bin/gui/Login_GUI$1.class +++ b/Dozentenmodul/bin/gui/Login_GUI$1.class diff --git a/Dozentenmodul/bin/gui/Login_GUI$2.class b/Dozentenmodul/bin/gui/Login_GUI$2.class Binary files differindex e1124c7a..a6218f8a 100644 --- a/Dozentenmodul/bin/gui/Login_GUI$2.class +++ b/Dozentenmodul/bin/gui/Login_GUI$2.class diff --git a/Dozentenmodul/bin/gui/Login_GUI$3.class b/Dozentenmodul/bin/gui/Login_GUI$3.class Binary files differindex 2fee37d2..faac433d 100644 --- a/Dozentenmodul/bin/gui/Login_GUI$3.class +++ b/Dozentenmodul/bin/gui/Login_GUI$3.class diff --git a/Dozentenmodul/bin/gui/Login_GUI.class b/Dozentenmodul/bin/gui/Login_GUI.class Binary files differindex 3f50f3e9..b1461bc3 100644 --- a/Dozentenmodul/bin/gui/Login_GUI.class +++ b/Dozentenmodul/bin/gui/Login_GUI.class diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$1.class b/Dozentenmodul/bin/gui/SearchImage_GUI$1.class Binary files differdeleted file mode 100644 index 64902560..00000000 --- a/Dozentenmodul/bin/gui/SearchImage_GUI$1.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$2.class b/Dozentenmodul/bin/gui/SearchImage_GUI$2.class Binary files differdeleted file mode 100644 index 349defd0..00000000 --- a/Dozentenmodul/bin/gui/SearchImage_GUI$2.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$3.class b/Dozentenmodul/bin/gui/SearchImage_GUI$3.class Binary files differdeleted file mode 100644 index 4cf2f88b..00000000 --- a/Dozentenmodul/bin/gui/SearchImage_GUI$3.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$4.class b/Dozentenmodul/bin/gui/SearchImage_GUI$4.class Binary files differdeleted file mode 100644 index 47eff0b7..00000000 --- a/Dozentenmodul/bin/gui/SearchImage_GUI$4.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$5.class b/Dozentenmodul/bin/gui/SearchImage_GUI$5.class Binary files differdeleted file mode 100644 index c640b0f0..00000000 --- a/Dozentenmodul/bin/gui/SearchImage_GUI$5.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$6.class b/Dozentenmodul/bin/gui/SearchImage_GUI$6.class Binary files differdeleted file mode 100644 index 38b85fef..00000000 --- a/Dozentenmodul/bin/gui/SearchImage_GUI$6.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$7.class b/Dozentenmodul/bin/gui/SearchImage_GUI$7.class Binary files differdeleted file mode 100644 index a76b3d45..00000000 --- a/Dozentenmodul/bin/gui/SearchImage_GUI$7.class +++ /dev/null diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI$8.class b/Dozentenmodul/bin/gui/SearchImage_GUI$9.class Binary files differindex 26f722d9..e7f32dce 100644 --- a/Dozentenmodul/bin/gui/SearchImage_GUI$8.class +++ b/Dozentenmodul/bin/gui/SearchImage_GUI$9.class diff --git a/Dozentenmodul/bin/gui/SearchImage_GUI.class b/Dozentenmodul/bin/gui/SearchImage_GUI.class Binary files differindex 8f3d3005..a8dbcfe7 100644 --- a/Dozentenmodul/bin/gui/SearchImage_GUI.class +++ b/Dozentenmodul/bin/gui/SearchImage_GUI.class diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class Binary files differindex efb86a09..65a75adf 100644 --- a/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class +++ b/Dozentenmodul/bin/gui/VmWareLink_GUI$1.class diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class Binary files differindex 1d99d01e..1c73d190 100644 --- a/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class +++ b/Dozentenmodul/bin/gui/VmWareLink_GUI$2.class diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class Binary files differindex b3c0ab3a..ba568bd7 100644 --- a/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class +++ b/Dozentenmodul/bin/gui/VmWareLink_GUI$3.class diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI$4.class b/Dozentenmodul/bin/gui/VmWareLink_GUI$4.class Binary files differnew file mode 100644 index 00000000..b30fc786 --- /dev/null +++ b/Dozentenmodul/bin/gui/VmWareLink_GUI$4.class diff --git a/Dozentenmodul/bin/gui/VmWareLink_GUI.class b/Dozentenmodul/bin/gui/VmWareLink_GUI.class Binary files differindex 907d6eb8..4431fe00 100644 --- a/Dozentenmodul/bin/gui/VmWareLink_GUI.class +++ b/Dozentenmodul/bin/gui/VmWareLink_GUI.class diff --git a/Dozentenmodul/lib/ini4j-0.5.2-SNAPSHOT.jar b/Dozentenmodul/lib/ini4j-0.5.2-SNAPSHOT.jar Binary files differnew file mode 100644 index 00000000..6f6877c5 --- /dev/null +++ b/Dozentenmodul/lib/ini4j-0.5.2-SNAPSHOT.jar diff --git a/Dozentenmodul/src/GUI/BillOfRights_GUI.java b/Dozentenmodul/src/GUI/BillOfRights_GUI.java index 6f66d479..a18ce291 100644 --- a/Dozentenmodul/src/GUI/BillOfRights_GUI.java +++ b/Dozentenmodul/src/GUI/BillOfRights_GUI.java @@ -2,32 +2,37 @@ package gui; import java.awt.Dimension; import java.awt.FlowLayout; -import java.awt.Toolkit; -import javax.swing.JButton; -import javax.swing.JDialog; -import javax.swing.JPanel; -import javax.swing.JScrollPane; -import javax.swing.UIManager; -import javax.swing.UnsupportedLookAndFeelException; -import javax.swing.border.EmptyBorder; -import javax.swing.JLabel; import java.awt.Font; -import javax.swing.JTextPane; import java.awt.SystemColor; -import java.awt.event.ActionListener; +import java.awt.Toolkit; import java.awt.event.ActionEvent; -import javax.swing.JFrame; -import javax.swing.JSeparator; -import javax.swing.JMenuBar; -import javax.swing.JMenu; -import javax.swing.JMenuItem; +import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; +import java.io.File; +import java.io.IOException; + +import javax.swing.JButton; import javax.swing.JCheckBox; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; +import javax.swing.JPanel; +import javax.swing.JScrollPane; +import javax.swing.JSeparator; +import javax.swing.JTextArea; +import javax.swing.JTextPane; import javax.swing.SwingConstants; -import javax.swing.event.ChangeListener; +import javax.swing.UIManager; +import javax.swing.UnsupportedLookAndFeelException; +import javax.swing.border.EmptyBorder; import javax.swing.event.ChangeEvent; -import javax.swing.JTextArea; +import javax.swing.event.ChangeListener; + +import org.ini4j.InvalidFileFormatException; +import org.ini4j.Wini; @@ -38,44 +43,37 @@ public class BillOfRights_GUI extends JFrame { String[] result; JButton fwdButton; JCheckBox chckbxAkzeptieren; - /** - * Launch the application. - */ - public static void main(String[] args) { - try { - BillOfRights_GUI dialog = new BillOfRights_GUI(); - dialog.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); - dialog.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } /** * Create the dialog. */ public BillOfRights_GUI() { + setResizable(false); addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet das Programm beim Klick auf das X System.exit(0); } }); try { + //Setzt das Look & Feel auf das System UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { // TODO Auto-generated catch block e.printStackTrace(); } - setTitle("Dozentenmodul *Prototyp*"); + //Setzt den Fenstertitel + setTitle("bwLehrpool Suite *Prototyp*"); + //Zentiert das Fenster in der Bildschirmmitte Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int top=(screenSize.height - 722) / 2; int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 545, 366); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -123,6 +121,17 @@ public class BillOfRights_GUI extends JFrame { fwdButton = new JButton("Weiter"); fwdButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + try { + Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini")); + ini.put("main", "BillOfRights",true); + ini.store(); + } catch (InvalidFileFormatException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } catch (IOException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } VmWareLink_GUI ac=new VmWareLink_GUI(); ac.setVisible(true); dispose(); @@ -147,8 +156,10 @@ public class BillOfRights_GUI extends JFrame { chckbxAkzeptieren = new JCheckBox("Ja, ich akzeptiere die Vereinbarung. Benachrichtigung nicht mehr anzeigen."); chckbxAkzeptieren.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent arg0) { + //Beim Akzeptieren der Bestätigung wird der Weiter-Button verfügbar gemacht if(chckbxAkzeptieren.isSelected()==true) { + fwdButton.setEnabled(true); } diff --git a/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java b/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java index 784c66a7..160a7fb4 100644 --- a/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java +++ b/Dozentenmodul/src/GUI/EditImageAllgemein_GUI.java @@ -1,40 +1,42 @@ package gui; +import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; +import java.awt.Font; +import java.awt.SystemColor; import java.awt.Toolkit; -import javax.swing.JFrame; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import java.util.Map; + import javax.swing.JButton; -import javax.swing.JDialog; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; +import javax.swing.JSeparator; +import javax.swing.JTextArea; +import javax.swing.JTextField; +import javax.swing.JTextPane; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.border.EmptyBorder; -import java.awt.Color; -import javax.swing.JLabel; -import java.awt.Font; -import javax.swing.JTextPane; -import java.awt.SystemColor; -import javax.swing.JTextField; -import java.awt.event.ActionListener; -import java.awt.event.ActionEvent; -import javax.swing.JSeparator; -import javax.swing.JMenuBar; -import javax.swing.JMenu; -import javax.swing.JMenuItem; - -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; import javax.swing.border.TitledBorder; -import javax.swing.JTextArea; + +import server.Server.Client; +import thrift.ThriftConnection; import models.Image; import models.person; -import java.awt.event.MouseAdapter; -import java.awt.event.MouseEvent; - @SuppressWarnings("serial") public class EditImageAllgemein_GUI extends JFrame { @@ -47,18 +49,8 @@ public class EditImageAllgemein_GUI extends JFrame { private JTextField Tel; private JTextField Fak; private JTextField imagename; - /** - * Launch the application. - */ - public static void main(String[] args) { - try { - EditImageAllgemein_GUI dialog = new EditImageAllgemein_GUI(); - dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); - dialog.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } + ThriftConnection thrift=new ThriftConnection(); + Client client=thrift.getThriftConnection(); /** * Create the dialog. @@ -67,9 +59,11 @@ public class EditImageAllgemein_GUI extends JFrame { addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet die Anwendung bei einem Klick auf das X System.exit(0); } }); + //Verhindert das vergrößern des Fensters setResizable(false); try { @@ -79,12 +73,15 @@ public class EditImageAllgemein_GUI extends JFrame { // TODO Auto-generated catch block e.printStackTrace(); } + //Setzt den Fenstertitel setTitle("bwLehrpool Suite *Prototyp*"); + + //Zentriert das Fenster in der Bildmitte Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int top=(screenSize.height - 722) / 2; int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -226,7 +223,7 @@ public class EditImageAllgemein_GUI extends JFrame { lblHauptmen.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { - + //Durch den Klick auf Button Hauptmenpü wird dieses Fenster unsichtbar und das Hauptmenü sichtbar EditImageAllgemein_GUI.this.setVisible(false); MainMenue_GUI main=new MainMenue_GUI(); main.setVisible(true); @@ -262,6 +259,8 @@ public class EditImageAllgemein_GUI extends JFrame { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + + //Setzen der Eingabe im Model, dadurch bleiben die Daten bei einem erneuten Aufruf verfügbar person.verantowrtlicher.setVorname(Vorname.getText()); person.verantowrtlicher.setName(Nachname.getText()); person.verantowrtlicher.setEMail(EMail.getText()); @@ -269,6 +268,7 @@ public class EditImageAllgemein_GUI extends JFrame { person.verantowrtlicher.setHochschule(Hochschule.getText()); person.verantowrtlicher.setTel(Tel.getText()); Image.image.setImagename(imagename.getText()); + MainMenue_GUI sr=new MainMenue_GUI(); sr.setVisible(true); dispose(); @@ -282,8 +282,10 @@ public class EditImageAllgemein_GUI extends JFrame { JButton cancelButton = new JButton("Weiter"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + //Prüfung ob alle notwendigen Felder ausgefüllt sind if(Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false) { + //Setzen der Eingabe im Model, dadurch bleiben die Daten bei einem erneuten Aufruf verfügbar person.verantowrtlicher.setVorname(Vorname.getText()); person.verantowrtlicher.setName(Nachname.getText()); person.verantowrtlicher.setEMail(EMail.getText()); @@ -296,6 +298,7 @@ public class EditImageAllgemein_GUI extends JFrame { dispose(); } else{ + //Erzeugen einer Fehlermeldung wenn nicht alle notwendigen Felder ausgefüllt sind JOptionPane.showMessageDialog(null, "Bitte geben Sie alle notwendigen Daten an!", "Error", JOptionPane.ERROR_MESSAGE); } @@ -317,12 +320,6 @@ public class EditImageAllgemein_GUI extends JFrame { JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); - JMenu mnNewMenu = new JMenu("Suchen"); - menuBar.add(mnNewMenu); - - JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); - mnNewMenu.add(mntmVlSuche); - JMenu mnNewMenu_1 = new JMenu("Hilfe"); menuBar.add(mnNewMenu_1); @@ -333,4 +330,6 @@ public class EditImageAllgemein_GUI extends JFrame { mnNewMenu_1.add(mntmOtrs); } + + } diff --git a/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java b/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java index a3fdcf20..f589a091 100644 --- a/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java +++ b/Dozentenmodul/src/GUI/EditImageTechnisch_GUI.java @@ -1,37 +1,37 @@ package gui; +import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; -import java.awt.Toolkit; -import javax.swing.JFrame; -import javax.swing.JButton; -import javax.swing.JDialog; -import javax.swing.JPanel; -import javax.swing.UIManager; -import javax.swing.UnsupportedLookAndFeelException; -import javax.swing.border.EmptyBorder; -import java.awt.Color; -import javax.swing.JLabel; import java.awt.Font; -import javax.swing.JTextPane; import java.awt.SystemColor; -import java.awt.event.ActionListener; +import java.awt.Toolkit; import java.awt.event.ActionEvent; -import javax.swing.JSeparator; -import javax.swing.JMenuBar; -import javax.swing.JMenu; -import javax.swing.JMenuItem; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; -import javax.swing.border.TitledBorder; -import javax.swing.JTextArea; +import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; -import javax.swing.JRadioButton; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; + import javax.swing.ButtonGroup; +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; +import javax.swing.JPanel; +import javax.swing.JRadioButton; +import javax.swing.JSeparator; import javax.swing.JSpinner; +import javax.swing.JTextArea; +import javax.swing.JTextPane; import javax.swing.SpinnerNumberModel; +import javax.swing.UIManager; +import javax.swing.UnsupportedLookAndFeelException; +import javax.swing.border.EmptyBorder; +import javax.swing.border.TitledBorder; import models.Image; @@ -48,18 +48,7 @@ public class EditImageTechnisch_GUI extends JFrame { JRadioButton rdbtnInternetNein; private final ButtonGroup buttonGrouplicense = new ButtonGroup(); private final ButtonGroup buttonGroupInternet = new ButtonGroup(); - /** - * Launch the application. - */ - public static void main(String[] args) { - try { - EditImageTechnisch_GUI dialog = new EditImageTechnisch_GUI(); - dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); - dialog.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } + /** * Create the dialog. @@ -68,24 +57,29 @@ public class EditImageTechnisch_GUI extends JFrame { addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet die Anwendung bei Klick auf das X System.exit(0); } }); + //Verhindert das Vergrößern des Fensters setResizable(false); try { + //setzt das Look & Feel UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { // TODO Auto-generated catch block e.printStackTrace(); } + //Setzt den Titel des Fensters setTitle("bwLehrpool Suite *Prototyp*"); + //Zentriert das Fenster Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int top=(screenSize.height - 722) / 2; int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -154,7 +148,7 @@ public class EditImageTechnisch_GUI extends JFrame { lblHauptmen.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { - + //Macht dieses Fenster unsichtbar und das vorhergehende Fenster sichtbar EditImageTechnisch_GUI.this.setVisible(false); MainMenue_GUI main=new MainMenue_GUI(); main.setVisible(true); @@ -252,9 +246,10 @@ public class EditImageTechnisch_GUI extends JFrame { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + //Setzt die Imagewerte in das Model Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue()); Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue()); - + //Öffnet das vorherige Fenster EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI(); sr.setVisible(true); dispose(); @@ -268,8 +263,7 @@ public class EditImageTechnisch_GUI extends JFrame { JButton cancelButton = new JButton("Weiter"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - - + //Öffnet das nächste Fenster FTPUploader_GUI ea=new FTPUploader_GUI(); ea.setVisible(true); dispose(); @@ -291,13 +285,7 @@ public class EditImageTechnisch_GUI extends JFrame { JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); - - JMenu mnNewMenu = new JMenu("Suchen"); - menuBar.add(mnNewMenu); - - JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); - mnNewMenu.add(mntmVlSuche); - + JMenu mnNewMenu_1 = new JMenu("Hilfe"); menuBar.add(mnNewMenu_1); diff --git a/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java b/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java index 4eb5c609..bfd4354c 100644 --- a/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java +++ b/Dozentenmodul/src/GUI/EingabeImageAllgemein_GUI.java @@ -6,7 +6,6 @@ import java.awt.FlowLayout; import java.awt.Toolkit; import javax.swing.JFrame; import javax.swing.JButton; -import javax.swing.JDialog; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.UIManager; @@ -48,18 +47,6 @@ public class EingabeImageAllgemein_GUI extends JFrame { private JTextField Tel; private JTextField Fak; private JTextField imagename; - /** - * Launch the application. - */ - public static void main(String[] args) { - try { - EingabeImageAllgemein_GUI dialog = new EingabeImageAllgemein_GUI(); - dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); - dialog.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } /** * Create the dialog. @@ -68,24 +55,29 @@ public class EingabeImageAllgemein_GUI extends JFrame { addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet das Fenster auf X System.exit(0); } }); + //Verhindert das Vergrößern des Fensters setResizable(false); try { + //setzt das Look & Feel UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { // TODO Auto-generated catch block e.printStackTrace(); } + //Setzt den Titel setTitle("bwLehrpool Suite *Prototyp*"); + //Zentriert das Fenster Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int top=(screenSize.height - 722) / 2; int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -227,7 +219,7 @@ public class EingabeImageAllgemein_GUI extends JFrame { lblHauptmen.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { - + //Öffnet das Hauptmenü EingabeImageAllgemein_GUI.this.setVisible(false); MainMenue_GUI main=new MainMenue_GUI(); main.setVisible(true); @@ -263,6 +255,7 @@ public class EingabeImageAllgemein_GUI extends JFrame { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + //schreibt die Daten in das Model person.verantowrtlicher.setVorname(Vorname.getText()); person.verantowrtlicher.setName(Nachname.getText()); person.verantowrtlicher.setEMail(EMail.getText()); @@ -283,8 +276,10 @@ public class EingabeImageAllgemein_GUI extends JFrame { JButton cancelButton = new JButton("Weiter"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + //Prüft die Eingabe if(Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false) { + //Schreibt die Daten in das Model person.verantowrtlicher.setVorname(Vorname.getText()); person.verantowrtlicher.setName(Nachname.getText()); person.verantowrtlicher.setEMail(EMail.getText()); @@ -318,12 +313,6 @@ public class EingabeImageAllgemein_GUI extends JFrame { JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); - JMenu mnNewMenu = new JMenu("Suchen"); - menuBar.add(mnNewMenu); - - JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); - mnNewMenu.add(mntmVlSuche); - JMenu mnNewMenu_1 = new JMenu("Hilfe"); menuBar.add(mnNewMenu_1); diff --git a/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java b/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java index 045f8a84..0a4a2206 100644 --- a/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java +++ b/Dozentenmodul/src/GUI/EingabeVeranstaltungAllgemein_GUI.java @@ -24,7 +24,6 @@ import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JSeparator; -import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.JTextPane; import javax.swing.UIManager; @@ -32,7 +31,6 @@ import javax.swing.UnsupportedLookAndFeelException; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; -import models.Lecture; import models.person; @@ -47,7 +45,6 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame { private JTextField EMail; private JTextField Tel; private JTextField Fak; - private JTextField imagename; /** * Launch the application. */ @@ -122,96 +119,76 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame { JLabel label = new JLabel("Vorname: *"); label.setBackground(SystemColor.menu); - label.setBounds(10, 183, 125, 20); + label.setBounds(10, 33, 125, 20); panel_1.add(label); Vorname = new JTextField(); Vorname.setBackground(Color.WHITE); Vorname.setText((String) null); Vorname.setColumns(10); - Vorname.setBounds(145, 183, 350, 20); + Vorname.setBounds(145, 33, 350, 20); panel_1.add(Vorname); JLabel label_7 = new JLabel("Nachname: *"); label_7.setBackground(SystemColor.menu); - label_7.setBounds(10, 214, 125, 20); + label_7.setBounds(10, 64, 125, 20); panel_1.add(label_7); Nachname = new JTextField(); Nachname.setBackground(Color.WHITE); Nachname.setText((String) null); Nachname.setColumns(10); - Nachname.setBounds(145, 214, 350, 20); + Nachname.setBounds(145, 64, 350, 20); panel_1.add(Nachname); JLabel label_8 = new JLabel("Hochschule: *"); label_8.setBackground(SystemColor.menu); - label_8.setBounds(10, 245, 125, 20); + label_8.setBounds(10, 95, 125, 20); panel_1.add(label_8); Hochschule = new JTextField(); Hochschule.setBackground(Color.WHITE); Hochschule.setText((String) null); Hochschule.setColumns(10); - Hochschule.setBounds(145, 245, 350, 20); + Hochschule.setBounds(145, 95, 350, 20); panel_1.add(Hochschule); JLabel label_9 = new JLabel("E-Mail: *"); label_9.setBackground(SystemColor.menu); - label_9.setBounds(10, 276, 125, 20); + label_9.setBounds(10, 126, 125, 20); panel_1.add(label_9); EMail = new JTextField(); EMail.setBackground(Color.WHITE); EMail.setText((String) null); EMail.setColumns(10); - EMail.setBounds(145, 276, 350, 20); + EMail.setBounds(145, 126, 350, 20); panel_1.add(EMail); JLabel label_10 = new JLabel("Tel.-Nummer:"); label_10.setBackground(SystemColor.menu); - label_10.setBounds(10, 307, 125, 20); + label_10.setBounds(10, 157, 125, 20); panel_1.add(label_10); Tel = new JTextField(); Tel.setBackground(Color.WHITE); Tel.setText((String) null); Tel.setColumns(10); - Tel.setBounds(145, 307, 350, 20); + Tel.setBounds(145, 157, 350, 20); panel_1.add(Tel); JLabel lblFakulttinstitution = new JLabel("Fakult\u00E4t/Institution:"); lblFakulttinstitution.setBackground(SystemColor.menu); - lblFakulttinstitution.setBounds(10, 338, 125, 20); + lblFakulttinstitution.setBounds(10, 188, 125, 20); panel_1.add(lblFakulttinstitution); Fak = new JTextField(); Fak.setBackground(Color.WHITE); Fak.setText((String) null); Fak.setColumns(10); - Fak.setBounds(145, 338, 350, 20); + Fak.setBounds(145, 188, 350, 20); panel_1.add(Fak); - JLabel lblImagename = new JLabel("Veranstaltungsname: *"); - lblImagename.setBackground(SystemColor.menu); - lblImagename.setBounds(10, 31, 125, 20); - panel_1.add(lblImagename); - - imagename = new JTextField(); - imagename.setBackground(Color.WHITE); - imagename.setText((String) null); - imagename.setColumns(10); - imagename.setBounds(145, 31, 350, 20); - panel_1.add(imagename); - - JTextArea txtrGebenSieBitte = new JTextArea(); - txtrGebenSieBitte.setBackground(SystemColor.menu); - txtrGebenSieBitte.setLineWrap(true); - txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12)); - txtrGebenSieBitte.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an.\r\nDieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\""); - txtrGebenSieBitte.setBounds(145, 62, 350, 110); - panel_1.add(txtrGebenSieBitte); - JPanel panel = new JPanel(); panel.setBounds(10, 402, 577, 33); contentPanel.add(panel); @@ -269,7 +246,7 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame { person.verantowrtlicher.setFakultät(Fak.getText()); person.verantowrtlicher.setHochschule(Hochschule.getText()); person.verantowrtlicher.setTel(Tel.getText()); - Lecture.lecture.setName(imagename.getText()); + MainMenue_GUI sr=new MainMenue_GUI(); sr.setVisible(true); @@ -292,7 +269,7 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame { person.verantowrtlicher.setFakultät(Fak.getText()); person.verantowrtlicher.setHochschule(Hochschule.getText()); person.verantowrtlicher.setTel(Tel.getText()); - Lecture.lecture.setName(imagename.getText()); + EingabeVeranstatlungTechnisch_GUI ea=new EingabeVeranstatlungTechnisch_GUI(); ea.setVisible(true); dispose(); diff --git a/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java b/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java index 3733b200..6f645ac5 100644 --- a/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java +++ b/Dozentenmodul/src/GUI/EingabeVeranstatlungTechnisch_GUI.java @@ -33,6 +33,7 @@ import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.border.EmptyBorder; +import models.Image; import models.Lecture; @@ -156,11 +157,11 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { textFieldLaborname.setColumns(10); JLabel lblKurzbeschreibung = new JLabel("Kurzbeschreibung: *"); - lblKurzbeschreibung.setBounds(10, 109, 250, 14); + lblKurzbeschreibung.setBounds(10, 175, 250, 14); contentPanel.add(lblKurzbeschreibung); ScrollPane scrollPane = new ScrollPane(); - scrollPane.setBounds(270, 109, 307, 137); + scrollPane.setBounds(270, 175, 307, 137); contentPanel.add(scrollPane); textAreashort = new JTextArea(); @@ -169,7 +170,7 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { textAreashort.setBounds(0, 0, 4, 22); ScrollPane scrollPane_1 = new ScrollPane(); - scrollPane_1.setBounds(270, 249, 307, 137); + scrollPane_1.setBounds(270, 315, 307, 137); contentPanel.add(scrollPane_1); textArealong = new JTextArea(); @@ -178,49 +179,58 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { scrollPane_1.add(textArealong); JLabel label = new JLabel("Kurzbeschreibung: *"); - label.setBounds(0, 252, 250, 14); + label.setBounds(0, 318, 250, 14); contentPanel.add(label); JLabel lblGltigkeitsdatum = new JLabel("G\u00FCltigkeitsdatum: *"); - lblGltigkeitsdatum.setBounds(0, 397, 250, 14); + lblGltigkeitsdatum.setBounds(0, 464, 250, 14); contentPanel.add(lblGltigkeitsdatum); JLabel lblVon = new JLabel("von:"); - lblVon.setBounds(270, 394, 30, 20); + lblVon.setBounds(270, 461, 30, 20); contentPanel.add(lblVon); dateChooserstart = new JDateChooser(); dateChooserstart.setDateFormatString("yyyy-MM-dd hh:mm:ss"); - dateChooserstart.setBounds(332, 391, 101, 20); + dateChooserstart.setBounds(332, 458, 101, 20); contentPanel.add(dateChooserstart); JLabel lblBis = new JLabel("bis"); - lblBis.setBounds(443, 394, 24, 20); + lblBis.setBounds(443, 461, 24, 20); contentPanel.add(lblBis); dateChooserend = new JDateChooser(); dateChooserend.setDateFormatString("dd.MM.yyyy hh:mm:ss"); - dateChooserend.setBounds(477, 392, 100, 20); + dateChooserend.setBounds(477, 459, 100, 20); contentPanel.add(dateChooserend); JLabel lblAktiv = new JLabel("Aktiv:"); - lblAktiv.setBounds(0, 450, 250, 14); + lblAktiv.setBounds(0, 492, 250, 14); contentPanel.add(lblAktiv); JLabel lblimVmchooserSichtbar = new JLabel("(Im VMChooser sichtbar)"); - lblimVmchooserSichtbar.setBounds(0, 475, 250, 14); + lblimVmchooserSichtbar.setBounds(0, 517, 250, 14); contentPanel.add(lblimVmchooserSichtbar); rdbtnJa = new JRadioButton("Ja"); rdbtnJa.setSelected(true); buttonGroup.add(rdbtnJa); - rdbtnJa.setBounds(270, 446, 109, 23); + rdbtnJa.setBounds(270, 488, 109, 23); contentPanel.add(rdbtnJa); JRadioButton rdbtnNein = new JRadioButton("Nein"); buttonGroup.add(rdbtnNein); - rdbtnNein.setBounds(381, 446, 109, 23); + rdbtnNein.setBounds(381, 488, 109, 23); contentPanel.add(rdbtnNein); + + JTextArea txtrGebenSieBitte = new JTextArea(); + txtrGebenSieBitte.setWrapStyleWord(true); + txtrGebenSieBitte.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an. Dieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\""); + txtrGebenSieBitte.setLineWrap(true); + txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12)); + txtrGebenSieBitte.setBackground(SystemColor.menu); + txtrGebenSieBitte.setBounds(10, 82, 567, 59); + contentPanel.add(txtrGebenSieBitte); //contentPanel.add(textArea); { JPanel buttonPane = new JPanel(); @@ -247,7 +257,7 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { Lecture.lecture.setEnddate(dateChooserend.getDate()); Lecture.lecture.setShortDesc(textAreashort.getText()); Lecture.lecture.setStartdate(dateChooserstart.getDate()); - + Image.image.setImagename(textFieldLaborname.getText()); EingabeVeranstaltungAllgemein_GUI sr=new EingabeVeranstaltungAllgemein_GUI(); sr.setVisible(true); @@ -276,6 +286,7 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { Lecture.lecture.setEnddate(dateChooserend.getDate()); Lecture.lecture.setShortDesc(textAreashort.getText()); Lecture.lecture.setStartdate(dateChooserstart.getDate()); + Image.image.setImagename(textFieldLaborname.getText()); LinkImage_GUI ea=new LinkImage_GUI(); ea.setVisible(true); dispose(); diff --git a/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java b/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java index 20041516..ab9693a7 100644 --- a/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java +++ b/Dozentenmodul/src/GUI/ExtendedSearch_GUI.java @@ -70,10 +70,10 @@ public class ExtendedSearch_GUI extends JFrame { } setTitle("bwLehrpool Suite *Prototyp*"); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); - int top=(screenSize.height - 603) / 2; - int left=(screenSize.width - 722) / 2; + int top=(screenSize.height - 722) / 2; + int left=(screenSize.width -603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); diff --git a/Dozentenmodul/src/GUI/Login_GUI.java b/Dozentenmodul/src/GUI/Login_GUI.java index c982fa7b..990500db 100644 --- a/Dozentenmodul/src/GUI/Login_GUI.java +++ b/Dozentenmodul/src/GUI/Login_GUI.java @@ -18,9 +18,17 @@ import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JPasswordField; + +import org.ini4j.InvalidFileFormatException; +import org.ini4j.Wini; + +import config.config_file; + import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.SystemColor; +import java.io.File; +import java.io.IOException; @SuppressWarnings("serial") @@ -29,7 +37,7 @@ public class Login_GUI extends JFrame { private JPanel contentPane; private JTextField username; private JPasswordField pass; - + /** * Launch the application. */ @@ -37,9 +45,22 @@ public class Login_GUI extends JFrame { EventQueue.invokeLater(new Runnable() { public void run() { try { + + config_file cf=new config_file(); + boolean conf=cf.createConfig(); + if(conf==true) + { //Aufruf und Anzeige des Login Fensters Login_GUI frame = new Login_GUI(); frame.setVisible(true); + } + else + { + JOptionPane.showMessageDialog(null, + "Fehler beim erzeugen der Konfigurationsfile", "Message", + JOptionPane.ERROR_MESSAGE); + } + } catch (Exception e) { e.printStackTrace(); } @@ -126,12 +147,34 @@ public class Login_GUI extends JFrame { if(login==true) { - - //Erstellen einer Instanz der Aktionsauswahl - BillOfRights_GUI re=new BillOfRights_GUI(); - re.setVisible(true); - //Schließen des Fensters nach erfolgreichen Login - setVisible(false); + try { + Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini")); + if(ini.get("main", "BillOfRights",boolean.class)==false){ + //Erstellen einer Instanz der Aktionsauswahl + BillOfRights_GUI re=new BillOfRights_GUI(); + re.setVisible(true); + //Schließen des Fensters nach erfolgreichen Login + setVisible(false); + } + else + { + if(ini.get("main", "vmware",boolean.class)==false){ + VmWareLink_GUI vm=new VmWareLink_GUI(); + vm.setVisible(true); + setVisible(false); + } + else + { + MainMenue_GUI main=new MainMenue_GUI(); + main.setVisible(true); + setVisible(false); + } + } + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } else { diff --git a/Dozentenmodul/src/GUI/SearchImage_GUI.java b/Dozentenmodul/src/GUI/SearchImage_GUI.java index d9ee091f..64b37898 100644 --- a/Dozentenmodul/src/GUI/SearchImage_GUI.java +++ b/Dozentenmodul/src/GUI/SearchImage_GUI.java @@ -15,7 +15,6 @@ import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
-import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -35,11 +34,18 @@ import javax.swing.JTabbedPane; import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JTextPane;
+import javax.swing.RowFilter;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
import javax.swing.table.DefaultTableModel;
+import javax.swing.table.TableModel;
+import javax.swing.table.TableRowSorter;
+
+import models.person;
import org.apache.thrift.TException;
@@ -55,10 +61,16 @@ public class SearchImage_GUI extends JFrame { JRadioButton rdbtnInternetNein;
JComboBox<String> comboBox;
JTable tableAllImages;
+ JTable tablemyImages;
private JTextField textFieldName;
+ JTabbedPane tabbedPane;
String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"};
ThriftConnection con=new ThriftConnection();
Client client=con.getThriftConnection();
+ final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
+ final DefaultTableModel modelMyImages = new DefaultTableModel( titles, 0 );
+ final TableRowSorter<TableModel> rowSorterAll = new TableRowSorter<TableModel>( modelAll );
+ final TableRowSorter<TableModel> rowSorterMyImages = new TableRowSorter<TableModel>( modelMyImages );
/**
* Launch the application.
@@ -80,26 +92,31 @@ public class SearchImage_GUI extends JFrame { addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent arg0) {
+ //Beendet die Anwendung nach klick auf X
System.exit(0);
}
});
+ //Verhindert das Vergrößern Des Fensters
setResizable(false);
try {
+ //Setzt das Look & Feel auf System
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException
| IllegalAccessException | UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
+ //Setzt den Fenstertitel
setTitle("bwLehrpool Suite *Prototyp*");
+ //Zentriert das Fenster in die Bildmitte
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 603) / 2;
- int left=(screenSize.width - 722) / 2;
+ int top=(screenSize.height - 722) / 2;
+ int left=(screenSize.width - 603) / 2;
setBounds(left, top, 603, 722);
- final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
+
final DefaultTableModel model = new DefaultTableModel( titles, 0 );
@@ -146,26 +163,23 @@ public class SearchImage_GUI extends JFrame { panel_1.add(lblInternetIstInnerhalb);
textFieldName = new JTextField();
+ //Key Listener der Tastatureingabe registriert
textFieldName.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
+ //Textfield eingabe auslesen
String stext=textFieldName.getText();
- modelAll.setRowCount(0);
- initTableModel(modelAll);
-
+
+ //Wenn Textfield nicht leer
if(stext!="")
- for(int i=0;i<modelAll.getRowCount();i++){
+ {
+ //Filtere nach der Eingabe
+ rowSorterAll.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0));
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0));
- if(modelAll.getValueAt(i, 0).toString().startsWith(stext)){
-
- }
- else
- {
- modelAll.removeRow(i);
- }
- }
- }
- });
+ }
+ }});
+
textFieldName.setBounds(270, 30, 250, 20);
panel_1.add(textFieldName);
@@ -175,6 +189,7 @@ public class SearchImage_GUI extends JFrame { lblErweiterteSuche.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
+ //Öffnet das Fenster Extended GUI
ExtendedSearch_GUI es=new ExtendedSearch_GUI();
es.setVisible(true);
}
@@ -186,35 +201,31 @@ public class SearchImage_GUI extends JFrame { comboBox = new JComboBox<String>();
try {
+ //Holt sich eine Liste aller verfügbaren Betriebssysteme vom Server
List<String> list=client.getAllOS();
+ //Leeres Item hinzufügen
comboBox.addItem("");
for(int i=0;i<list.size();i++)
{
- comboBox.addItem(list.get(i));
+ //Hinzufügen der verfügbaren Betriebssysteme
+ comboBox.addItem(list.get(i));
}
} catch (TException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}
+ //Registriert Auswahländerungen der Box
comboBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
- modelAll.setRowCount(0);
- initTableModel(modelAll);
- String selItem=comboBox.getSelectedItem().toString();
- if(selItem!="")
+ //Prüft das die Auswahl nicht leer ist
+ if(comboBox.getSelectedItem().toString()!="")
{
- for(int i=0;i<modelAll.getRowCount();i++){
-
- if(modelAll.getValueAt(i, 2).equals(selItem)){
-
- }
- else
- {
- modelAll.removeRow(i);
- }
+ //Filtert nach dem ausgewählten Betriebssystem
+ rowSorterAll.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2));
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2));
}
}
- }
+
});
comboBox.setBounds(270, 58, 250, 20);
panel_1.add(comboBox);
@@ -223,7 +234,7 @@ public class SearchImage_GUI extends JFrame { lblHauptmen.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
-
+ //Öffnet das Hauütmenü
SearchImage_GUI.this.setVisible(false);
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
@@ -250,19 +261,37 @@ public class SearchImage_GUI extends JFrame { lblNewLabel_1.setBounds(146, 11, 85, 14);
contentPanel.add(lblNewLabel_1);
- JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.addChangeListener(new ChangeListener() {
+ public void stateChanged(ChangeEvent arg0) {
+ System.out.println(tabbedPane.getSelectedIndex());
+ if(tabbedPane.getSelectedIndex()==0){
+
+
+
+ }
+ else if(tabbedPane.getSelectedIndex()==1){
+ String username="Spitzer Tobias";
+ rowSorterMyImages.setRowFilter(RowFilter.regexFilter(username, 4));
+ //rowSorterMyImages.toggleSortOrder(0);
+ }
+
+ }
+ });
tabbedPane.setBounds(10, 197, 557, 300);
contentPanel.add(tabbedPane);
JScrollPane scrollPaneMyImage = new JScrollPane();
- JTable tablemyImages=new JTable();
- tablemyImages.setModel(model);
+ tablemyImages=new JTable();
+ tablemyImages.setModel(modelMyImages);
tablemyImages.getColumnModel().getColumn(1).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(2).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(3).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(4).sizeWidthToFit();
tablemyImages.getColumnModel().getColumn(5).sizeWidthToFit();
+ initTableModel(modelMyImages);
+ tablemyImages.setRowSorter(rowSorterMyImages);
JScrollPane scrollPaneAllImages = new JScrollPane();
tableAllImages=new JTable();
@@ -272,7 +301,9 @@ public class SearchImage_GUI extends JFrame { tableAllImages.getColumnModel().getColumn(3).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(4).sizeWidthToFit();
tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit();
-
+ initTableModel(modelAll);
+ tableAllImages.setRowSorter(rowSorterAll);
+
scrollPaneAllImages.setViewportView(tableAllImages);
tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
@@ -290,6 +321,7 @@ public class SearchImage_GUI extends JFrame { scrollPaneCoopImages.setViewportView(tableCoopImages);
tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages, null);
+ tabbedPane.setEnabledAt(2, false);
JScrollPane scrollPanePublicImages = new JScrollPane();
JTable tablePublicImages=new JTable();
@@ -302,6 +334,7 @@ public class SearchImage_GUI extends JFrame { scrollPanePublicImages.setViewportView(tablePublicImages);
tabbedPane.addTab("\u00D6ffentliche Images", null, scrollPanePublicImages, null);
+ tabbedPane.setEnabledAt(3, false);
JScrollPane scrollPanePublicVorlagen = new JScrollPane();
JTable tablePublicVorlagen=new JTable();
@@ -314,12 +347,15 @@ public class SearchImage_GUI extends JFrame { scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen);
tabbedPane.addTab("\u00D6ffentliche Vorlagen", null, scrollPanePublicVorlagen, null);
+ tabbedPane.setEnabledAt(4, false);
+
- initTableModel(modelAll);
+
JButton btnDownload = new JButton("Download");
btnDownload.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
+ //Öffnet den Downloader
FTPDownloader_GUI down=new FTPDownloader_GUI("Test");
down.setVisible(true);
SearchImage_GUI.this.setVisible(false);
@@ -336,7 +372,8 @@ public class SearchImage_GUI extends JFrame { {
JButton okButton = new JButton("Zur\u00FCck");
okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
+ public void actionPerformed(ActionEvent e) {
+ //Öffnet das Hauptmenü
MainMenue_GUI main=new MainMenue_GUI();
main.setVisible(true);
dispose();
@@ -350,6 +387,7 @@ public class SearchImage_GUI extends JFrame { JButton cancelButton = new JButton("Weiter");
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
+
EditImageAllgemein_GUI ea=new EditImageAllgemein_GUI();
ea.setVisible(true);
dispose();
@@ -371,12 +409,6 @@ public class SearchImage_GUI extends JFrame { JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);
- JMenu mnNewMenu = new JMenu("Suchen");
- menuBar.add(mnNewMenu);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnNewMenu.add(mntmVlSuche);
-
JMenu mnNewMenu_1 = new JMenu("Hilfe");
menuBar.add(mnNewMenu_1);
@@ -387,23 +419,24 @@ public class SearchImage_GUI extends JFrame { mnNewMenu_1.add(mntmOtrs);
}
-
+ //Initiale Beffülung eines Table models
public DefaultTableModel initTableModel(DefaultTableModel model){
List<server.Image> images;
try {
+ //Hole eine Liste der Images
images = client.getImageList();
Iterator<server.Image> i=images.iterator();
- List<Object[]> ListObj = new ArrayList<Object[]>();
+
int x=0;
while(i.hasNext())
{
-
- i.next();
- Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUpdateTime(),images.get(x).getUserData()};
- ListObj.add(obj);
- model.addRow(ListObj.get(x));
+ //erzeuge Objekte für die Tabelle
+ Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUserData(),images.get(x).getUpdateTime()};
+ //Füge diese Objekte der Tabelle hinzu
+ model.addRow(obj);
x++;
+ i.next();
}
diff --git a/Dozentenmodul/src/config/config_file.java b/Dozentenmodul/src/config/config_file.java new file mode 100644 index 00000000..31fb5b1d --- /dev/null +++ b/Dozentenmodul/src/config/config_file.java @@ -0,0 +1,56 @@ +package config; + +import java.io.File; +import java.io.IOException; + +import org.ini4j.Wini; +public class config_file { + + public boolean createConfig() throws IOException{ + + String config_file="C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite"; + File config=new File(config_file); + String file=config_file+"\\config.ini"; + File conf=new File(file); + Wini ini; + if(config.exists()==false) + { + config.mkdir(); + + + conf.createNewFile(); + ini=new Wini(conf); + + if(conf.canWrite()==true) + { + ini.put("main", "BillOfRights",false); + ini.put("main", "vmware", false); + ini.store(); + + return true; + } + + } + else + { + + if(conf.exists()==false) + { + conf.createNewFile(); + ini=new Wini(conf); + + if(conf.canWrite()==true) + { + ini.put("main", "BillOfRights",false); + ini.put("main", "vmware", false); + ini.store(); + + return true; + } + } + } + return true; + + } + +} diff --git a/Dozentenmodul/src/gui/BillOfRights_GUI.java b/Dozentenmodul/src/gui/BillOfRights_GUI.java index 6f66d479..a18ce291 100644 --- a/Dozentenmodul/src/gui/BillOfRights_GUI.java +++ b/Dozentenmodul/src/gui/BillOfRights_GUI.java @@ -2,32 +2,37 @@ package gui; import java.awt.Dimension; import java.awt.FlowLayout; -import java.awt.Toolkit; -import javax.swing.JButton; -import javax.swing.JDialog; -import javax.swing.JPanel; -import javax.swing.JScrollPane; -import javax.swing.UIManager; -import javax.swing.UnsupportedLookAndFeelException; -import javax.swing.border.EmptyBorder; -import javax.swing.JLabel; import java.awt.Font; -import javax.swing.JTextPane; import java.awt.SystemColor; -import java.awt.event.ActionListener; +import java.awt.Toolkit; import java.awt.event.ActionEvent; -import javax.swing.JFrame; -import javax.swing.JSeparator; -import javax.swing.JMenuBar; -import javax.swing.JMenu; -import javax.swing.JMenuItem; +import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; +import java.io.File; +import java.io.IOException; + +import javax.swing.JButton; import javax.swing.JCheckBox; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; +import javax.swing.JPanel; +import javax.swing.JScrollPane; +import javax.swing.JSeparator; +import javax.swing.JTextArea; +import javax.swing.JTextPane; import javax.swing.SwingConstants; -import javax.swing.event.ChangeListener; +import javax.swing.UIManager; +import javax.swing.UnsupportedLookAndFeelException; +import javax.swing.border.EmptyBorder; import javax.swing.event.ChangeEvent; -import javax.swing.JTextArea; +import javax.swing.event.ChangeListener; + +import org.ini4j.InvalidFileFormatException; +import org.ini4j.Wini; @@ -38,44 +43,37 @@ public class BillOfRights_GUI extends JFrame { String[] result; JButton fwdButton; JCheckBox chckbxAkzeptieren; - /** - * Launch the application. - */ - public static void main(String[] args) { - try { - BillOfRights_GUI dialog = new BillOfRights_GUI(); - dialog.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); - dialog.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } /** * Create the dialog. */ public BillOfRights_GUI() { + setResizable(false); addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet das Programm beim Klick auf das X System.exit(0); } }); try { + //Setzt das Look & Feel auf das System UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { // TODO Auto-generated catch block e.printStackTrace(); } - setTitle("Dozentenmodul *Prototyp*"); + //Setzt den Fenstertitel + setTitle("bwLehrpool Suite *Prototyp*"); + //Zentiert das Fenster in der Bildschirmmitte Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int top=(screenSize.height - 722) / 2; int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 545, 366); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -123,6 +121,17 @@ public class BillOfRights_GUI extends JFrame { fwdButton = new JButton("Weiter"); fwdButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + try { + Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini")); + ini.put("main", "BillOfRights",true); + ini.store(); + } catch (InvalidFileFormatException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } catch (IOException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } VmWareLink_GUI ac=new VmWareLink_GUI(); ac.setVisible(true); dispose(); @@ -147,8 +156,10 @@ public class BillOfRights_GUI extends JFrame { chckbxAkzeptieren = new JCheckBox("Ja, ich akzeptiere die Vereinbarung. Benachrichtigung nicht mehr anzeigen."); chckbxAkzeptieren.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent arg0) { + //Beim Akzeptieren der Bestätigung wird der Weiter-Button verfügbar gemacht if(chckbxAkzeptieren.isSelected()==true) { + fwdButton.setEnabled(true); } diff --git a/Dozentenmodul/src/gui/EditImageAllgemein_GUI.java b/Dozentenmodul/src/gui/EditImageAllgemein_GUI.java index 784c66a7..160a7fb4 100644 --- a/Dozentenmodul/src/gui/EditImageAllgemein_GUI.java +++ b/Dozentenmodul/src/gui/EditImageAllgemein_GUI.java @@ -1,40 +1,42 @@ package gui; +import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; +import java.awt.Font; +import java.awt.SystemColor; import java.awt.Toolkit; -import javax.swing.JFrame; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import java.util.Map; + import javax.swing.JButton; -import javax.swing.JDialog; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; +import javax.swing.JSeparator; +import javax.swing.JTextArea; +import javax.swing.JTextField; +import javax.swing.JTextPane; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.border.EmptyBorder; -import java.awt.Color; -import javax.swing.JLabel; -import java.awt.Font; -import javax.swing.JTextPane; -import java.awt.SystemColor; -import javax.swing.JTextField; -import java.awt.event.ActionListener; -import java.awt.event.ActionEvent; -import javax.swing.JSeparator; -import javax.swing.JMenuBar; -import javax.swing.JMenu; -import javax.swing.JMenuItem; - -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; import javax.swing.border.TitledBorder; -import javax.swing.JTextArea; + +import server.Server.Client; +import thrift.ThriftConnection; import models.Image; import models.person; -import java.awt.event.MouseAdapter; -import java.awt.event.MouseEvent; - @SuppressWarnings("serial") public class EditImageAllgemein_GUI extends JFrame { @@ -47,18 +49,8 @@ public class EditImageAllgemein_GUI extends JFrame { private JTextField Tel; private JTextField Fak; private JTextField imagename; - /** - * Launch the application. - */ - public static void main(String[] args) { - try { - EditImageAllgemein_GUI dialog = new EditImageAllgemein_GUI(); - dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); - dialog.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } + ThriftConnection thrift=new ThriftConnection(); + Client client=thrift.getThriftConnection(); /** * Create the dialog. @@ -67,9 +59,11 @@ public class EditImageAllgemein_GUI extends JFrame { addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet die Anwendung bei einem Klick auf das X System.exit(0); } }); + //Verhindert das vergrößern des Fensters setResizable(false); try { @@ -79,12 +73,15 @@ public class EditImageAllgemein_GUI extends JFrame { // TODO Auto-generated catch block e.printStackTrace(); } + //Setzt den Fenstertitel setTitle("bwLehrpool Suite *Prototyp*"); + + //Zentriert das Fenster in der Bildmitte Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int top=(screenSize.height - 722) / 2; int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -226,7 +223,7 @@ public class EditImageAllgemein_GUI extends JFrame { lblHauptmen.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { - + //Durch den Klick auf Button Hauptmenpü wird dieses Fenster unsichtbar und das Hauptmenü sichtbar EditImageAllgemein_GUI.this.setVisible(false); MainMenue_GUI main=new MainMenue_GUI(); main.setVisible(true); @@ -262,6 +259,8 @@ public class EditImageAllgemein_GUI extends JFrame { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + + //Setzen der Eingabe im Model, dadurch bleiben die Daten bei einem erneuten Aufruf verfügbar person.verantowrtlicher.setVorname(Vorname.getText()); person.verantowrtlicher.setName(Nachname.getText()); person.verantowrtlicher.setEMail(EMail.getText()); @@ -269,6 +268,7 @@ public class EditImageAllgemein_GUI extends JFrame { person.verantowrtlicher.setHochschule(Hochschule.getText()); person.verantowrtlicher.setTel(Tel.getText()); Image.image.setImagename(imagename.getText()); + MainMenue_GUI sr=new MainMenue_GUI(); sr.setVisible(true); dispose(); @@ -282,8 +282,10 @@ public class EditImageAllgemein_GUI extends JFrame { JButton cancelButton = new JButton("Weiter"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + //Prüfung ob alle notwendigen Felder ausgefüllt sind if(Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false) { + //Setzen der Eingabe im Model, dadurch bleiben die Daten bei einem erneuten Aufruf verfügbar person.verantowrtlicher.setVorname(Vorname.getText()); person.verantowrtlicher.setName(Nachname.getText()); person.verantowrtlicher.setEMail(EMail.getText()); @@ -296,6 +298,7 @@ public class EditImageAllgemein_GUI extends JFrame { dispose(); } else{ + //Erzeugen einer Fehlermeldung wenn nicht alle notwendigen Felder ausgefüllt sind JOptionPane.showMessageDialog(null, "Bitte geben Sie alle notwendigen Daten an!", "Error", JOptionPane.ERROR_MESSAGE); } @@ -317,12 +320,6 @@ public class EditImageAllgemein_GUI extends JFrame { JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); - JMenu mnNewMenu = new JMenu("Suchen"); - menuBar.add(mnNewMenu); - - JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); - mnNewMenu.add(mntmVlSuche); - JMenu mnNewMenu_1 = new JMenu("Hilfe"); menuBar.add(mnNewMenu_1); @@ -333,4 +330,6 @@ public class EditImageAllgemein_GUI extends JFrame { mnNewMenu_1.add(mntmOtrs); } + + } diff --git a/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java b/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java index a3fdcf20..f589a091 100644 --- a/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java +++ b/Dozentenmodul/src/gui/EditImageTechnisch_GUI.java @@ -1,37 +1,37 @@ package gui; +import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; -import java.awt.Toolkit; -import javax.swing.JFrame; -import javax.swing.JButton; -import javax.swing.JDialog; -import javax.swing.JPanel; -import javax.swing.UIManager; -import javax.swing.UnsupportedLookAndFeelException; -import javax.swing.border.EmptyBorder; -import java.awt.Color; -import javax.swing.JLabel; import java.awt.Font; -import javax.swing.JTextPane; import java.awt.SystemColor; -import java.awt.event.ActionListener; +import java.awt.Toolkit; import java.awt.event.ActionEvent; -import javax.swing.JSeparator; -import javax.swing.JMenuBar; -import javax.swing.JMenu; -import javax.swing.JMenuItem; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; -import javax.swing.border.TitledBorder; -import javax.swing.JTextArea; +import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; -import javax.swing.JRadioButton; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; + import javax.swing.ButtonGroup; +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; +import javax.swing.JPanel; +import javax.swing.JRadioButton; +import javax.swing.JSeparator; import javax.swing.JSpinner; +import javax.swing.JTextArea; +import javax.swing.JTextPane; import javax.swing.SpinnerNumberModel; +import javax.swing.UIManager; +import javax.swing.UnsupportedLookAndFeelException; +import javax.swing.border.EmptyBorder; +import javax.swing.border.TitledBorder; import models.Image; @@ -48,18 +48,7 @@ public class EditImageTechnisch_GUI extends JFrame { JRadioButton rdbtnInternetNein; private final ButtonGroup buttonGrouplicense = new ButtonGroup(); private final ButtonGroup buttonGroupInternet = new ButtonGroup(); - /** - * Launch the application. - */ - public static void main(String[] args) { - try { - EditImageTechnisch_GUI dialog = new EditImageTechnisch_GUI(); - dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); - dialog.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } + /** * Create the dialog. @@ -68,24 +57,29 @@ public class EditImageTechnisch_GUI extends JFrame { addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet die Anwendung bei Klick auf das X System.exit(0); } }); + //Verhindert das Vergrößern des Fensters setResizable(false); try { + //setzt das Look & Feel UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { // TODO Auto-generated catch block e.printStackTrace(); } + //Setzt den Titel des Fensters setTitle("bwLehrpool Suite *Prototyp*"); + //Zentriert das Fenster Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int top=(screenSize.height - 722) / 2; int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -154,7 +148,7 @@ public class EditImageTechnisch_GUI extends JFrame { lblHauptmen.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { - + //Macht dieses Fenster unsichtbar und das vorhergehende Fenster sichtbar EditImageTechnisch_GUI.this.setVisible(false); MainMenue_GUI main=new MainMenue_GUI(); main.setVisible(true); @@ -252,9 +246,10 @@ public class EditImageTechnisch_GUI extends JFrame { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + //Setzt die Imagewerte in das Model Image.image.setCpu(Integer.valueOf(spinnerCPU.getValue().toString()).intValue()); Image.image.setRam(Integer.valueOf(spinnerRam.getValue().toString()).intValue()); - + //Öffnet das vorherige Fenster EingabeImageAllgemein_GUI sr=new EingabeImageAllgemein_GUI(); sr.setVisible(true); dispose(); @@ -268,8 +263,7 @@ public class EditImageTechnisch_GUI extends JFrame { JButton cancelButton = new JButton("Weiter"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - - + //Öffnet das nächste Fenster FTPUploader_GUI ea=new FTPUploader_GUI(); ea.setVisible(true); dispose(); @@ -291,13 +285,7 @@ public class EditImageTechnisch_GUI extends JFrame { JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); - - JMenu mnNewMenu = new JMenu("Suchen"); - menuBar.add(mnNewMenu); - - JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); - mnNewMenu.add(mntmVlSuche); - + JMenu mnNewMenu_1 = new JMenu("Hilfe"); menuBar.add(mnNewMenu_1); diff --git a/Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java b/Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java index 4eb5c609..bfd4354c 100644 --- a/Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java +++ b/Dozentenmodul/src/gui/EingabeImageAllgemein_GUI.java @@ -6,7 +6,6 @@ import java.awt.FlowLayout; import java.awt.Toolkit; import javax.swing.JFrame; import javax.swing.JButton; -import javax.swing.JDialog; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.UIManager; @@ -48,18 +47,6 @@ public class EingabeImageAllgemein_GUI extends JFrame { private JTextField Tel; private JTextField Fak; private JTextField imagename; - /** - * Launch the application. - */ - public static void main(String[] args) { - try { - EingabeImageAllgemein_GUI dialog = new EingabeImageAllgemein_GUI(); - dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); - dialog.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } /** * Create the dialog. @@ -68,24 +55,29 @@ public class EingabeImageAllgemein_GUI extends JFrame { addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet das Fenster auf X System.exit(0); } }); + //Verhindert das Vergrößern des Fensters setResizable(false); try { + //setzt das Look & Feel UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { // TODO Auto-generated catch block e.printStackTrace(); } + //Setzt den Titel setTitle("bwLehrpool Suite *Prototyp*"); + //Zentriert das Fenster Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int top=(screenSize.height - 722) / 2; int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -227,7 +219,7 @@ public class EingabeImageAllgemein_GUI extends JFrame { lblHauptmen.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { - + //Öffnet das Hauptmenü EingabeImageAllgemein_GUI.this.setVisible(false); MainMenue_GUI main=new MainMenue_GUI(); main.setVisible(true); @@ -263,6 +255,7 @@ public class EingabeImageAllgemein_GUI extends JFrame { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + //schreibt die Daten in das Model person.verantowrtlicher.setVorname(Vorname.getText()); person.verantowrtlicher.setName(Nachname.getText()); person.verantowrtlicher.setEMail(EMail.getText()); @@ -283,8 +276,10 @@ public class EingabeImageAllgemein_GUI extends JFrame { JButton cancelButton = new JButton("Weiter"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + //Prüft die Eingabe if(Vorname.getText().isEmpty()==false && Nachname.getText().isEmpty()==false && Hochschule.getText().isEmpty()==false&&EMail.getText().isEmpty()==false) { + //Schreibt die Daten in das Model person.verantowrtlicher.setVorname(Vorname.getText()); person.verantowrtlicher.setName(Nachname.getText()); person.verantowrtlicher.setEMail(EMail.getText()); @@ -318,12 +313,6 @@ public class EingabeImageAllgemein_GUI extends JFrame { JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); - JMenu mnNewMenu = new JMenu("Suchen"); - menuBar.add(mnNewMenu); - - JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); - mnNewMenu.add(mntmVlSuche); - JMenu mnNewMenu_1 = new JMenu("Hilfe"); menuBar.add(mnNewMenu_1); diff --git a/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java b/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java index 045f8a84..0a4a2206 100644 --- a/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java +++ b/Dozentenmodul/src/gui/EingabeVeranstaltungAllgemein_GUI.java @@ -24,7 +24,6 @@ import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JSeparator; -import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.JTextPane; import javax.swing.UIManager; @@ -32,7 +31,6 @@ import javax.swing.UnsupportedLookAndFeelException; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; -import models.Lecture; import models.person; @@ -47,7 +45,6 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame { private JTextField EMail; private JTextField Tel; private JTextField Fak; - private JTextField imagename; /** * Launch the application. */ @@ -122,96 +119,76 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame { JLabel label = new JLabel("Vorname: *"); label.setBackground(SystemColor.menu); - label.setBounds(10, 183, 125, 20); + label.setBounds(10, 33, 125, 20); panel_1.add(label); Vorname = new JTextField(); Vorname.setBackground(Color.WHITE); Vorname.setText((String) null); Vorname.setColumns(10); - Vorname.setBounds(145, 183, 350, 20); + Vorname.setBounds(145, 33, 350, 20); panel_1.add(Vorname); JLabel label_7 = new JLabel("Nachname: *"); label_7.setBackground(SystemColor.menu); - label_7.setBounds(10, 214, 125, 20); + label_7.setBounds(10, 64, 125, 20); panel_1.add(label_7); Nachname = new JTextField(); Nachname.setBackground(Color.WHITE); Nachname.setText((String) null); Nachname.setColumns(10); - Nachname.setBounds(145, 214, 350, 20); + Nachname.setBounds(145, 64, 350, 20); panel_1.add(Nachname); JLabel label_8 = new JLabel("Hochschule: *"); label_8.setBackground(SystemColor.menu); - label_8.setBounds(10, 245, 125, 20); + label_8.setBounds(10, 95, 125, 20); panel_1.add(label_8); Hochschule = new JTextField(); Hochschule.setBackground(Color.WHITE); Hochschule.setText((String) null); Hochschule.setColumns(10); - Hochschule.setBounds(145, 245, 350, 20); + Hochschule.setBounds(145, 95, 350, 20); panel_1.add(Hochschule); JLabel label_9 = new JLabel("E-Mail: *"); label_9.setBackground(SystemColor.menu); - label_9.setBounds(10, 276, 125, 20); + label_9.setBounds(10, 126, 125, 20); panel_1.add(label_9); EMail = new JTextField(); EMail.setBackground(Color.WHITE); EMail.setText((String) null); EMail.setColumns(10); - EMail.setBounds(145, 276, 350, 20); + EMail.setBounds(145, 126, 350, 20); panel_1.add(EMail); JLabel label_10 = new JLabel("Tel.-Nummer:"); label_10.setBackground(SystemColor.menu); - label_10.setBounds(10, 307, 125, 20); + label_10.setBounds(10, 157, 125, 20); panel_1.add(label_10); Tel = new JTextField(); Tel.setBackground(Color.WHITE); Tel.setText((String) null); Tel.setColumns(10); - Tel.setBounds(145, 307, 350, 20); + Tel.setBounds(145, 157, 350, 20); panel_1.add(Tel); JLabel lblFakulttinstitution = new JLabel("Fakult\u00E4t/Institution:"); lblFakulttinstitution.setBackground(SystemColor.menu); - lblFakulttinstitution.setBounds(10, 338, 125, 20); + lblFakulttinstitution.setBounds(10, 188, 125, 20); panel_1.add(lblFakulttinstitution); Fak = new JTextField(); Fak.setBackground(Color.WHITE); Fak.setText((String) null); Fak.setColumns(10); - Fak.setBounds(145, 338, 350, 20); + Fak.setBounds(145, 188, 350, 20); panel_1.add(Fak); - JLabel lblImagename = new JLabel("Veranstaltungsname: *"); - lblImagename.setBackground(SystemColor.menu); - lblImagename.setBounds(10, 31, 125, 20); - panel_1.add(lblImagename); - - imagename = new JTextField(); - imagename.setBackground(Color.WHITE); - imagename.setText((String) null); - imagename.setColumns(10); - imagename.setBounds(145, 31, 350, 20); - panel_1.add(imagename); - - JTextArea txtrGebenSieBitte = new JTextArea(); - txtrGebenSieBitte.setBackground(SystemColor.menu); - txtrGebenSieBitte.setLineWrap(true); - txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12)); - txtrGebenSieBitte.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an.\r\nDieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\""); - txtrGebenSieBitte.setBounds(145, 62, 350, 110); - panel_1.add(txtrGebenSieBitte); - JPanel panel = new JPanel(); panel.setBounds(10, 402, 577, 33); contentPanel.add(panel); @@ -269,7 +246,7 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame { person.verantowrtlicher.setFakultät(Fak.getText()); person.verantowrtlicher.setHochschule(Hochschule.getText()); person.verantowrtlicher.setTel(Tel.getText()); - Lecture.lecture.setName(imagename.getText()); + MainMenue_GUI sr=new MainMenue_GUI(); sr.setVisible(true); @@ -292,7 +269,7 @@ public class EingabeVeranstaltungAllgemein_GUI extends JFrame { person.verantowrtlicher.setFakultät(Fak.getText()); person.verantowrtlicher.setHochschule(Hochschule.getText()); person.verantowrtlicher.setTel(Tel.getText()); - Lecture.lecture.setName(imagename.getText()); + EingabeVeranstatlungTechnisch_GUI ea=new EingabeVeranstatlungTechnisch_GUI(); ea.setVisible(true); dispose(); diff --git a/Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java b/Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java index 3733b200..6f645ac5 100644 --- a/Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java +++ b/Dozentenmodul/src/gui/EingabeVeranstatlungTechnisch_GUI.java @@ -33,6 +33,7 @@ import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.border.EmptyBorder; +import models.Image; import models.Lecture; @@ -156,11 +157,11 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { textFieldLaborname.setColumns(10); JLabel lblKurzbeschreibung = new JLabel("Kurzbeschreibung: *"); - lblKurzbeschreibung.setBounds(10, 109, 250, 14); + lblKurzbeschreibung.setBounds(10, 175, 250, 14); contentPanel.add(lblKurzbeschreibung); ScrollPane scrollPane = new ScrollPane(); - scrollPane.setBounds(270, 109, 307, 137); + scrollPane.setBounds(270, 175, 307, 137); contentPanel.add(scrollPane); textAreashort = new JTextArea(); @@ -169,7 +170,7 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { textAreashort.setBounds(0, 0, 4, 22); ScrollPane scrollPane_1 = new ScrollPane(); - scrollPane_1.setBounds(270, 249, 307, 137); + scrollPane_1.setBounds(270, 315, 307, 137); contentPanel.add(scrollPane_1); textArealong = new JTextArea(); @@ -178,49 +179,58 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { scrollPane_1.add(textArealong); JLabel label = new JLabel("Kurzbeschreibung: *"); - label.setBounds(0, 252, 250, 14); + label.setBounds(0, 318, 250, 14); contentPanel.add(label); JLabel lblGltigkeitsdatum = new JLabel("G\u00FCltigkeitsdatum: *"); - lblGltigkeitsdatum.setBounds(0, 397, 250, 14); + lblGltigkeitsdatum.setBounds(0, 464, 250, 14); contentPanel.add(lblGltigkeitsdatum); JLabel lblVon = new JLabel("von:"); - lblVon.setBounds(270, 394, 30, 20); + lblVon.setBounds(270, 461, 30, 20); contentPanel.add(lblVon); dateChooserstart = new JDateChooser(); dateChooserstart.setDateFormatString("yyyy-MM-dd hh:mm:ss"); - dateChooserstart.setBounds(332, 391, 101, 20); + dateChooserstart.setBounds(332, 458, 101, 20); contentPanel.add(dateChooserstart); JLabel lblBis = new JLabel("bis"); - lblBis.setBounds(443, 394, 24, 20); + lblBis.setBounds(443, 461, 24, 20); contentPanel.add(lblBis); dateChooserend = new JDateChooser(); dateChooserend.setDateFormatString("dd.MM.yyyy hh:mm:ss"); - dateChooserend.setBounds(477, 392, 100, 20); + dateChooserend.setBounds(477, 459, 100, 20); contentPanel.add(dateChooserend); JLabel lblAktiv = new JLabel("Aktiv:"); - lblAktiv.setBounds(0, 450, 250, 14); + lblAktiv.setBounds(0, 492, 250, 14); contentPanel.add(lblAktiv); JLabel lblimVmchooserSichtbar = new JLabel("(Im VMChooser sichtbar)"); - lblimVmchooserSichtbar.setBounds(0, 475, 250, 14); + lblimVmchooserSichtbar.setBounds(0, 517, 250, 14); contentPanel.add(lblimVmchooserSichtbar); rdbtnJa = new JRadioButton("Ja"); rdbtnJa.setSelected(true); buttonGroup.add(rdbtnJa); - rdbtnJa.setBounds(270, 446, 109, 23); + rdbtnJa.setBounds(270, 488, 109, 23); contentPanel.add(rdbtnJa); JRadioButton rdbtnNein = new JRadioButton("Nein"); buttonGroup.add(rdbtnNein); - rdbtnNein.setBounds(381, 446, 109, 23); + rdbtnNein.setBounds(381, 488, 109, 23); contentPanel.add(rdbtnNein); + + JTextArea txtrGebenSieBitte = new JTextArea(); + txtrGebenSieBitte.setWrapStyleWord(true); + txtrGebenSieBitte.setText("Geben Sie bitte einen sprechenden Namen f\u00FCr das Image an. Dieser soll jedoch recht allgemein gehalten werden.\r\nBeispiel: \"Programmieren\", nicht \"Programmieren 1\""); + txtrGebenSieBitte.setLineWrap(true); + txtrGebenSieBitte.setFont(new Font("Tahoma", Font.PLAIN, 12)); + txtrGebenSieBitte.setBackground(SystemColor.menu); + txtrGebenSieBitte.setBounds(10, 82, 567, 59); + contentPanel.add(txtrGebenSieBitte); //contentPanel.add(textArea); { JPanel buttonPane = new JPanel(); @@ -247,7 +257,7 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { Lecture.lecture.setEnddate(dateChooserend.getDate()); Lecture.lecture.setShortDesc(textAreashort.getText()); Lecture.lecture.setStartdate(dateChooserstart.getDate()); - + Image.image.setImagename(textFieldLaborname.getText()); EingabeVeranstaltungAllgemein_GUI sr=new EingabeVeranstaltungAllgemein_GUI(); sr.setVisible(true); @@ -276,6 +286,7 @@ public class EingabeVeranstatlungTechnisch_GUI extends JFrame { Lecture.lecture.setEnddate(dateChooserend.getDate()); Lecture.lecture.setShortDesc(textAreashort.getText()); Lecture.lecture.setStartdate(dateChooserstart.getDate()); + Image.image.setImagename(textFieldLaborname.getText()); LinkImage_GUI ea=new LinkImage_GUI(); ea.setVisible(true); dispose(); diff --git a/Dozentenmodul/src/gui/ExtendedSearch_GUI.java b/Dozentenmodul/src/gui/ExtendedSearch_GUI.java index 20041516..ab9693a7 100644 --- a/Dozentenmodul/src/gui/ExtendedSearch_GUI.java +++ b/Dozentenmodul/src/gui/ExtendedSearch_GUI.java @@ -70,10 +70,10 @@ public class ExtendedSearch_GUI extends JFrame { } setTitle("bwLehrpool Suite *Prototyp*"); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); - int top=(screenSize.height - 603) / 2; - int left=(screenSize.width - 722) / 2; + int top=(screenSize.height - 722) / 2; + int left=(screenSize.width -603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + getContentPane().setLayout(null); { JPanel panel = new JPanel(); diff --git a/Dozentenmodul/src/gui/Login_GUI.java b/Dozentenmodul/src/gui/Login_GUI.java index c982fa7b..990500db 100644 --- a/Dozentenmodul/src/gui/Login_GUI.java +++ b/Dozentenmodul/src/gui/Login_GUI.java @@ -18,9 +18,17 @@ import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JPasswordField; + +import org.ini4j.InvalidFileFormatException; +import org.ini4j.Wini; + +import config.config_file; + import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.SystemColor; +import java.io.File; +import java.io.IOException; @SuppressWarnings("serial") @@ -29,7 +37,7 @@ public class Login_GUI extends JFrame { private JPanel contentPane; private JTextField username; private JPasswordField pass; - + /** * Launch the application. */ @@ -37,9 +45,22 @@ public class Login_GUI extends JFrame { EventQueue.invokeLater(new Runnable() { public void run() { try { + + config_file cf=new config_file(); + boolean conf=cf.createConfig(); + if(conf==true) + { //Aufruf und Anzeige des Login Fensters Login_GUI frame = new Login_GUI(); frame.setVisible(true); + } + else + { + JOptionPane.showMessageDialog(null, + "Fehler beim erzeugen der Konfigurationsfile", "Message", + JOptionPane.ERROR_MESSAGE); + } + } catch (Exception e) { e.printStackTrace(); } @@ -126,12 +147,34 @@ public class Login_GUI extends JFrame { if(login==true) { - - //Erstellen einer Instanz der Aktionsauswahl - BillOfRights_GUI re=new BillOfRights_GUI(); - re.setVisible(true); - //Schließen des Fensters nach erfolgreichen Login - setVisible(false); + try { + Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini")); + if(ini.get("main", "BillOfRights",boolean.class)==false){ + //Erstellen einer Instanz der Aktionsauswahl + BillOfRights_GUI re=new BillOfRights_GUI(); + re.setVisible(true); + //Schließen des Fensters nach erfolgreichen Login + setVisible(false); + } + else + { + if(ini.get("main", "vmware",boolean.class)==false){ + VmWareLink_GUI vm=new VmWareLink_GUI(); + vm.setVisible(true); + setVisible(false); + } + else + { + MainMenue_GUI main=new MainMenue_GUI(); + main.setVisible(true); + setVisible(false); + } + } + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } else { diff --git a/Dozentenmodul/src/gui/SearchImage_GUI.java b/Dozentenmodul/src/gui/SearchImage_GUI.java index 44b83087..6ee58903 100644 --- a/Dozentenmodul/src/gui/SearchImage_GUI.java +++ b/Dozentenmodul/src/gui/SearchImage_GUI.java @@ -15,7 +15,6 @@ import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; -import java.util.ArrayList; import java.util.Iterator; import java.util.List; @@ -35,11 +34,18 @@ import javax.swing.JTabbedPane; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.JTextPane; +import javax.swing.RowFilter; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableModel; +import javax.swing.table.TableRowSorter; + +import models.person; import org.apache.thrift.TException; @@ -55,10 +61,16 @@ public class SearchImage_GUI extends JFrame { JRadioButton rdbtnInternetNein; JComboBox<String> comboBox; JTable tableAllImages; + JTable tablemyImages; private JTextField textFieldName; + JTabbedPane tabbedPane; String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"}; ThriftConnection con=new ThriftConnection(); Client client=con.getThriftConnection(); + final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 ); + final DefaultTableModel modelMyImages = new DefaultTableModel( titles, 0 ); + final TableRowSorter<TableModel> rowSorterAll = new TableRowSorter<TableModel>( modelAll ); + final TableRowSorter<TableModel> rowSorterMyImages = new TableRowSorter<TableModel>( modelMyImages ); /** * Launch the application. @@ -80,26 +92,31 @@ public class SearchImage_GUI extends JFrame { addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { + //Beendet die Anwendung nach klick auf X System.exit(0); } }); + //Verhindert das Vergrößern Des Fensters setResizable(false); try { + //Setzt das Look & Feel auf System UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { // TODO Auto-generated catch block e.printStackTrace(); } + //Setzt den Fenstertitel setTitle("bwLehrpool Suite *Prototyp*"); + //Zentriert das Fenster in die Bildmitte Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); - int top=(screenSize.height - 603) / 2; - int left=(screenSize.width - 722) / 2; + int top=(screenSize.height - 722) / 2; + int left=(screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 ); + final DefaultTableModel model = new DefaultTableModel( titles, 0 ); @@ -146,26 +163,23 @@ public class SearchImage_GUI extends JFrame { panel_1.add(lblInternetIstInnerhalb); textFieldName = new JTextField(); + //Key Listener der Tastatureingabe registriert textFieldName.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent e) { + //Textfield eingabe auslesen String stext=textFieldName.getText(); - modelAll.setRowCount(0); - initTableModel(modelAll); - + + //Wenn Textfield nicht leer if(stext!="") - for(int i=0;i<modelAll.getRowCount();i++){ + { + //Filtere nach der Eingabe + rowSorterAll.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0)); + rowSorterMyImages.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0)); - if(modelAll.getValueAt(i, 0).toString().startsWith(stext)){ - - } - else - { - modelAll.removeRow(i); - } - } - } - }); + } + }}); + textFieldName.setBounds(270, 30, 250, 20); panel_1.add(textFieldName); @@ -175,6 +189,7 @@ public class SearchImage_GUI extends JFrame { lblErweiterteSuche.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { + //Öffnet das Fenster Extended GUI ExtendedSearch_GUI es=new ExtendedSearch_GUI(); es.setVisible(true); } @@ -186,35 +201,31 @@ public class SearchImage_GUI extends JFrame { comboBox = new JComboBox<String>(); try { + //Holt sich eine Liste aller verfügbaren Betriebssysteme vom Server List<String> list=client.getAllOS(); + //Leeres Item hinzufügen comboBox.addItem(""); for(int i=0;i<list.size();i++) { - comboBox.addItem(list.get(i)); + //Hinzufügen der verfügbaren Betriebssysteme + comboBox.addItem(list.get(i)); } } catch (TException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } + //Registriert Auswahländerungen der Box comboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { - modelAll.setRowCount(0); - initTableModel(modelAll); - String selItem=comboBox.getSelectedItem().toString(); - if(selItem!="") + //Prüft das die Auswahl nicht leer ist + if(comboBox.getSelectedItem().toString()!="") { - for(int i=0;i<modelAll.getRowCount();i++){ - - if(modelAll.getValueAt(i, 2).equals(selItem)){ - - } - else - { - modelAll.removeRow(i); - } + //Filtert nach dem ausgewählten Betriebssystem + rowSorterAll.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2)); + rowSorterMyImages.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2)); } } - } + }); comboBox.setBounds(270, 58, 250, 20); panel_1.add(comboBox); @@ -223,7 +234,7 @@ public class SearchImage_GUI extends JFrame { lblHauptmen.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { - + //Öffnet das Hauütmenü SearchImage_GUI.this.setVisible(false); MainMenue_GUI main=new MainMenue_GUI(); main.setVisible(true); @@ -250,19 +261,37 @@ public class SearchImage_GUI extends JFrame { lblNewLabel_1.setBounds(146, 11, 85, 14); contentPanel.add(lblNewLabel_1); - JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); + tabbedPane = new JTabbedPane(JTabbedPane.TOP); + tabbedPane.addChangeListener(new ChangeListener() { + public void stateChanged(ChangeEvent arg0) { + System.out.println(tabbedPane.getSelectedIndex()); + if(tabbedPane.getSelectedIndex()==0){ + + + + } + else if(tabbedPane.getSelectedIndex()==1){ + String username="Spitzer Tobias"; + rowSorterMyImages.setRowFilter(RowFilter.regexFilter(username, 4)); + //rowSorterMyImages.toggleSortOrder(0); + } + + } + }); tabbedPane.setBounds(10, 197, 557, 300); contentPanel.add(tabbedPane); JScrollPane scrollPaneMyImage = new JScrollPane(); - JTable tablemyImages=new JTable(); - tablemyImages.setModel(model); + tablemyImages=new JTable(); + tablemyImages.setModel(modelMyImages); tablemyImages.getColumnModel().getColumn(1).sizeWidthToFit(); tablemyImages.getColumnModel().getColumn(2).sizeWidthToFit(); tablemyImages.getColumnModel().getColumn(3).sizeWidthToFit(); tablemyImages.getColumnModel().getColumn(4).sizeWidthToFit(); tablemyImages.getColumnModel().getColumn(5).sizeWidthToFit(); + initTableModel(modelMyImages); + tablemyImages.setRowSorter(rowSorterMyImages); JScrollPane scrollPaneAllImages = new JScrollPane(); tableAllImages=new JTable(); @@ -272,7 +301,9 @@ public class SearchImage_GUI extends JFrame { tableAllImages.getColumnModel().getColumn(3).sizeWidthToFit(); tableAllImages.getColumnModel().getColumn(4).sizeWidthToFit(); tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit(); - + initTableModel(modelAll); + tableAllImages.setRowSorter(rowSorterAll); + scrollPaneAllImages.setViewportView(tableAllImages); tabbedPane.addTab("Alle", null, scrollPaneAllImages, null); @@ -290,6 +321,7 @@ public class SearchImage_GUI extends JFrame { scrollPaneCoopImages.setViewportView(tableCoopImages); tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages, null); + tabbedPane.setEnabledAt(2, false); JScrollPane scrollPanePublicImages = new JScrollPane(); JTable tablePublicImages=new JTable(); @@ -302,6 +334,7 @@ public class SearchImage_GUI extends JFrame { scrollPanePublicImages.setViewportView(tablePublicImages); tabbedPane.addTab("\u00D6ffentliche Images", null, scrollPanePublicImages, null); + tabbedPane.setEnabledAt(3, false); JScrollPane scrollPanePublicVorlagen = new JScrollPane(); JTable tablePublicVorlagen=new JTable(); @@ -314,12 +347,15 @@ public class SearchImage_GUI extends JFrame { scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen); tabbedPane.addTab("\u00D6ffentliche Vorlagen", null, scrollPanePublicVorlagen, null); + tabbedPane.setEnabledAt(4, false); + - initTableModel(modelAll); + JButton btnDownload = new JButton("Download"); btnDownload.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { + //Öffnet den Downloader FTPDownloader_GUI down=new FTPDownloader_GUI("Test"); down.setVisible(true); SearchImage_GUI.this.setVisible(false); @@ -336,7 +372,8 @@ public class SearchImage_GUI extends JFrame { { JButton okButton = new JButton("Zur\u00FCck"); okButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { + public void actionPerformed(ActionEvent e) { + //Öffnet das Hauptmenü MainMenue_GUI main=new MainMenue_GUI(); main.setVisible(true); dispose(); @@ -350,6 +387,7 @@ public class SearchImage_GUI extends JFrame { JButton cancelButton = new JButton("Weiter"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { + EditImageAllgemein_GUI ea=new EditImageAllgemein_GUI(); ea.setVisible(true); dispose(); @@ -371,12 +409,6 @@ public class SearchImage_GUI extends JFrame { JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); - JMenu mnNewMenu = new JMenu("Suchen"); - menuBar.add(mnNewMenu); - - JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); - mnNewMenu.add(mntmVlSuche); - JMenu mnNewMenu_1 = new JMenu("Hilfe"); menuBar.add(mnNewMenu_1); @@ -387,23 +419,24 @@ public class SearchImage_GUI extends JFrame { mnNewMenu_1.add(mntmOtrs); } - + //Initiale Beffülung eines Table models public DefaultTableModel initTableModel(DefaultTableModel model){ List<server.Image> images; try { + //Hole eine Liste der Images images = client.getImageList(); Iterator<server.Image> i=images.iterator(); - List<Object[]> ListObj = new ArrayList<Object[]>(); + int x=0; while(i.hasNext()) { - - i.next(); - Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUpdateTime(),images.get(x).getUserData()}; - ListObj.add(obj); - model.addRow(ListObj.get(x)); + //erzeuge Objekte für die Tabelle + Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUserData(),images.get(x).getUpdateTime()}; + //Füge diese Objekte der Tabelle hinzu + model.addRow(obj); x++; + i.next(); } diff --git a/Dozentenmodul/src/gui/VmWareLink_GUI.java b/Dozentenmodul/src/gui/VmWareLink_GUI.java index b803ee44..43df06a6 100644 --- a/Dozentenmodul/src/gui/VmWareLink_GUI.java +++ b/Dozentenmodul/src/gui/VmWareLink_GUI.java @@ -23,12 +23,18 @@ import javax.swing.JMenu; import javax.swing.JMenuItem; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; +import java.io.File; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JCheckBox; +import javax.swing.event.ChangeListener; +import javax.swing.event.ChangeEvent; + +import org.ini4j.InvalidFileFormatException; +import org.ini4j.Wini; @SuppressWarnings("serial") @@ -36,6 +42,7 @@ public class VmWareLink_GUI extends JFrame { private final JPanel contentPanel = new JPanel(); String[] result; + JCheckBox chckbxNewCheckBox; /** * Launch the application. */ @@ -123,7 +130,25 @@ public class VmWareLink_GUI extends JFrame { lblNewLabel_1.setBounds(10, 93, 499, 14); contentPanel.add(lblNewLabel_1); - JCheckBox chckbxNewCheckBox = new JCheckBox("Diese Benachrichtigung nicht mehr anzeigen."); + chckbxNewCheckBox = new JCheckBox("Diese Benachrichtigung nicht mehr anzeigen."); + chckbxNewCheckBox.addChangeListener(new ChangeListener() { + public void stateChanged(ChangeEvent arg0) { + if(chckbxNewCheckBox.isSelected()==true) + { + try { + Wini ini=new Wini(new File("C:\\Users\\"+System.getProperty("user.name")+"\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini")); + ini.put("main", "vmware",true); + ini.store(); + } catch (InvalidFileFormatException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } catch (IOException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } + } + } + }); chckbxNewCheckBox.setBounds(6, 472, 555, 23); contentPanel.add(chckbxNewCheckBox); diff --git a/Dozentenmodulserver/bin/server/ServerHandler.class b/Dozentenmodulserver/bin/server/ServerHandler.class Binary files differindex 58c7e63c..5f865381 100644 --- a/Dozentenmodulserver/bin/server/ServerHandler.class +++ b/Dozentenmodulserver/bin/server/ServerHandler.class diff --git a/Dozentenmodulserver/bin/server/User$UserStandardScheme.class b/Dozentenmodulserver/bin/server/User$UserStandardScheme.class Binary files differindex b431453b..b25a2613 100644 --- a/Dozentenmodulserver/bin/server/User$UserStandardScheme.class +++ b/Dozentenmodulserver/bin/server/User$UserStandardScheme.class diff --git a/Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.class b/Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.class Binary files differindex 176c88aa..0e4017f8 100644 --- a/Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.class +++ b/Dozentenmodulserver/bin/server/User$UserStandardSchemeFactory.class diff --git a/Dozentenmodulserver/bin/server/User$UserTupleScheme.class b/Dozentenmodulserver/bin/server/User$UserTupleScheme.class Binary files differindex ef7626d2..8b2f8aa7 100644 --- a/Dozentenmodulserver/bin/server/User$UserTupleScheme.class +++ b/Dozentenmodulserver/bin/server/User$UserTupleScheme.class diff --git a/Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.class b/Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.class Binary files differindex 4e4fba66..f88d2c7c 100644 --- a/Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.class +++ b/Dozentenmodulserver/bin/server/User$UserTupleSchemeFactory.class diff --git a/Dozentenmodulserver/bin/server/User$_Fields.class b/Dozentenmodulserver/bin/server/User$_Fields.class Binary files differindex 8837c194..b00860c9 100644 --- a/Dozentenmodulserver/bin/server/User$_Fields.class +++ b/Dozentenmodulserver/bin/server/User$_Fields.class diff --git a/Dozentenmodulserver/bin/server/User.class b/Dozentenmodulserver/bin/server/User.class Binary files differindex b19fe5bd..e81a2862 100644 --- a/Dozentenmodulserver/bin/server/User.class +++ b/Dozentenmodulserver/bin/server/User.class diff --git a/Dozentenmodulserver/bin/sql/SQL.class b/Dozentenmodulserver/bin/sql/SQL.class Binary files differindex 1c996f36..593b47bf 100644 --- a/Dozentenmodulserver/bin/sql/SQL.class +++ b/Dozentenmodulserver/bin/sql/SQL.class diff --git a/Dozentenmodulserver/src/server/ServerHandler.java b/Dozentenmodulserver/src/server/ServerHandler.java index 78e81464..9b52aea6 100644 --- a/Dozentenmodulserver/src/server/ServerHandler.java +++ b/Dozentenmodulserver/src/server/ServerHandler.java @@ -92,31 +92,21 @@ public class ServerHandler implements Server.Iface { @Override public List<Image> getImageList() throws TException { - ResultSet resWith=sql.getImageListWithLectures(con); - ResultSet resWithout=sql.getImageListWithoutLectures(con); - List<Image> listWith = new ArrayList<Image>(); - List<Image> listWithout = new ArrayList<Image>(); + ResultSet res=sql.getImageList(con); + + List<Image> list = new ArrayList<Image>(); + try { - while(resWith.next()) + while(res.next()) { - listWith.add(new Image(resWith.getString("image_name"),resWith.getString("cond_hasLicenseRestriction"),resWith.getString("name"),resWith.getString("lecture"),resWith.getString("image_update_time"),resWith.getString("user"))); - - } - - while(resWithout.next()) - { - listWithout.add(new Image(resWithout.getString("image_name"),resWithout.getString("cond_hasLicenseRestriction"),resWithout.getString("name"),"''",resWithout.getString("image_update_time"),resWithout.getString("user"))); + list.add(new Image(res.getString("image_name"),res.getString("cond_hasLicenseRestriction"),res.getString("name"),res.getString("lecture"),res.getString("image_update_time"),res.getString("user"))); } - if(listWithout!=null) - { - listWith.addAll(listWith.size(), listWithout); - } - return listWith; + return list; } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); diff --git a/Dozentenmodulserver/src/server/User.java b/Dozentenmodulserver/src/server/User.java index 5fd2f983..a763e1c7 100644 --- a/Dozentenmodulserver/src/server/User.java +++ b/Dozentenmodulserver/src/server/User.java @@ -5,32 +5,20 @@ * @generated */ package server; +import java.util.BitSet; +import java.util.Collections; +import java.util.EnumMap; +import java.util.EnumSet; +import java.util.HashMap; +import java.util.Map; + +import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; - import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +@SuppressWarnings("serial") public class User implements org.apache.thrift.TBase<User, User._Fields>, java.io.Serializable, Cloneable, Comparable<User> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("User"); @@ -38,7 +26,8 @@ public class User implements org.apache.thrift.TBase<User, User._Fields>, java.i private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)-2); private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)-3); - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); + @SuppressWarnings("rawtypes") +private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new UserStandardSchemeFactory()); schemes.put(TupleScheme.class, new UserTupleSchemeFactory()); diff --git a/Dozentenmodulserver/src/sql/SQL.java b/Dozentenmodulserver/src/sql/SQL.java index b07de35b..9f9ba352 100644 --- a/Dozentenmodulserver/src/sql/SQL.java +++ b/Dozentenmodulserver/src/sql/SQL.java @@ -191,11 +191,11 @@ public class SQL { }
- public ResultSet getImageListWithoutLectures(Connection con){
+ public ResultSet getImageList(Connection con){
try {
Statement stm=con.createStatement();
- return stm.executeQuery("SELECT distinct vl.image_name, vl.cond_hasLicenseRestriction, os.name, '',vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and vl.image_owner=u.userID;");
+ return stm.executeQuery("SELECT vl.image_name, vl.cond_hasLicenseRestriction, os.name, '' as lecture,vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and vl.image_owner=u.userID and vl.image_name not in (SELECT vl.image_name FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID) union SELECT vl.image_name, vl.cond_hasLicenseRestriction, os.name, lect.name as lecture, vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID;");
} catch (SQLException e) {
@@ -205,19 +205,6 @@ public class SQL { return null;
}
- public ResultSet getImageListWithLectures(Connection con){
- try {
- Statement stm=con.createStatement();
-
- return stm.executeQuery("SELECT vl.image_name, vl.cond_hasLicenseRestriction, os.name, lect.name as lecture, vl.image_update_time, Concat(u.Nachname,' ',u.Vorname) as user FROM bwLehrpool.m_VLData_imageInfo vl, bwLehrpool.m_operatingSystem os, bwLehrpool.m_VLData_lecture lect, bwLehrpool.m_user u Where vl.content_operatingSystem=os.operatingSystemID and lect.imageID=vl.GUID_imageID and vl.image_owner=u.userID;");
-
-
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
public ResultSet getAllOS(Connection con)
{
|