@Override
 protected Task<Void> createTask() {
   SynchronizePlaylistTask task = new SynchronizePlaylistTask(drive, playlist);
   task.setDelete(delete);
   srvProgress.bind(progressProperty());
   progressString.bind(task.progressStringProperty());
   return task;
 }
Exemplo 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();
    }
  }
Exemplo n.º 4
0
 public Sequencing(StringProperty input) {
   sequence.bind(input);
 }