18 package org.turro.zul.acceptance;
20 import org.turro.acceptance.AcceptanceUtil;
21 import org.turro.action.AcceptanceStatus;
22 import org.turro.annotation.ElephantPlugin;
23 import org.turro.auth.Authentication;
24 import org.turro.command.Command;
25 import org.turro.command.Context;
26 import org.turro.contacts.zul.menu.ContactMenu;
27 import org.turro.entities.Entities;
28 import org.turro.i18n.I_;
29 import org.turro.plugin.acceptance.IAcceptanceCtrl;
30 import org.zkoss.zk.ui.event.Event;
31 import org.zkoss.zk.ui.event.EventListener;
32 import org.zkoss.zk.ui.event.Events;
33 import org.zkoss.zul.Toolbarbutton;
42 private Object entity;
54 if(entity instanceof String) {
55 path = (String) entity;
60 setTooltiptext(
I_.
get(
"Acceptance"));
61 addEventListener(Events.ON_CLICK,
new EventListener() {
63 public void onEvent(Event event)
throws Exception {
66 public Object execute(Context context) {
75 private void setStatus() {
static boolean isBlocked(String path)
static boolean isAccepted(String path)
static AcceptanceStatus getStatusFor(String path, IContact contact)
static IContact getIContact()
static IElephantEntity getController(String path)
static String get(String msg)