Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
s4s
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Jeremy Pinzauti (Archived)
s4s
Commits
1e730d95
Commit
1e730d95
authored
7 years ago
by
JanPhilipp
Browse files
Options
Downloads
Patches
Plain Diff
fertige RegistrierungsView
parent
53a0786c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/s4s/dao/impl/RegistrationControl.java
+1
-0
1 addition, 0 deletions
src/main/java/org/s4s/dao/impl/RegistrationControl.java
src/main/java/org/s4s/gui/views/RegistrierungView.java
+27
-5
27 additions, 5 deletions
src/main/java/org/s4s/gui/views/RegistrierungView.java
with
28 additions
and
5 deletions
src/main/java/org/s4s/dao/impl/RegistrationControl.java
+
1
−
0
View file @
1e730d95
...
...
@@ -36,6 +36,7 @@ public class RegistrationControl {
email
=
data
[
2
];
password
=
data
[
4
];
if
(!
nameValidator
(
surname
))
{
return
false
;
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/s4s/gui/views/RegistrierungView.java
+
27
−
5
View file @
1e730d95
...
...
@@ -9,15 +9,17 @@ import com.vaadin.navigator.View;
import
com.vaadin.navigator.ViewChangeListener
;
import
com.vaadin.server.FontAwesome
;
import
com.vaadin.shared.ui.label.ContentMode
;
import
com.vaadin.ui.Alignment
;
import
com.vaadin.ui.Button
;
import
com.vaadin.ui.DateField
;
import
com.vaadin.ui.FormLayout
;
import
com.vaadin.ui.HorizontalLayout
;
import
com.vaadin.ui.Label
;
import
com.vaadin.ui.NativeSelect
;
import
com.vaadin.ui.Panel
;
import
com.vaadin.ui.PasswordField
;
import
com.vaadin.ui.TextField
;
import
com.vaadin.ui.UI
;
import
java.util.Date
;
import
org.s4s.dao.impl.RegistrationControl
;
import
org.s4s.services.util.Views
;
...
...
@@ -44,6 +46,12 @@ public class RegistrierungView extends TemplateView implements View {
panel
.
setSizeUndefined
();
FormLayout
content
=
new
FormLayout
();
TextField
benutzername
=
new
TextField
(
"Benutzername"
);
content
.
addComponent
(
benutzername
);
DateField
bday
=
new
DateField
(
"Geburtstag"
);
content
.
addComponent
(
bday
);
TextField
nachnameTxt
=
new
TextField
(
"Nachname:"
);
nachnameTxt
.
setIcon
(
FontAwesome
.
USER
);
...
...
@@ -53,6 +61,14 @@ public class RegistrierungView extends TemplateView implements View {
TextField
vornameTxt
=
new
TextField
(
"Vorname:"
);
vornameTxt
.
setIcon
(
FontAwesome
.
ANDROID
);
content
.
addComponent
(
vornameTxt
);
NativeSelect
fachbereich
=
new
NativeSelect
(
"Fachbereich"
);
fachbereich
.
addItems
(
"Student"
,
"Hivi"
,
"Prof"
);
fachbereich
.
setNullSelectionAllowed
(
false
);
content
.
addComponent
(
fachbereich
);
TextField
emailTxt
=
new
TextField
(
"E-Mail:"
);
emailTxt
.
setIcon
(
FontAwesome
.
MAIL_FORWARD
);
...
...
@@ -69,6 +85,8 @@ public class RegistrierungView extends TemplateView implements View {
PasswordField
passwortTxtWdh
=
new
PasswordField
(
"Passwort wiederholen:"
);
passwortTxtWdh
.
setIcon
(
FontAwesome
.
KEY
);
content
.
addComponent
(
passwortTxtWdh
);
HorizontalLayout
buttons
=
new
HorizontalLayout
();
Button
abbruch
=
new
Button
(
"Abbruch"
);
...
...
@@ -90,25 +108,29 @@ public class RegistrierungView extends TemplateView implements View {
bestätigen
.
addClickListener
(
e
->
{
String
benutzer
=
benutzername
.
getValue
();
String
nachname
=
nachnameTxt
.
getValue
();
String
vorname
=
vornameTxt
.
getValue
();
Date
gebDate
=
bday
.
getValue
();
String
fBereich
=
(
String
)
fachbereich
.
getValue
();
String
email
=
emailTxt
.
getValue
();
String
emailwdh
=
emailTxtWdh
.
getValue
();
String
passwort
=
passwortTxt
.
getValue
();
String
passwortWdh
=
passwortTxtWdh
.
getValue
();
UI
.
getCurrent
().
getNavigator
().
navigateTo
(
Views
.
REGISTRIERUNGSBESTAETIGUNG
);
// RegistrierungControl.Methode(Parameter);
//Anbindungstestblock. svolle2s
RegistrationControl
.
init
(
new
String
[]{
nachname
,
vorname
,
email
,
emailwdh
,
passwort
,
passwortWdh
});
RegistrationControl
.
init
(
new
String
[]{
nachname
,
vorname
,
email
,
emailwdh
,
passwort
,
passwortWdh
,
benutzer
,});
// diverse Daten fehlen siehe bday fachbereich
System
.
out
.
println
(
benutzer
);
System
.
out
.
println
(
nachname
);
System
.
out
.
println
(
vorname
);
System
.
out
.
println
(
gebDate
);
System
.
out
.
println
(
email
);
System
.
out
.
println
(
emailwdh
);
System
.
out
.
println
(
passwort
);
System
.
out
.
println
(
passwortWdh
);
System
.
out
.
println
(
fBereich
);
// Weiterleitung auf Bestätigunsseite
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment