|
| Framework () |
|
void | addContent (String label, String src) |
|
void | addContent (String label, String src, Map< String, Object > dynProps) |
|
void | addContent (PortalContainer container) |
|
void | setSelectedAttribute (String key, Object value) |
|
Object | getSelectedAttribute (String key) |
|
Object | getAttributeFrom (Tabpanel panel, String key) |
|
void | invalidateSelected () |
|
void | closeSelected () |
|
void | setSelectedLabel (String text) |
|
void | setSelectedTooltiptext (String text) |
|
void | showModal (String label, String src, Map arg, Command command) |
|
void | showModal (String label, Window window, Command command) |
|
void | showPopup (String label, String src, Map arg) |
|
PortalWindows | getPortalWindows () |
|
Popup | getGlobalPopup () |
|
ElephantStatusBar | getStatusBar () |
|
void | afterCompose () |
|
- Author
- Lluis Turró Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 45 of file Framework.java.
◆ Framework()
org.turro.zul.frame.Framework.Framework |
( |
| ) |
|
Definition at line 59 of file Framework.java.
62 Executions.getCurrent().getDesktop().setAttribute(
"el_framework",
this);
64 portalWindows =
new PortalWindows();
◆ addContent() [1/3]
Definition at line 77 of file Framework.java.
void addContent(String label, String src)
◆ addContent() [2/3]
void org.turro.zul.frame.Framework.addContent |
( |
String |
label, |
|
|
String |
src |
|
) |
| |
◆ addContent() [3/3]
void org.turro.zul.frame.Framework.addContent |
( |
String |
label, |
|
|
String |
src, |
|
|
Map< String, Object > |
dynProps |
|
) |
| |
◆ afterCompose()
void org.turro.zul.frame.Framework.afterCompose |
( |
| ) |
|
Definition at line 175 of file Framework.java.
176 getPage().setAttribute(
"rolemap", Authentication.getIContact().getPermissions().asMap(), SESSION_SCOPE);
178 ElephantContext.getSiteName() +
180 I_.get(
"BrightSide Application Framework"));
181 if(getPage() instanceof PageCtrl) {
182 ((PageCtrl) getPage()).addBeforeHeadTags(
183 "<link rel=\"shortcut icon\" href=\"" +
184 ElephantContext.getSiteIcon() +
185 "\" type=\"image/x-icon\">");
187 statusBar.
setUser(CommandUtil.getLinkOrSpace(Authentication.getIContact().getContact()));
188 Map<String, Object> args = Plugins.execute(
"CurrentCompany",
null);
189 statusBar.
setCompany(CommandUtil.getLinkOrSpace(args.get(
"company")));
190 statusBar.
setStatus(AboutTurro.getAbout(getPage()));
191 Clients.evalJavaScript(
192 "window.onbeforeunload = confirmExit;\n" +
193 "var exitWanted=false;\n" +
194 "function confirmExit() {\n" +
195 " if(!exitWanted) {" +
196 " return \"BrightSide Application Framework - Fundació TiC\";\n" +
200 appendChild(
new MessageTimer());
◆ closeSelected()
void org.turro.zul.frame.Framework.closeSelected |
( |
| ) |
|
◆ getAttribute() [1/2]
static Object org.turro.zul.frame.Framework.getAttribute |
( |
Object |
object, |
|
|
String |
key |
|
) |
| |
|
static |
Definition at line 207 of file Framework.java.
208 return Executions.getCurrent().getDesktop().getAttribute(
object.getClass().getSimpleName() +
"_" + key);
◆ getAttribute() [2/2]
static Object org.turro.zul.frame.Framework.getAttribute |
( |
Object |
object, |
|
|
String |
key, |
|
|
Object |
defaultValue |
|
) |
| |
|
static |
Definition at line 211 of file Framework.java.
212 Object value = Executions.getCurrent().getDesktop().getAttribute(
object.getClass().getSimpleName() +
"_" + key);
213 return value ==
null ? defaultValue : value;
◆ getAttributeFrom()
Object org.turro.zul.frame.Framework.getAttributeFrom |
( |
Tabpanel |
panel, |
|
|
String |
key |
|
) |
| |
Definition at line 91 of file Framework.java.
92 return panel !=
null ? panel.getAttribute(key) :
null;
◆ getClipboard()
Definition at line 220 of file Framework.java.
221 if(clipboard ==
null) {
222 clipboard =
new FrameClipboard();
◆ getCurrent()
static Framework org.turro.zul.frame.Framework.getCurrent |
( |
| ) |
|
|
static |
Definition at line 203 of file Framework.java.
204 return (
Framework) Executions.getCurrent().getDesktop().getAttribute(
"el_framework");
◆ getGlobalPopup()
Popup org.turro.zul.frame.Framework.getGlobalPopup |
( |
| ) |
|
Definition at line 132 of file Framework.java.
133 globalPopup.getChildren().clear();
◆ getPortalWindows()
◆ getSelectedAttribute()
Object org.turro.zul.frame.Framework.getSelectedAttribute |
( |
String |
key | ) |
|
Definition at line 86 of file Framework.java.
87 Tabpanel tp = container.getSelectedPanel();
88 return tp !=
null ? tp.getAttribute(key) :
null;
◆ getStatusBar()
◆ invalidateSelected()
void org.turro.zul.frame.Framework.invalidateSelected |
( |
| ) |
|
◆ setAttribute()
static void org.turro.zul.frame.Framework.setAttribute |
( |
Object |
object, |
|
|
String |
key, |
|
|
Object |
value |
|
) |
| |
|
static |
Definition at line 216 of file Framework.java.
217 Executions.getCurrent().getDesktop().setAttribute(
object.getClass().getSimpleName() +
"_" + key, value);
◆ setSelectedAttribute()
void org.turro.zul.frame.Framework.setSelectedAttribute |
( |
String |
key, |
|
|
Object |
value |
|
) |
| |
Definition at line 81 of file Framework.java.
82 Tabpanel tp = container.getSelectedPanel();
83 if(tp !=
null) tp.setAttribute(key, value);
◆ setSelectedLabel()
void org.turro.zul.frame.Framework.setSelectedLabel |
( |
String |
text | ) |
|
◆ setSelectedTooltiptext()
void org.turro.zul.frame.Framework.setSelectedTooltiptext |
( |
String |
text | ) |
|
Definition at line 107 of file Framework.java.
void setSelectedTooltiptext(String text)
◆ showModal() [1/2]
void org.turro.zul.frame.Framework.showModal |
( |
String |
label, |
|
|
String |
src, |
|
|
Map |
arg, |
|
|
Command |
command |
|
) |
| |
Definition at line 111 of file Framework.java.
112 showModal(label, (Window) Executions.createComponents(src,
null, arg), command);
void showModal(String label, String src, Map arg, Command command)
◆ showModal() [2/2]
void org.turro.zul.frame.Framework.showModal |
( |
String |
label, |
|
|
Window |
window, |
|
|
Command |
command |
|
) |
| |
Definition at line 115 of file Framework.java.
116 window.setTitle(label);
117 window.setMode(Window.MODAL);
118 Modal.doModal(window, command);
◆ showPopup()
void org.turro.zul.frame.Framework.showPopup |
( |
String |
label, |
|
|
String |
src, |
|
|
Map |
arg |
|
) |
| |
Definition at line 121 of file Framework.java.
122 Window w = (Window) Executions.createComponents(src,
null, arg);
124 w.setPosition(
"center");
The documentation for this class was generated from the following file: