public void initialize () { messageLabel.textProperty ().bind (Bindings.selectString (App.instance.restClient.currentTaskProperty (), "title")); AwesomeDude.setIcon (refreshButton, AwesomeIcon.REFRESH); refreshButton.setTooltip (new Tooltip ("Refresh transaction list")); toolsPane.getSelectionModel ().selectedItemProperty ().addListener (new ChangeListener<Tab> () { @Override public void changed (ObservableValue<? extends Tab> v, Tab oldTab, Tab currentTab) { if ( "keygenTab".equals (oldTab.getId ()) ) { clearKeyData (); } } }); validateTextField (targetAddress, address, addressConverter ()); validateTextField (amount, btc, adapter (new BigDecimalStringConverter ())); sendButton.disableProperty ().bind (new BooleanBinding () { { bind (address, btc); } @Override protected boolean computeValue () { return (address.get () == null || address.get ().isLeft () || btc.get () == null || btc.get ().isLeft ()); } }); refreshTransactionList (); }
public NumericTableCell(Class<S> impl) { super(impl, new BigDecimalStringConverter()); }