Package Roots
Class DeleteUserRoot
- java.lang.Object
-
- Roots.SceneRoot
-
- Roots.DeleteUserRoot
-
final class DeleteUserRoot extends SceneRoot
Class for the delete user root
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.Button
DELETE_USER_BUTTON
private javafx.scene.control.Label
FEEDBACK_LABEL
private javafx.scene.control.Label
INSTRUCTIONS_LABEL
private javafx.scene.control.PasswordField
PASSWORD_FIELD
-
Constructor Summary
Constructors Constructor Description DeleteUserRoot()
DeleteUserRoot constructor Uses SceneRoot constructor to create an object of the DeleteUserRoot class
-
Method Summary
Modifier and Type Method Description private void
deleteUser()
Deletes the current user's user If the password is correct and the user confirms the choice(package private) void
setLayout()
Overrides SceneRoot method.-
Methods inherited from class Roots.SceneRoot
getBorderPane, getGridPane, setGridPane, setPageTitle
-
-
-
-
Field Detail
-
INSTRUCTIONS_LABEL
private final javafx.scene.control.Label INSTRUCTIONS_LABEL
-
PASSWORD_FIELD
private final javafx.scene.control.PasswordField PASSWORD_FIELD
-
FEEDBACK_LABEL
private final javafx.scene.control.Label FEEDBACK_LABEL
-
DELETE_USER_BUTTON
private final javafx.scene.control.Button DELETE_USER_BUTTON
-
-
Method Detail
-
setLayout
void setLayout()
Overrides SceneRoot method. Assigns layout components to RootBuilders GridPane Sets styling to layout components Sets functionality to button nodes Used in constructor
-
deleteUser
private void deleteUser()
Deletes the current user's user If the password is correct and the user confirms the choice
-
-