18 package org.turro.dossier.zul.dossier;
20 import org.turro.string.Strings;
21 import org.turro.dossier.dossier.DossierWrapper;
22 import org.turro.dossier.entity.Dossier;
23 import org.turro.dossier.zul.menu.DossierMenu;
24 import org.turro.elephant.context.Application;
25 import org.turro.i18n.I_;
26 import org.zkoss.zk.ui.event.Event;
27 import org.zkoss.zk.ui.event.EventListener;
28 import org.zkoss.zk.ui.event.Events;
29 import org.zkoss.zk.ui.ext.AfterCompose;
30 import org.zkoss.zul.A;
39 private boolean fullDescription;
51 this.fullDescription = fullDescription;
62 if(Strings.isBlank(getLabel())) {
63 setLabel(
I_.
get(
"No description!"));
65 setImage(
"/_zul/images/dossier.png");
69 private void addClickListener() {
70 addEventListener(Events.ON_CLICK,
new EventListener() {
72 public void onEvent(Event event)
throws Exception {
String getFullDescription()
void setFullDescription(boolean fullDescription)
DossierLabel(Dossier entity, boolean fullDescription)
void setDossier(Dossier dossier)
boolean isInRole(String role)
static Application getApplication()
static String get(String msg)