private void addListListener(TextField k, TextField v, Button deleteButton) {
    k.textProperty()
        .addListener(
            (observable, oldValue, newValue) -> {
              buttonAddList.setDisable(false);
              HashMap<String, String> lists1 = Main.settings.getLists();
              String text = k.getText();
              String id = k.getId();
              String v1 = lists1.get(id);
              lists1.remove(id);
              lists1.put(text, v1);

              k.setId(text);

              Main.settings.setLists(lists1);
              save();
            });
    v.textProperty()
        .addListener(
            (observable, oldValue, newValue) -> {
              k.setDisable(false);
              HashMap<String, String> lists1 = Main.settings.getLists();
              lists1.put(v.getId().substring(1), v.getText());
              Main.settings.setLists(lists1);
              save();
            });
    deleteButton.setOnAction(
        event -> {
          k.setVisible(false);
          v.setVisible(false);
          deleteButton.setVisible(false);
          Main.settings.getLists().remove(k.getText());
          save();
        });
  }
  private boolean matchesFilter(ModelMarketData dolar, TextField filterField) {

    String filterString = filterField.getText();

    if (filterString == null || filterString.isEmpty()) {
      return true;
    }

    String lowerCaseFilterString = filterString.toLowerCase();

    if (filterField.getId().equals("filterField")) {
      if (dolar.getSymbol().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterType")) {
      if (dolar.getMessageByType().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    return false;
  }
  private boolean matchesFilter(ModelRoutingData routingAdr, TextField filterField) {

    String filterString = filterField.getText();

    if (filterString == null || filterString.isEmpty()) {
      return true;
    }

    String lowerCaseFilterString = filterString.toLowerCase();

    if (filterField.getId().equals("filterFieldClOrdLinkID")) {
      if (routingAdr.getClOrdLinkID().toString().toLowerCase().indexOf(lowerCaseFilterString)
          != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterFieldSide")) {
      if (routingAdr.getSide().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterFieldAccount")) {
      if (routingAdr.getAccount().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterFieldOrdStatus")) {
      if (routingAdr.getOrdStatus().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterFieldExecType")) {
      if (routingAdr.getExecType().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterFieldOrigClOrdID")) {
      if (routingAdr.getOrigClOrdID().toString().toLowerCase().indexOf(lowerCaseFilterString)
          != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterFieldOrderID")) {
      if (routingAdr.getOrderID().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterFieldSymbol")) {
      if (routingAdr.getSymbol().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    if (filterField.getId().equals("filterFieldClOrdID")) {
      if (routingAdr.getClOrdID().toString().toLowerCase().indexOf(lowerCaseFilterString) != -1) {
        return true;
      }
    }

    return false;
  }