19 package org.turro.dossier.task;
21 import java.util.Collection;
22 import java.util.Collections;
23 import org.turro.attach.zul.control.AttachmentControl;
24 import org.turro.command.Context;
25 import org.turro.dossier.entity.Dossier;
26 import org.turro.dossier.entity.Issue;
27 import org.turro.dossier.util.DossiersInfo;
28 import org.turro.dossier.zul.menu.DossierMenu;
29 import org.turro.elephant.context.Application;
30 import org.turro.i18n.I_;
31 import org.turro.zkoss.dialog.SelectionDialog;
32 import org.turro.zul.frame.Framework;
33 import org.zkoss.bind.BindUtils;
34 import org.zkoss.bind.annotation.BindingParam;
35 import org.zkoss.bind.annotation.Command;
36 import org.zkoss.bind.annotation.NotifyChange;
37 import org.zkoss.zk.ui.Component;
45 private final boolean show, all, addNew;
47 private boolean onlyOpen =
false;
58 @BindingParam(
"component") Component component, @BindingParam(
"position") String position) {
69 @NotifyChange(
"model")
73 @NotifyChange(
"model")
79 @NotifyChange(
"model")
81 public void onlyOpen(@BindingParam(
"onlyOpen") Boolean onlyOpen) {
82 this.onlyOpen = onlyOpen;
91 ac,
"80%",
"80%",
null);
99 BindUtils.postNotifyChange(
null,
null,
TaskViewVM.this,
"model");
109 BindUtils.postNotifyChange(
null,
null,
TaskViewVM.this,
"model");
120 this.dossier = dossier;
124 if(dossier !=
null) {
127 return Collections.EMPTY_LIST;
void setEntity(Object entity)
ParticipantSet getFullParticipants()
void showIssue(@BindingParam("issue") Issue issue)
void onlyOpen(@BindingParam("onlyOpen") Boolean onlyOpen)
void selectDossier(@BindingParam("dossier") Dossier dossier)
void showAttachments(@BindingParam("issue") Issue issue)
Collection< TaskItem > getModel()
void showInfo(@BindingParam("taskItem") TaskItem taskItem, @BindingParam("component") Component component, @BindingParam("position") String position)
void addInformation(@BindingParam("issue") Issue issue)
void setDossier(Dossier dossier)
static Tasks from(Dossier dossier, boolean onlyOpen, boolean sameDossier)
Collection< TaskItem > getFilledFlat()
static void popup(Issue issue)
boolean isInRole(String role)
static Application getApplication()
static String get(String msg)
static void showComponent(Page page, String title, Component component, String width, String height, final Command command)
static Framework getCurrent()