diff options
author | Stephan Schwaer | 2015-07-09 18:16:59 +0200 |
---|---|---|
committer | Stephan Schwaer | 2015-07-09 18:16:59 +0200 |
commit | b9d986b82ef98fec6c30ea9ce72ffa017b24abad (patch) | |
tree | 4401cfb189d43bc4c6da5e2a962f70d83120b595 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LoginWindowLayout.java | |
parent | Merge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1 (diff) | |
download | tutor-module-b9d986b82ef98fec6c30ea9ce72ffa017b24abad.tar.gz tutor-module-b9d986b82ef98fec6c30ea9ce72ffa017b24abad.tar.xz tutor-module-b9d986b82ef98fec6c30ea9ce72ffa017b24abad.zip |
[client] Moved functions from ImageListWindowLayout to ImageListWindow and reduced code replication.
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 | 14 |
1 files changed, 7 insertions, 7 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 b527070e..943e8c4e 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 @@ -21,7 +21,7 @@ public abstract class LoginWindowLayout extends Composite { BWIDM(0, "bwidm"), BWLP(1, "bwlp"), SAT(2, "sat"); - + private final int id; private final String tag; private LOGIN_TYPE(final int id, final String tag) { @@ -33,10 +33,10 @@ public abstract class LoginWindowLayout extends Composite { public static LOGIN_TYPE getEnum(String tag) { switch(tag) { - case "bwidm": return LOGIN_TYPE.BWIDM; - case "bwlp": return LOGIN_TYPE.BWLP; - case "sat": return LOGIN_TYPE.SAT; - default: return null; + case "bwidm": return LOGIN_TYPE.BWIDM; + case "bwlp": return LOGIN_TYPE.BWLP; + case "sat": return LOGIN_TYPE.SAT; + default: return null; } } } @@ -44,7 +44,7 @@ public abstract class LoginWindowLayout extends Composite { protected LOGIN_TYPE loginType = null; private Image titleImage; - + // textfields for the username/password protected Text usernameText; @@ -88,7 +88,7 @@ public abstract class LoginWindowLayout extends Composite { gridData.horizontalAlignment = SWT.CENTER; titlePicture.setLayoutData(gridData); - + // group for the authentication method. // groups have borders and a title Group authGroup = new Group(this, SWT.NONE); |