++
роль студента
This commit is contained in:
@@ -3,6 +3,7 @@ import java.io.Serializable;
|
||||
public enum AccountRole implements Serializable {
|
||||
Undefined,
|
||||
User,
|
||||
Student,
|
||||
Developer,
|
||||
Admin;
|
||||
public String getDescription() {
|
||||
@@ -11,6 +12,8 @@ public enum AccountRole implements Serializable {
|
||||
return "не зарегистрирован";
|
||||
case User:
|
||||
return "Пользователь";
|
||||
case Student:
|
||||
return "Студент";
|
||||
case Developer:
|
||||
return "Разработчик";
|
||||
case Admin:
|
||||
|
||||
@@ -17,6 +17,7 @@ public class UserAccountFields implements DialogFields {
|
||||
tfAddress = new StyledTextField();
|
||||
cbRole = new JComboBox<>();
|
||||
cbRole.addItem(AccountRole.User);
|
||||
cbRole.addItem(AccountRole.Student);
|
||||
cbRole.addItem(AccountRole.Developer);
|
||||
cbRole.addItem(AccountRole.Admin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user