Class ViewUtils
java.lang.Object
eirb.pub.app.display.javafx.view.utils.ViewUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetGridRowVisible(javafx.scene.layout.GridPane gridPane, int rowIndex, boolean visible) Sets the visibility of a specific row in a GridPane.static voidsetupPasswordField(javafx.scene.control.PasswordField passwordField, javafx.scene.control.TextField plain, javafx.scene.control.CheckBox checkBox) Set up the password field to show plain text when the checkbox is selected
-
Method Details
-
setupPasswordField
public static void setupPasswordField(javafx.scene.control.PasswordField passwordField, javafx.scene.control.TextField plain, javafx.scene.control.CheckBox checkBox) Set up the password field to show plain text when the checkbox is selected- Parameters:
passwordField- the password fieldplain- the plain text fieldcheckBox- the checkbox
-
setGridRowVisible
public static void setGridRowVisible(javafx.scene.layout.GridPane gridPane, int rowIndex, boolean visible) Sets the visibility of a specific row in a GridPane. This method iterates through all the gridPane- Parameters:
gridPane- the GridPane to modifyrowIndex- the index of the row to modifyvisible- true to make the row visible, false to hide it
-