|
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.IssueSelfSummary.executePlugin |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.plugin.command.SummaryPlugin.
Definition at line 54 of file IssueSelfSummary.java.
55 Application app = Application.getApplication();
56 if(app.isInRole(
"issue:list")) {
59 GroupboxArrow gba =
new GroupboxArrow() {
61 protected void doFillContent() {
64 Hlayout hbox =
new Hlayout();
66 hbox.setSclass(
"z-valign-middle");
67 hbox.setValign(
"middle");
68 hbox.appendChild(
new Image(Images.getImage(
"issue")));
69 if(map.get(IssueStage.ISSUE_STAGE_DATE_SURPASSED) !=
null) {
70 hbox.appendChild(LabelTypes.getSoftLabel(I_.byKey(IssueStage.ISSUE_STAGE_DATE_SURPASSED.toString()) +
":"));
71 hbox.appendChild(LabelTypes.getPreLabel(map.get(IssueStage.ISSUE_STAGE_DATE_SURPASSED) +
""));
72 hbox.appendChild(
new Space());
74 if(map.get(IssueStage.ISSUE_STAGE_TO_DO) !=
null) {
75 hbox.appendChild(LabelTypes.getSoftLabel(I_.byKey(IssueStage.ISSUE_STAGE_TO_DO.toString()) +
":"));
76 hbox.appendChild(LabelTypes.getPreLabel(map.get(IssueStage.ISSUE_STAGE_TO_DO) +
""));
77 hbox.appendChild(
new Space());
79 Button visit =
new Button(I_.get(
"My issues"));
80 visit.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
82 public void onEvent(Event event) throws Exception {
83 DossierMenu.showMyIssues();
86 hbox.appendChild(visit);
87 GridLayout gl =
new GridLayout(
"min,1");
89 for(IssueStage is : map.keySet()) {
90 gl.addCaption(I_.byKey(is.toString()));
91 gl.addValue(map.get(is) +
"");
Object addResult(String key, Object value)
The documentation for this class was generated from the following file: