- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 43 of file ContactMenu.java.
◆ addToMenu()
void org.turro.contacts.zul.menu.ContactMenu.addToMenu |
( |
ElephantMenuBar |
bar | ) |
|
Reimplemented from org.turro.menu.ElephantMenu.
Definition at line 46 of file ContactMenu.java.
47 bar.addMenu(
"Contacts", Permission.from(
"contact:list"))
50 .addMenuitem(
"Contacts",
"contacts",
"/contact/contacts.zul",
true)
51 .addMenuitem(
"New contact",
"contact_new", (EventListener) (Event event) -> {
52 ContactMenu.showContact((String)
null);
53 }, Permission.from(
"contact:new"))
54 .addMenuitem(
"Pending to accept",
"/contact/relation/pendingToAccept.zul",
false, Permission.from(
"contact:new"))
55 .addMenuitem(
"Contact proposals",
"/contact/proposals.zul", Permission.from(
"contact-proposal:import"))
56 .addMenuitem(
"Relation proposals",
"/contact/importer/importer.zul", Permission.from(
"contact-proposal:import"))
57 .addMenuitem(
"Social grups check",
"/contact/relation/socialCheck.zul",
false, Permission.from(
"contact:new"))
58 .addMenuitem(
"Name proposals",
"/contact/names/names.zul",
false, Permission.from(
"contact:new"))
60 .addMenuitem(
"Field definitions",
"/contact/fielddefs.zul", Permission.from(
"contact-field:list"))
61 .addToolbarSeparator(
true)
62 .addMenuitem(
"Subscriptions",
"forward", (EventListener) (Event event) -> {
63 ContactMenu.showSubscriptions((Contact) Authentication.getIContact().getContact());
64 }, Permission.from(
"contact:all"));
◆ addToSessionMenu()
void org.turro.contacts.zul.menu.ContactMenu.addToSessionMenu |
( |
ElephantSubmenu |
submenu | ) |
|
Reimplemented from org.turro.menu.ElephantMenu.
Definition at line 68 of file ContactMenu.java.
69 submenu.addMenuSeparator()
70 .addMenuitem(
"Groups",
"group",
"/contact/groupIt/groups.zul",
true, Permission.from(
"groups:list"))
71 .addMenuitem(
"Acceptance",
"acceptation",
"/contact/acceptances.zul",
true)
72 .addMenuitem(
"Participations",
"participation",
"/contact/entityParticipation.zul",
false, Permission.from(
"contact:all"))
73 .addMenuitem(
"Agreements",
"acceptation",
"/agreements/agreements.zul",
false, Permission.from(
"contact:all"))
75 .addMenuitem(
"New convocation",
"/contact/convocation/convocation.zul", Permission.from(
"convocation:new"));
◆ showAcceptance()
static void org.turro.contacts.zul.menu.ContactMenu.showAcceptance |
( |
String |
path, |
|
|
final Command |
command |
|
) |
| |
|
static |
Definition at line 78 of file ContactMenu.java.
79 if(!Strings.isBlank(path)) {
80 Framework frame = Framework.getCurrent();
82 frame.getDesktop().setAttribute(
"acceptancePath", path);
83 Modal.doModal(
ElephantMenu.makeInclude(
"/contact/acceptance.zul"),
new Command() {
85 public Object execute(Context context) {
86 ModalWindow mw = (ModalWindow) context.get(
"win");
87 if(mw.getResult() == 1) {
88 if(command !=
null) command.execute(context);
◆ showAcceptances()
static void org.turro.contacts.zul.menu.ContactMenu.showAcceptances |
( |
| ) |
|
|
static |
Definition at line 97 of file ContactMenu.java.
98 Framework frame = Framework.getCurrent();
99 frame.addContent(I_.get(
"Acceptance"),
ElephantMenu.makeInclude(
"/contact/acceptances.zul"));
100 frame.invalidateSelected();
◆ showContact() [1/2]
static void org.turro.contacts.zul.menu.ContactMenu.showContact |
( |
Contact |
contact | ) |
|
|
static |
Definition at line 103 of file ContactMenu.java.
104 showEntity(contact.getId(),
"contactId",
"Contact",
"/contact/contact.zul", Map.of(
"contactGenerated", contact));
◆ showContact() [2/2]
static void org.turro.contacts.zul.menu.ContactMenu.showContact |
( |
String |
id | ) |
|
|
static |
◆ showConvocation()
static void org.turro.contacts.zul.menu.ContactMenu.showConvocation |
( |
String |
id | ) |
|
|
static |
◆ showOrganigram()
static void org.turro.contacts.zul.menu.ContactMenu.showOrganigram |
( |
Contact |
contact | ) |
|
|
static |
◆ showParticipations()
static void org.turro.contacts.zul.menu.ContactMenu.showParticipations |
( |
String |
entityPath | ) |
|
|
static |
Definition at line 119 of file ContactMenu.java.
120 showZulFile(
"Participations",
"/contact/entityParticipation.zul", Map.of(
"entityPath", entityPath));
◆ showService()
static void org.turro.contacts.zul.menu.ContactMenu.showService |
( |
String |
id | ) |
|
|
static |
◆ showSubscriptions()
static void org.turro.contacts.zul.menu.ContactMenu.showSubscriptions |
( |
Contact |
contact | ) |
|
|
static |
The documentation for this class was generated from the following file: