java.lang.Object
net.datenwerke.gf.client.managerhelper.mainpanel.FormViewUtil
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

public class FormViewUtil extends Object
This util class provides common elements used in the FormView classes to ensure that we have the same design elements and formatting everywhere
  • Field Details

  • Constructor Details

    • FormViewUtil

      public FormViewUtil()
  • Method Details

    • createNameField

      public TextField createNameField()
    • createKeyField

      public TextField createKeyField()
    • createDescriptionField

      public CodeMirrorPanel createDescriptionField()
      Creates and configures a description field as a CodeMirrorPanel instance. The field is set up with specific configurations such as height, language mode, and line number visibility.
      Returns:
      a CodeMirrorPanel instance configured as a text editor for SQL with a height of 150 pixels, line numbers enabled, and no toolbar enhancements.
    • addNameAndKey

      public void addNameAndKey(VerticalLayoutContainer fieldWrapper, TextField nameField, TextField keyField)
      Adds labeled text fields for "Name" and "Key" to the specified container. This method uses predefined labels and layout configurations to create two labeled text field rows within the provided container.
      Parameters:
      fieldWrapper - the container to which the labeled text field rows will be added
      nameField - the text field representing the "Name" input
      keyField - the text field representing the "Key" input
    • addDescription

      public void addDescription(VerticalLayoutContainer fieldWrapper, CodeMirrorPanel descriptionField)
      Adds a labeled description field to the specified container. This method wraps the provided CodeMirrorPanel description field with a label and adds it to the given vertical layout container with specific layout configurations.
      Parameters:
      fieldWrapper - the container to which the labeled description field will be added
      descriptionField - the description field to be added and labeled