Package Roots
Class LoginRoot
- java.lang.Object
-
- Roots.SceneRoot
-
- Roots.LoginRoot
-
public final class LoginRoot extends SceneRoot
Class for the login root
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.ProgressIndicator
LOADING_ANIMATION
private javafx.scene.control.Button
LOG_IN_BUTTON
private javafx.scene.control.Label
LOG_IN_LABEL
private javafx.scene.control.PasswordField
PASSWORD_FIELD
private javafx.scene.control.Label
PASSWORD_LABEL
private javafx.scene.control.Button
SIGN_UP_BUTTON
private javafx.scene.control.TextField
USERNAME_FIELD
private javafx.scene.control.Label
USERNAME_LABEL
-
Constructor Summary
Constructors Constructor Description LoginRoot()
LoginRoot constructor Uses SceneRoot constructor to create an object of the LoginRoot class
-
Method Summary
Modifier and Type Method Description (package private) javafx.scene.control.Label
getLOG_IN_LABEL()
private void
login()
Method that is ran when logging in to the application Used in setLayout(package private) void
setLayout()
Overrides SceneRoot method.-
Methods inherited from class Roots.SceneRoot
getBorderPane, getGridPane, setGridPane, setPageTitle
-
-
-
-
Field Detail
-
USERNAME_LABEL
private final javafx.scene.control.Label USERNAME_LABEL
-
USERNAME_FIELD
private final javafx.scene.control.TextField USERNAME_FIELD
-
PASSWORD_LABEL
private final javafx.scene.control.Label PASSWORD_LABEL
-
PASSWORD_FIELD
private final javafx.scene.control.PasswordField PASSWORD_FIELD
-
LOG_IN_LABEL
private final javafx.scene.control.Label LOG_IN_LABEL
-
LOG_IN_BUTTON
private final javafx.scene.control.Button LOG_IN_BUTTON
-
SIGN_UP_BUTTON
private final javafx.scene.control.Button SIGN_UP_BUTTON
-
LOADING_ANIMATION
private final javafx.scene.control.ProgressIndicator LOADING_ANIMATION
-
-
Method Detail
-
getLOG_IN_LABEL
javafx.scene.control.Label getLOG_IN_LABEL()
-
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
-
login
private void login()
Method that is ran when logging in to the application Used in setLayout
-
-