mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Change naming of variables and methods
This commit is contained in:
parent
d2dd99fdb3
commit
fbf7af8093
2 changed files with 8 additions and 8 deletions
|
@ -39,7 +39,7 @@ public class TextFieldWithCopyIcon extends AnchorPane {
|
|||
private final StringProperty text = new SimpleStringProperty();
|
||||
private final TextField textField;
|
||||
private boolean copyWithoutCurrencyPostFix;
|
||||
private boolean copyWithoutBeforeSlash;
|
||||
private boolean copyTextAfterDelimiter;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Constructor
|
||||
|
@ -65,7 +65,7 @@ public class TextFieldWithCopyIcon extends AnchorPane {
|
|||
copyText = strings[0]; // exclude the BTC postfix
|
||||
else
|
||||
copyText = text;
|
||||
} else if (copyWithoutBeforeSlash) {
|
||||
} else if (copyTextAfterDelimiter) {
|
||||
String[] strings = text.split(" ");
|
||||
if (strings.length > 1)
|
||||
copyText = strings[2]; // exclude the part before / (slash included)
|
||||
|
@ -116,8 +116,8 @@ public class TextFieldWithCopyIcon extends AnchorPane {
|
|||
this.copyWithoutCurrencyPostFix = copyWithoutCurrencyPostFix;
|
||||
}
|
||||
|
||||
public void setCopyWithoutBeforeSlash(boolean copyWithoutBeforeSlash) {
|
||||
this.copyWithoutBeforeSlash = copyWithoutBeforeSlash;
|
||||
public void setCopyTextAfterDelimiter(boolean copyTextAfterDelimiter) {
|
||||
this.copyTextAfterDelimiter = copyTextAfterDelimiter;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1524,8 +1524,8 @@ public class FormBuilder {
|
|||
int colIndex,
|
||||
String title,
|
||||
String value,
|
||||
boolean withoutBeforeSlash) {
|
||||
return addTopLabelTextFieldWithCopyIcon(gridPane, rowIndex, colIndex, title, value, -Layout.FLOATING_LABEL_DISTANCE, withoutBeforeSlash);
|
||||
boolean onlyCopyTextAfterDelimiter) {
|
||||
return addTopLabelTextFieldWithCopyIcon(gridPane, rowIndex, colIndex, title, value, -Layout.FLOATING_LABEL_DISTANCE, onlyCopyTextAfterDelimiter);
|
||||
}
|
||||
|
||||
public static Tuple2<Label, TextFieldWithCopyIcon> addTopLabelTextFieldWithCopyIcon(GridPane gridPane,
|
||||
|
@ -1563,11 +1563,11 @@ public class FormBuilder {
|
|||
String title,
|
||||
String value,
|
||||
double top,
|
||||
boolean withoutBeforeSlash) {
|
||||
boolean onlyCopyTextAfterDelimiter) {
|
||||
|
||||
TextFieldWithCopyIcon textFieldWithCopyIcon = new TextFieldWithCopyIcon();
|
||||
textFieldWithCopyIcon.setText(value);
|
||||
textFieldWithCopyIcon.setCopyWithoutBeforeSlash(true);
|
||||
textFieldWithCopyIcon.setCopyTextAfterDelimiter(true);
|
||||
|
||||
final Tuple2<Label, VBox> topLabelWithVBox = addTopLabelWithVBox(gridPane, rowIndex, title, textFieldWithCopyIcon, top);
|
||||
topLabelWithVBox.second.setAlignment(Pos.TOP_LEFT);
|
||||
|
|
Loading…
Add table
Reference in a new issue