◆ addToMenu()
void org.turro.publication.zul.menu.PublicationMenu.addToMenu |
( |
ElephantMenuBar |
bar | ) |
|
Reimplemented from org.turro.menu.ElephantMenu.
Definition at line 40 of file PublicationMenu.java.
41 bar.addMenu(
"Publications", Permission.from(
"publication:list"))
43 .addMenuitem(
"My subscriptions",
"subscription",
"/mail/notifications.zul",
true)
45 .addMenuitem(
"My publications",
"publication",
"/publication/publications.zul",
true, Permission.from(
"publication:list"))
46 .addMenuitem(
"Newsletters",
"newsletter",
"/publication/newsletters.zul",
true, Permission.from(
"publication:list"))
47 .addMenuitem(
"Repository",
"/publication/repository.zul", Permission.from(
"editor:repository"))
49 .addMenuitem(
"Categories",
"/publication/categories.zul", Permission.from(
"publication-category:list"))
50 .addMenuitem(
"Subscriptors",
"/mail/subscribers.zul", Permission.from(
"publication-category:list"))
51 .addMenuitem(
"Bloggers",
"/publication/bloggers.zul", Permission.from(
"publication-category:list"))
52 .addMenuitem(
"Groups",
"/publication/groups.zul", Permission.from(
"publication-group:list"))
53 .addMenuitem(
"Pending to accept",
"/publication/pending.zul", Permission.from(
"publication:accept"))
55 .addMenuitem(
"New publication", (EventListener) (Event event) -> {
56 PublicationMenu.showPublication(0L);
57 }, Permission.from(
"publication:new"))
58 .addMenuitem(
"New newsletter", (EventListener) (Event event) -> {
59 PublicationMenu.showNewsletter(0L);
60 }, Permission.from(
"publication:new"))
61 .addToolbarSeparator(
true);
◆ previewPublication() [1/2]
static void org.turro.publication.zul.menu.PublicationMenu.previewPublication |
( |
Publication |
publication | ) |
throws InterruptedException |
|
static |
Definition at line 68 of file PublicationMenu.java.
69 Framework frame = Framework.getCurrent();
70 if(publication !=
null) {
71 PublicationContent pc =
new PublicationContent();
72 pc.setPage(frame.getPage());
74 pc.setBorder(
"normal");
75 pc.setTitle(I_.get(
"Preview"));
78 pc.setMaximizable(
true);
80 pc.setHeight(
"600px");
81 pc.setPublication(publication);
82 pc.setMaximized(
false);
83 Modal.doModal(pc,
null);
◆ previewPublication() [2/2]
static void org.turro.publication.zul.menu.PublicationMenu.previewPublication |
( |
String |
publication | ) |
throws InterruptedException |
|
static |
Definition at line 87 of file PublicationMenu.java.
88 Framework frame = Framework.getCurrent();
89 if(publication !=
null) {
90 PublicationContent pc =
new PublicationContent();
91 pc.setPage(frame.getPage());
93 pc.setBorder(
"normal");
94 pc.setTitle(I_.get(
"Preview"));
97 pc.setMaximizable(
true);
99 pc.setHeight(
"600px");
100 pc.setPublication(publication);
101 pc.setMaximized(
false);
102 Modal.doModal(pc,
null);
◆ showNewsletter()
static void org.turro.publication.zul.menu.PublicationMenu.showNewsletter |
( |
Long |
id | ) |
|
|
static |
◆ showPending()
static void org.turro.publication.zul.menu.PublicationMenu.showPending |
( |
| ) |
|
|
static |
◆ showPublication()
static void org.turro.publication.zul.menu.PublicationMenu.showPublication |
( |
Long |
id | ) |
|
|
static |
The documentation for this class was generated from the following file: