diff options
author | Jonathan Bauer | 2019-01-31 16:22:50 +0100 |
---|---|---|
committer | Jonathan Bauer | 2019-01-31 16:22:50 +0100 |
commit | e025340c3e3056ca050b52ad05271a43846a2642 (patch) | |
tree | 733ca7ea725a84f5870827f7e89e3f9c08b59680 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java | |
parent | [*] Fix accidental use of Boolean.getBoolean. (-> .parseBoolean()) (diff) | |
download | tutor-module-e025340c3e3056ca050b52ad05271a43846a2642.tar.gz tutor-module-e025340c3e3056ca050b52ad05271a43846a2642.tar.xz tutor-module-e025340c3e3056ca050b52ad05271a43846a2642.zip |
[client] introduce branding, --dump and --pack
Application name, service name, master server endpoints, documentation
websites needed to be configurable to allow for an easy rebranding of
the suite.
Two new options allow this: use '--dump <folder>' to dump the jar's
configurable files into that folder. Aside from text templates in 'txt',
logos and icons in 'img', the 'branding.properties' file contains:
* masterserver.address : self-explanatory
* application.name : name to be shown on graphical elements like the
main window
* service.name : name to be used as a prefix for formulation like
'bwLehrpool-Team' or 'bwLehrpool-System' etc
* service.faq.website : link to FAQ website
* service.email : support contact address
Once edited, the whole folder can be integrated into the Suite with
'--pack <folder> <new_jar>'. The path to the new jar is then the
rebranded version of the suite.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java index 6705ac20..18e7133e 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java @@ -19,6 +19,7 @@ import javax.swing.border.TitledBorder; import org.apache.log4j.Logger; import org.openslx.bwlp.thrift.iface.Organization; +import org.openslx.dozmod.Branding; import org.openslx.dozmod.gui.Gui; import org.openslx.dozmod.gui.control.ComboBox; import org.openslx.dozmod.gui.control.ComboBox.ComboBoxRenderer; @@ -47,7 +48,7 @@ public abstract class LoginWindowLayout extends JDialog { // authentication method to use for login attempts protected LOGIN_TYPE loginType = null; - private static final String TITLE = "bwLehrpool-Suite - Login"; + private static final String TITLE = Branding.getApplicationName() + " - Login"; private static final String AUTH_TYPE_LABEL = "Authentifizierungsart"; private static final String LOGIN_FORM_LABEL = "Zugangsdaten"; private static final String ADVANCED_LABEL = "Erweitert"; @@ -176,12 +177,12 @@ public abstract class LoginWindowLayout extends JDialog { } /** - * @return ImageIcon of the standard bwLehrpool logo scaled to the login + * @return ImageIcon of the standard service logo scaled to the login * window size */ private ImageIcon getScaledLogo() { try { - ImageIcon image = ResourceLoader.getIcon("/img/bwLehrpool-logo.png"); + ImageIcon image = ResourceLoader.getIcon("/img/service-logo.png"); Rectangle screenSize = Gui.getMonitorFromRectangle(getBounds(), true) .getDefaultConfiguration() .getBounds(); |