|
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.publication.command.PublicationSelfSummary.executePlugin |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.plugin.command.SummaryPlugin.
Definition at line 48 of file PublicationSelfSummary.java.
49 Application app = Application.getApplication();
50 if(app.isInRole(
"publication:accept")) {
51 int pubs = pendingPublications(),
52 coms = (int) CommentItUtil.countPending();
53 if(pubs > 0 || coms > 0) {
54 GroupboxArrow gba =
new GroupboxArrow() {
56 protected void doFillContent() {
57 appendChild(
new PublicationChart());
60 Hlayout hbox =
new Hlayout();
62 hbox.setSclass(
"z-valign-middle");
63 hbox.setValign(
"middle");
64 hbox.appendChild(
new Image(Images.getImage(
"publication")));
65 hbox.appendChild(LabelTypes.getSoftLabel(I_.get(
"Publication") +
":"));
66 hbox.appendChild(LabelTypes.getPreLabel(pubs +
" " + I_.get(
"Pending")));
67 hbox.appendChild(
new Space());
68 hbox.appendChild(LabelTypes.getSoftLabel(I_.get(
"Comment") +
":"));
69 hbox.appendChild(LabelTypes.getPreLabel(coms +
" " + I_.get(
"Pending")));
70 hbox.appendChild(
new Space());
71 Button visit =
new Button(I_.get(
"Pending to accept"));
72 visit.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
74 public void onEvent(Event event) throws Exception {
75 PublicationMenu.showPending();
78 hbox.appendChild(visit);
Object addResult(String key, Object value)
The documentation for this class was generated from the following file: