|
static String | makeInclude (String include) |
|
static void | showEntity (Object id, String attribute, String label, String include) |
|
static void | showEntity (Object id, String attribute, String label, String include, Map< String, Object > dynProps) |
|
static void | showZulFile (String label, String include) |
|
static void | showZulFile (String label, String include, Map< String, Object > dynProps) |
|
static void | showModalZulFile (String label, String source, Command command) |
|
static void | showModalZulFile (String label, String include, Map args, Command command) |
|
static void | showPopupZulFile (String label, String include) |
|
static void | showPopupZulFile (String label, String include, Map args) |
|
static void | showEntityModal (Object id, String attribute, String include, Command command) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file ElephantMenu.java.
◆ ElephantMenu() [1/3]
org.turro.menu.ElephantMenu.ElephantMenu |
( |
| ) |
|
◆ ElephantMenu() [2/3]
org.turro.menu.ElephantMenu.ElephantMenu |
( |
String |
label | ) |
|
◆ ElephantMenu() [3/3]
org.turro.menu.ElephantMenu.ElephantMenu |
( |
String |
label, |
|
|
String |
image |
|
) |
| |
Definition at line 45 of file ElephantMenu.java.
46 super(I_.get(label), Images.getImage(image));
◆ addSubmenu()
Definition at line 61 of file ElephantMenu.java.
62 ElephantSubmenu mp =
new ElephantSubmenu();
◆ addToMenu()
◆ addToSessionMenu()
void org.turro.menu.ElephantMenu.addToSessionMenu |
( |
ElephantSubmenu |
submenu | ) |
|
|
protected |
◆ addToToolsMenu()
◆ compareTo()
Definition at line 72 of file ElephantMenu.java.
73 int result = CompareUtil.compare(getClass().getName(), o.getClass().getName());
◆ getMenuBar()
Definition at line 49 of file ElephantMenu.java.
50 return Components.from(
this).parent(ElephantMenuBar.class);
◆ getParentMenu()
◆ getParentSubmenu()
Definition at line 57 of file ElephantMenu.java.
58 return Components.from(
this).parent(ElephantSubmenu.class);
◆ makeInclude()
static String org.turro.menu.ElephantMenu.makeInclude |
( |
String |
include | ) |
|
|
static |
Definition at line 79 of file ElephantMenu.java.
80 if(Strings.isBlank(include)) {
82 }
else if(include.startsWith(
"/WEB-INF")) {
84 }
else if(include.startsWith(
"//")) {
85 return include.substring(1);
87 return "/WEB-INF/_zul" + include;
◆ showEntity() [1/2]
static void org.turro.menu.ElephantMenu.showEntity |
( |
Object |
id, |
|
|
String |
attribute, |
|
|
String |
label, |
|
|
String |
include |
|
) |
| |
|
static |
◆ showEntity() [2/2]
static void org.turro.menu.ElephantMenu.showEntity |
( |
Object |
id, |
|
|
String |
attribute, |
|
|
String |
label, |
|
|
String |
include, |
|
|
Map< String, Object > |
dynProps |
|
) |
| |
|
static |
Definition at line 94 of file ElephantMenu.java.
95 Framework frame = Framework.getCurrent();
96 if((
id instanceof Long && ((Long)
id) < 1) ||
id ==
null) {
97 frame.getDesktop().removeAttribute(attribute);
99 frame.getDesktop().setAttribute(attribute,
id);
101 if(label.startsWith(
"@")) {
102 frame.addContent(label.substring(1),
makeInclude(include), dynProps);
104 frame.addContent(I_.get(label) +
" #" + (
id ==
null ?
"0" :
id.toString()),
makeInclude(include), dynProps);
106 frame.invalidateSelected();
◆ showEntityModal()
static void org.turro.menu.ElephantMenu.showEntityModal |
( |
Object |
id, |
|
|
String |
attribute, |
|
|
String |
include, |
|
|
Command |
command |
|
) |
| |
|
static |
Definition at line 148 of file ElephantMenu.java.
149 Framework frame = Framework.getCurrent();
150 if((
id instanceof Long && ((Long)
id) < 1) ||
id ==
null) {
151 frame.getDesktop().removeAttribute(attribute);
153 frame.getDesktop().setAttribute(attribute,
id);
◆ showModalZulFile() [1/2]
static void org.turro.menu.ElephantMenu.showModalZulFile |
( |
String |
label, |
|
|
String |
include, |
|
|
Map |
args, |
|
|
Command |
command |
|
) |
| |
|
static |
Definition at line 126 of file ElephantMenu.java.
127 Framework frame = Framework.getCurrent();
128 if(label.startsWith(
"@")) {
129 frame.showModal(label.substring(1),
makeInclude(include), args, command);
131 frame.showModal(I_.get(label),
makeInclude(include), args, command);
◆ showModalZulFile() [2/2]
static void org.turro.menu.ElephantMenu.showModalZulFile |
( |
String |
label, |
|
|
String |
source, |
|
|
Command |
command |
|
) |
| |
|
static |
◆ showPopupZulFile() [1/2]
static void org.turro.menu.ElephantMenu.showPopupZulFile |
( |
String |
label, |
|
|
String |
include |
|
) |
| |
|
static |
◆ showPopupZulFile() [2/2]
static void org.turro.menu.ElephantMenu.showPopupZulFile |
( |
String |
label, |
|
|
String |
include, |
|
|
Map |
args |
|
) |
| |
|
static |
Definition at line 139 of file ElephantMenu.java.
140 Framework frame = Framework.getCurrent();
141 if(label.startsWith(
"@")) {
142 frame.showPopup(label.substring(1),
makeInclude(include), args);
144 frame.showPopup(I_.get(label),
makeInclude(include), args);
◆ showZulFile() [1/2]
static void org.turro.menu.ElephantMenu.showZulFile |
( |
String |
label, |
|
|
String |
include |
|
) |
| |
|
static |
◆ showZulFile() [2/2]
static void org.turro.menu.ElephantMenu.showZulFile |
( |
String |
label, |
|
|
String |
include, |
|
|
Map< String, Object > |
dynProps |
|
) |
| |
|
static |
Definition at line 113 of file ElephantMenu.java.
114 Framework frame = Framework.getCurrent();
115 if(label.startsWith(
"@")) {
116 frame.addContent(label.substring(1),
makeInclude(include), dynProps);
118 frame.addContent(I_.get(label),
makeInclude(include), dynProps);
The documentation for this class was generated from the following file: