- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 48 of file DossierMenu.java.
◆ addDossierInformation()
static void org.turro.dossier.zul.menu.DossierMenu.addDossierInformation |
( |
Dossier |
dossier, |
|
|
Command |
command |
|
) |
| |
|
static |
Definition at line 176 of file DossierMenu.java.
177 HashMap<String, Object> map =
new HashMap<>();
178 Issue issue = Issue.getDefaultIssue();
179 issue.setDossier(dossier);
180 map.put(
"issue", issue);
◆ addInformation()
static void org.turro.dossier.zul.menu.DossierMenu.addInformation |
( |
Issue |
issue, |
|
|
final Command |
command |
|
) |
| |
|
static |
Definition at line 170 of file DossierMenu.java.
171 HashMap<String, Object> map =
new HashMap<>();
172 map.put(
"issue", issue ==
null ? Issue.getDefaultIssue() : issue);
◆ addRelation()
static void org.turro.dossier.zul.menu.DossierMenu.addRelation |
( |
Issue |
issue, |
|
|
final Command |
command |
|
) |
| |
|
static |
Definition at line 150 of file DossierMenu.java.
151 EntityCombobox issuebox =
new EntityCombobox();
152 issuebox.setRoot(
"issue");
153 Dialogs.title(I_.get(
"Relation"))
156 .addField(DialogField.field(
"Type").onEditor(() ->
new SubtaskTypeSelection()))
157 .addField(DialogField.field(
"Issue").onEditor(() -> issuebox))
159 Issue nissue = Issue.getDefaultIssue();
160 nissue.setDossier(issue.getDossier());
161 IssuePredecessorType type = dialogs.<SubtaskTypeSelection>getEditor(
"Type").getValue();
162 Issue rissue = (Issue) dialogs.<EntityCombobox>getEditor(
"Issue").getEntity();
163 if(type !=
null && rissue !=
null) {
164 Subtask subtask =
new Subtask(issue, type);
165 subtask.save(
new DossierPU(), rissue);
167 }).emptyCancel().show();
◆ addSubtask()
static void org.turro.dossier.zul.menu.DossierMenu.addSubtask |
( |
Issue |
issue, |
|
|
final Command |
command |
|
) |
| |
|
static |
Definition at line 133 of file DossierMenu.java.
134 Dialogs.title(I_.get(
"Subtask"))
137 .addField(DialogField.field(
"Type").onEditor(() ->
new SubtaskTypeSelection()))
139 Issue nissue = Issue.getDefaultIssue();
140 nissue.setDossier(issue.getDossier());
141 IssuePredecessorType type = dialogs.<SubtaskTypeSelection>getEditor(
"Type").getValue();
143 Subtask subtask =
new Subtask(issue, type);
145 Map.of(
"issue", nissue,
"subtask", subtask), command);
147 }).emptyCancel().show();
◆ addToMenu()
void org.turro.dossier.zul.menu.DossierMenu.addToMenu |
( |
ElephantMenuBar |
bar | ) |
|
Reimplemented from org.turro.menu.ElephantMenu.
Definition at line 51 of file DossierMenu.java.
52 bar.addMenu(
"Dossiers", Permission.from(
"dossier:list",
"issue:list"))
54 .addMenuitem(
"My dossiers",
"dossier",
"/dossier/dossiers.zul",
true, Permission.from(
"dossier:list"))
55 .addMenuitem(
"Knowledge base",
"kbase",
"/issue/knowledgeBase.zul",
true)
56 .addMenuitem(
"My issues",
"issue",
"/issue/workload.zul",
true, Permission.from(
"issue:list"))
57 .addMenuitem(
"Kanban",
"/issue/kanban.zul", Permission.from(
"issue:list"))
58 .addMenuitem(
"Gantt",
"gantt",
"/dossier/gantt.zul", Permission.from(
"issue:list"))
59 .addMenuitem(
"Task view",
"task",
"/dossier/taskView.zul", Permission.from(
"issue:list"))
60 .addMenuitem(
"Graph",
"graph",
"/dossier/issueGraph.zul", Permission.from(
"issue:list"))
61 .addMenuitem(
"Pending votes",
"ok",
"/dossier/pendingVotes.zul", Permission.from(
"issue:list"))
62 .addMenuitem(
"Pending petitions",
"/dossier/pendingPetitions.zul", Permission.from(
"dossier:all"))
63 .addMenuitem(
"Worksheets",
"issue",
"/issue/worksheet.zul",
false, Permission.from(
"worksheet:list"))
64 .addMenuitem(
"Workload",
"piechart",
"/dossier/workload.zul")
66 .addMenuitem(
"Categories",
"/dossier/categories.zul", Permission.from(
"category:list"))
67 .addMenuitem(
"Project grants",
"handshelp",
"/dossier/projectGrants.zul", Permission.from(
"dossier:all"))
68 .addMenuitem(
"Field definitions",
"/dossier/fielddefs.zul", Permission.from(
"dossier-field:list"))
69 .addMenuitem(
"Pending to register", (EventListener) (Event event) -> {
70 Framework frame = Framework.getCurrent();
71 frame.getDesktop().removeAttribute(
"dossierId");
72 frame.addContent(I_.get(
"Pending to register"),
"/issue/registry.zul");
73 }, Permission.from(
"register:list"))
75 .addMenuitem(
"New Dossier",
"dossier_new", (EventListener) (Event event) -> {
76 DossierMenu.showDossier(0L);
77 }, Permission.from(
"dossier:new"))
78 .addMenuitem(
"New Issue",
"issue_new", (EventListener) (Event event) -> {
80 },
true, Permission.from(
"issue:new"))
81 .addToolbarSeparator(
true);
◆ showCategory()
static void org.turro.dossier.zul.menu.DossierMenu.showCategory |
( |
Long |
id | ) |
|
|
static |
◆ showDossier() [1/2]
static void org.turro.dossier.zul.menu.DossierMenu.showDossier |
( |
Dossier |
dossier | ) |
|
|
static |
Definition at line 84 of file DossierMenu.java.
85 HashMap<String, Object> map =
new HashMap<>();
86 map.put(
"dossierGenerated", dossier);
87 if(DossierType.TYPE_PROJECT.equals(dossier.getType())) {
88 showEntity(dossier.getId(),
"dossierId",
"Project",
"/dossier/project.zul");
90 showEntity(dossier.getId(),
"dossierId",
"Dossier",
"/dossier/dossier.zul", map);
◆ showDossier() [2/2]
static void org.turro.dossier.zul.menu.DossierMenu.showDossier |
( |
Long |
id | ) |
|
|
static |
Definition at line 94 of file DossierMenu.java.
95 DossierType type = checkType(
id);
96 if(DossierType.TYPE_PROJECT.equals(type)) {
97 showEntity(
id,
"dossierId",
"Project",
"/dossier/project.zul");
99 showEntity(
id,
"dossierId",
"Dossier",
"/dossier/dossier.zul");
◆ showDossierActivity()
static void org.turro.dossier.zul.menu.DossierMenu.showDossierActivity |
( |
Long |
id | ) |
|
|
static |
◆ showIssue()
static void org.turro.dossier.zul.menu.DossierMenu.showIssue |
( |
Long |
id | ) |
|
|
static |
◆ showMyDossiers()
static void org.turro.dossier.zul.menu.DossierMenu.showMyDossiers |
( |
| ) |
|
|
static |
◆ showMyIssues()
static void org.turro.dossier.zul.menu.DossierMenu.showMyIssues |
( |
| ) |
|
|
static |
◆ showPending()
static void org.turro.dossier.zul.menu.DossierMenu.showPending |
( |
| ) |
|
|
static |
◆ showProjectGrant()
static void org.turro.dossier.zul.menu.DossierMenu.showProjectGrant |
( |
Long |
id | ) |
|
|
static |
The documentation for this class was generated from the following file: