Class FormViewUtil
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.
This util class provides common elements used in the FormView classes to ensure that we have the same design elements
and formatting everywhere
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescription(VerticalLayoutContainer fieldWrapper, CodeMirrorPanel descriptionField) Adds a labeled description field to the specified container.voidaddNameAndKey(VerticalLayoutContainer fieldWrapper, TextField nameField, TextField keyField) Adds labeled text fields for "Name" and "Key" to the specified container.Creates and configures a description field as aCodeMirrorPanelinstance.TextFieldTextField
-
Field Details
-
FLEX
public static final double FLEX- See Also:
-
MIN_SIZE
public static final int MIN_SIZE- See Also:
-
-
Constructor Details
-
FormViewUtil
public FormViewUtil()
-
-
Method Details
-
createNameField
public TextField createNameField() -
createKeyField
public TextField createKeyField() -
createDescriptionField
Creates and configures a description field as aCodeMirrorPanelinstance. The field is set up with specific configurations such as height, language mode, and line number visibility.- Returns:
- a
CodeMirrorPanelinstance 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 addednameField- the text field representing the "Name" inputkeyField- the text field representing the "Key" input
-
addDescription
Adds a labeled description field to the specified container. This method wraps the providedCodeMirrorPaneldescription 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 addeddescriptionField- the description field to be added and labeled
-