19 package org.turro.dossier.zul.issue;
21 import org.turro.command.Command;
22 import org.turro.command.Context;
23 import org.turro.dossier.entity.Issue;
24 import org.turro.dossier.zul.menu.DossierMenu;
25 import org.turro.elephant.util.Images;
26 import org.turro.i18n.I_;
27 import org.zkoss.zk.ui.event.Event;
28 import org.zkoss.zk.ui.event.EventListener;
29 import org.zkoss.zk.ui.event.Events;
30 import org.zkoss.zk.ui.ext.AfterCompose;
31 import org.zkoss.zul.Toolbarbutton;
37 public abstract class AddInformation extends Toolbarbutton implements AfterCompose {
53 private void initiate() {
55 setTooltiptext(
I_.
get(
"Add information"));
56 addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
58 public void onEvent(Event event) throws Exception {
59 DossierMenu.addInformation(issue, new Command() {
61 public Object execute(Context context) {
static String getImage(String image)
static String get(String msg)