コード例 #1
0
  public VirtualShareTreeItem(
      SharingService sharingService,
      AuthenticatedDownloader readBackend,
      ShareNotifications notifications,
      BoxObject value,
      Node graphic) {
    super(value, graphic);
    this.notifications = notifications;
    this.readBackend = readBackend;
    this.sharingService = sharingService;

    notifications.addObserver(
        (o, arg) ->
            executorService.submit(
                () -> {
                  initialized = false;
                  this.reload();
                }));
  }