Ejemplo n.º 1
0
    public AgentInfo(String field, String value) {
      this.field = field;
      this.value = value;
      this.active = true;
      color = Configuration.getInstance().getColor(getName());

      inventory.addListener(
          (Observable o) -> {
            if (inventory.get() != null) {
              filteredInventory = new FilteredList<Inventory>(inventory.get());
              filteredInventory.addListener(
                  (Observable e) -> {
                    addToChart(this);
                  });
              filteredInventory.predicateProperty().bind(_currentNuclideFilterProperty);
            }
          });
    }
 public void addListener(final ListChangeListener<T> listener) {
   elementsProperty.addListener(listener);
 }