Class ViewUtils

java.lang.Object
eirb.pub.app.display.javafx.view.utils.ViewUtils

public class ViewUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    setGridRowVisible(javafx.scene.layout.GridPane gridPane, int rowIndex, boolean visible)
    Sets the visibility of a specific row in a GridPane.
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 field
      plain - the plain text field
      checkBox - 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 modify
      rowIndex - the index of the row to modify
      visible - true to make the row visible, false to hide it