mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Add method
This commit is contained in:
parent
8bb42e1421
commit
1aa5e7053d
@ -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
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user