Fix checkstyle errors
This commit is contained in:
@@ -132,6 +132,10 @@ public class ExtraActivityController {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* add transition animation.
|
||||||
|
* @param node adding animation
|
||||||
|
*/
|
||||||
public void addFadeTransAnimation(Node node) {
|
public void addFadeTransAnimation(Node node) {
|
||||||
FadeTransition fade = new FadeTransition(Duration.millis(350), node);
|
FadeTransition fade = new FadeTransition(Duration.millis(350), node);
|
||||||
fade.setFromValue(0);
|
fade.setFromValue(0);
|
||||||
|
|||||||
@@ -621,6 +621,10 @@ public class RegisterWindowController {
|
|||||||
|
|
||||||
@SuppressWarnings("Duplicates")
|
@SuppressWarnings("Duplicates")
|
||||||
public class registerButtonSkin extends ButtonSkin {
|
public class registerButtonSkin extends ButtonSkin {
|
||||||
|
/**
|
||||||
|
* registers button skins.
|
||||||
|
* @param button clicking
|
||||||
|
*/
|
||||||
public registerButtonSkin(Button button) {
|
public registerButtonSkin(Button button) {
|
||||||
super(button);
|
super(button);
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public class UserController {
|
|||||||
loginButton.setSkin(new LoginButtonSkin(loginButton));
|
loginButton.setSkin(new LoginButtonSkin(loginButton));
|
||||||
signUpButton.setSkin(new LoginButtonSkin(signUpButton));
|
signUpButton.setSkin(new LoginButtonSkin(signUpButton));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles when the user clicks on the login button.
|
* Handles when the user clicks on the login button.
|
||||||
* it checks if the username and password fields are filled
|
* it checks if the username and password fields are filled
|
||||||
@@ -52,7 +53,6 @@ public class UserController {
|
|||||||
*/
|
*/
|
||||||
@FXML
|
@FXML
|
||||||
protected void handleLoginButtonAction(ActionEvent event) throws IOException {
|
protected void handleLoginButtonAction(ActionEvent event) throws IOException {
|
||||||
|
|
||||||
Window owner = loginButton.getScene().getWindow(); //get the current window
|
Window owner = loginButton.getScene().getWindow(); //get the current window
|
||||||
if (usernameField.getText().isEmpty()) {
|
if (usernameField.getText().isEmpty()) {
|
||||||
AlertHelper.showAlert(Alert.AlertType.ERROR, owner, "Log-in Error!",
|
AlertHelper.showAlert(Alert.AlertType.ERROR, owner, "Log-in Error!",
|
||||||
@@ -153,6 +153,10 @@ public class UserController {
|
|||||||
|
|
||||||
@SuppressWarnings("Duplicates")
|
@SuppressWarnings("Duplicates")
|
||||||
public class LoginButtonSkin extends ButtonSkin {
|
public class LoginButtonSkin extends ButtonSkin {
|
||||||
|
/**
|
||||||
|
* method for the skin of login button.
|
||||||
|
* @param button clicking
|
||||||
|
*/
|
||||||
public LoginButtonSkin(Button button) {
|
public LoginButtonSkin(Button button) {
|
||||||
super(button);
|
super(button);
|
||||||
ScaleTransition scaleUp = new ScaleTransition(Duration.millis(140));
|
ScaleTransition scaleUp = new ScaleTransition(Duration.millis(140));
|
||||||
|
|||||||
Reference in New Issue
Block a user