Change naming of variables and methods

This commit is contained in:
BtcContributor 2021-03-11 17:37:32 +01:00
parent d2dd99fdb3
commit fbf7af8093
No known key found for this signature in database
GPG key ID: DA582457496C7F6D
2 changed files with 8 additions and 8 deletions

View file

@ -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;
}
}

View file

@ -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);