Ejemplo n.º 1
0
 public EditTodoPopupWindow(BeanItem<Todo> currentBeanItem, String projectId) {
   this.currentBeanItem = currentBeanItem;
   this.projectId = projectId;
   todoService = (TodoService) ViewToolManager.getBean("todoService");
   teamService = (TeamService) SpringApplicationContextUtil.getContext().getBean("teamService");
   identityService = ProcessEngines.getDefaultProcessEngine().getIdentityService();
   initUI();
 }
Ejemplo n.º 2
0
  /**
   * @param upload The component that will serve this receiver
   * @param maxFileSize The maximum size of files that will be accepted (in bytes). -1 in case of no
   *     limit.
   */
  public InMemoryUploadReceiver(Upload upload, long maxFileSize) {
    this.upload = upload;
    this.maxFileSize = maxFileSize;
    this.notificationManager = ViewToolManager.getNotificationManager();

    upload.setReceiver(this);
    upload.addListener((StartedListener) this);
    upload.addListener((ProgressListener) this);
  }