19 package org.turro.zul.convocation;
21 import org.turro.contacts.Attendee;
22 import org.turro.contacts.Convocation;
23 import org.turro.contacts.db.ContactsPU;
24 import org.turro.contacts.zul.menu.ContactMenu;
25 import org.turro.elephant.context.Application;
26 import org.turro.elephant.util.Messages;
27 import org.turro.i18n.I_;
28 import org.turro.jpa.composer.EntityComposer;
29 import org.turro.jpa.entity.DaoEntity;
30 import org.turro.zul.frame.Framework;
31 import org.zkoss.lang.Strings;
32 import org.zkoss.zk.ui.Component;
33 import org.zkoss.zk.ui.event.Event;
34 import org.zkoss.zk.ui.select.annotation.Listen;
35 import org.zkoss.zk.ui.util.Clients;
43 @Listen(
"onUser = #detail #attendees")
45 if(event.getData() instanceof
Attendee) {
48 Clients.showNotification(
I_.
get(
"Convocation sent"));
53 @Listen(
"onClick = #sendMail")
57 Clients.showNotification(
I_.
get(
"Convocation sent"));
61 @Listen(
"onClick = #savesendMail")
66 Clients.showNotification(
I_.
get(
"Convocation sent"));
101 return !
entity.isEmpty() && (Strings.isBlank(
entity.getId())) || super.shouldBeSaved();
boolean isInRole(String role)
static Application getApplication()
static Messages confirmDeletion()
static String get(String msg)
String getAttributeName()
Convocation getEntityInstance(String id)
DaoEntity getWrapperInstance(Component comp)
void onSendToAttendee(Event event)
static AssistantSet getAsAssistants(Convocation convocation)
static Framework getCurrent()
void setSelectedLabel(String text)
void setSelectedTooltiptext(String text)