@Override
 protected Task<Void> createTask() {
   SynchronizePlaylistTask task = new SynchronizePlaylistTask(drive, playlist);
   task.setDelete(delete);
   srvProgress.bind(progressProperty());
   progressString.bind(task.progressStringProperty());
   return task;
 }
Esempio n. 2
0
  @Override
  public void initialize(URL location, ResourceBundle resources) {
    localeName.bind(ProgramProperty.localeName);
    localeName.addListener(
        (observ, old, value) -> setElementText(Controller.getResourceBundle(new Locale(value))));

    setElementText(
        Controller.getResourceBundle(
            new Locale(SingleObject.getProgramSettings().getLocaleName())));
  }
  @Override
  public void doActivate() {
    txId.bind(dataModel.getTxId());

    dataModel.getSellerProcessState().addListener(sellerStateListener);
    dataModel.getBuyerProcessState().addListener(buyerStateListener);

    if (dataModel.getTrade() != null) {
      applySellerState();
      applyBuyerState();
    }
  }
Esempio n. 4
0
 public Sequencing(StringProperty input) {
   sequence.bind(input);
 }