@Test public void usesTransactionLabelRenderer() { model.setTransactionLabelRenderer(t -> "custom label"); transactions.add(createRunningTransaction()); assertEquals("custom label", getTransactionLabel()); }
public void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer) { this.transactionLabelRenderer = transactionLabelRenderer; }
TransferViewModel extends TransactionFxProgressCollectionModel { public void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer) { this.transactionLabelRenderer = transactionLabelRenderer; } }
TransferViewModel extends TransactionFxProgressCollectionModel { public void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer) { this.transactionLabelRenderer = transactionLabelRenderer; } TransferViewModel(HasProgressCollection<?, Transaction> progress); }
TransferViewModel extends TransactionFxProgressCollectionModel { public void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer) { this.transactionLabelRenderer = transactionLabelRenderer; } TransferViewModel(HasProgressCollection<?, Transaction> progress); String render(Transaction transaction); StringProperty currentTransactionLabel(); LongProperty currentTransactionPercent(); StringProperty currentTransactionPercentLabel(); BooleanProperty currentTransactionImageVisible(); ObjectProperty<Image> currentTransactionImage(); void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer); }
TransferViewModel extends TransactionFxProgressCollectionModel { public void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer) { this.transactionLabelRenderer = transactionLabelRenderer; } TransferViewModel(HasProgressCollection<?, Transaction> progress); String render(Transaction transaction); StringProperty currentTransactionLabel(); LongProperty currentTransactionPercent(); StringProperty currentTransactionPercentLabel(); BooleanProperty currentTransactionImageVisible(); ObjectProperty<Image> currentTransactionImage(); void setTransactionLabelRenderer(Function<Transaction, String> transactionLabelRenderer);  }