Add method

This commit is contained in:
chimp1984 2021-10-21 11:03:53 +02:00
parent 8bb42e1421
commit 1aa5e7053d
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -1293,6 +1293,29 @@ public class FormBuilder {
return new Tuple2<>(label, vBox);
}
public static Tuple3<Label, TextField, HBox> addTopLabelTextFieldWithHbox(GridPane gridPane,
int rowIndex,
String titleTextfield,
double top) {
HBox hBox = new HBox();
hBox.setSpacing(10);
TextField textField = new BisqTextField();
final VBox topLabelVBox = getTopLabelVBox(5);
final Label topLabel = getTopLabel(titleTextfield);
topLabelVBox.getChildren().addAll(topLabel, textField);
hBox.getChildren().addAll(topLabelVBox);
GridPane.setRowIndex(hBox, rowIndex);
GridPane.setMargin(hBox, new Insets(top, 0, 0, 0));
gridPane.getChildren().add(hBox);
return new Tuple3<>(topLabel, textField, hBox);
}
///////////////////////////////////////////////////////////////////////////////////////////
// Label + ComboBox
///////////////////////////////////////////////////////////////////////////////////////////