|
Public Member Functions inherited from org.turro.plugin.command.SelfSummaryPlugin |
| SelfSummaryPlugin () |
|
| SelfSummaryPlugin () |
|
Public Member Functions inherited from org.turro.plugin.command.SummaryPlugin |
| SummaryPlugin (String name) |
|
String | getName () |
|
boolean | stopPropagating () |
|
void | execute () |
|
| SummaryPlugin (String name) |
|
String | getName () |
|
boolean | stopsPropagating () |
|
void | setParams (Object params) |
|
Object | execute (Context context) |
|
void | setContext (Map< String, Object > params, Map< String, Object > results) |
|
Object | getParam (String key) |
|
boolean | itsMe (String name) |
|
Object | addResult (String key, Object value) |
|
Static Public Member Functions inherited from org.turro.plugin.command.SelfSummaryPlugin |
static Collection< Object > | getSummaryFor (IContact contact) |
|
static Collection< Object > | getSummaryFor (Application app, IContact contact) |
|
Static Public Member Functions inherited from org.turro.plugin.command.SummaryPlugin |
static Collection< Object > | getSummaryFor (IContact contact, String name) |
|
static Collection< Object > | getSummaryFor (Application app, IContact contact, String name) |
|
Static Public Attributes inherited from org.turro.plugin.command.SelfSummaryPlugin |
static final String | NAME = "SelfSummary" |
|
Protected Attributes inherited from org.turro.plugin.command.SummaryPlugin |
String | name |
|
IContact | contact |
|
Collection< Object > | result |
|
Map< String, Object > | params |
|
Map< String, Object > | results |
|
◆ executePlugin()
void org.turro.dossier.command.DossierSelfSummary.executePlugin |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.plugin.command.SummaryPlugin.
Definition at line 53 of file DossierSelfSummary.java.
54 Application app = Application.getApplication();
55 if(app.isInRole(
"dossier:list")) {
57 if(!dossiers.isEmpty()) {
58 GroupboxArrow gba =
new GroupboxArrow() {
60 protected void doFillContent() {
61 Include report =
new Include(
"/WEB-INF/_zul/dossier/dossierSummary.zul");
65 Hlayout hbox =
new Hlayout();
67 hbox.setSclass(
"z-valign-middle");
68 hbox.setValign(
"middle");
69 hbox.appendChild(
new Image(Images.getImage(
"dossier")));
70 hbox.appendChild(LabelTypes.getSoftLabel(I_.get(
"Dossiers") +
":"));
71 hbox.appendChild(LabelTypes.getPreLabel(dossiers.size() +
" " + I_.get(
"Opened")));
72 hbox.appendChild(
new Space());
73 Button visit =
new Button(I_.get(
"My dossiers"));
74 visit.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
76 public void onEvent(Event event) throws Exception {
77 DossierMenu.showMyDossiers();
80 hbox.appendChild(visit);
81 if(app.isInRole(
"dossier:participants")) {
83 Button pending =
new Button(I_.get(
"Pending to accept"));
84 pending.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
86 public void onEvent(Event event) throws Exception {
87 DossierMenu.showPending();
90 hbox.appendChild(pending);
Object addResult(String key, Object value)
The documentation for this class was generated from the following file: