BrightSide Workbench Full Report + Source Code
org.turro.zul.frame.Framework Class Reference
Inheritance diagram for org.turro.zul.frame.Framework:
Collaboration diagram for org.turro.zul.frame.Framework:

Public Member Functions

 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 ()
 

Static Public Member Functions

static Framework getCurrent ()
 
static Object getAttribute (Object object, String key)
 
static Object getAttribute (Object object, String key, Object defaultValue)
 
static void setAttribute (Object object, String key, Object value)
 
static FrameClipboard getClipboard ()
 

Detailed Description

Author
Lluis Turró Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 45 of file Framework.java.

Constructor & Destructor Documentation

◆ Framework()

org.turro.zul.frame.Framework.Framework ( )

Definition at line 59 of file Framework.java.

59  {
60  setSclass("bbframe");
61  setHeight("100%");
62  Executions.getCurrent().getDesktop().setAttribute("el_framework", this);
63  //Devices.setTimeoutURI("ajax", "");
64  portalWindows = new PortalWindows();
65  portalWindows.loadContainers();
66  addComponents();
67  }
Here is the call graph for this function:

Member Function Documentation

◆ addContent() [1/3]

void org.turro.zul.frame.Framework.addContent ( PortalContainer  container)

Definition at line 77 of file Framework.java.

77  {
78  this.container.addContent(container);
79  }
void addContent(String label, String src)

◆ addContent() [2/3]

void org.turro.zul.frame.Framework.addContent ( String  label,
String  src 
)

Definition at line 69 of file Framework.java.

69  {
70  container.addContent(label, src);
71  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addContent() [3/3]

void org.turro.zul.frame.Framework.addContent ( String  label,
String  src,
Map< String, Object >  dynProps 
)

Definition at line 73 of file Framework.java.

73  {
74  container.addContent(label, src, dynProps);
75  }
Here is the call graph for this function:

◆ afterCompose()

void org.turro.zul.frame.Framework.afterCompose ( )

Definition at line 175 of file Framework.java.

175  {
176  getPage().setAttribute("rolemap", Authentication.getIContact().getPermissions().asMap(), SESSION_SCOPE);
177  getPage().setTitle(
178  ElephantContext.getSiteName() +
179  " - " +
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\">");
186  }
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" +
197  " }" +
198  "}\n"
199  );
200  appendChild(new MessageTimer());
201  }
void setStatus(HtmlBasedComponent comp)
void setCompany(HtmlBasedComponent comp)
void setUser(HtmlBasedComponent comp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeSelected()

void org.turro.zul.frame.Framework.closeSelected ( )

Definition at line 99 of file Framework.java.

99  {
100  container.closeSelected();
101  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttribute() [1/2]

static Object org.turro.zul.frame.Framework.getAttribute ( Object  object,
String  key 
)
static

Definition at line 207 of file Framework.java.

207  {
208  return Executions.getCurrent().getDesktop().getAttribute(object.getClass().getSimpleName() + "_" + key);
209  }
Here is the caller graph for this function:

◆ 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.

211  {
212  Object value = Executions.getCurrent().getDesktop().getAttribute(object.getClass().getSimpleName() + "_" + key);
213  return value == null ? defaultValue : value;
214  }

◆ getAttributeFrom()

Object org.turro.zul.frame.Framework.getAttributeFrom ( Tabpanel  panel,
String  key 
)

Definition at line 91 of file Framework.java.

91  {
92  return panel != null ? panel.getAttribute(key) : null;
93  }

◆ getClipboard()

static FrameClipboard org.turro.zul.frame.Framework.getClipboard ( )
static

Definition at line 220 of file Framework.java.

220  {
221  if(clipboard == null) {
222  clipboard = new FrameClipboard();
223  }
224  return clipboard;
225  }
Here is the caller graph for this function:

◆ getCurrent()

static Framework org.turro.zul.frame.Framework.getCurrent ( )
static

Definition at line 203 of file Framework.java.

203  {
204  return (Framework) Executions.getCurrent().getDesktop().getAttribute("el_framework");
205  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGlobalPopup()

Popup org.turro.zul.frame.Framework.getGlobalPopup ( )

Definition at line 132 of file Framework.java.

132  {
133  globalPopup.getChildren().clear();
134  return globalPopup;
135  }
Here is the caller graph for this function:

◆ getPortalWindows()

PortalWindows org.turro.zul.frame.Framework.getPortalWindows ( )

Definition at line 128 of file Framework.java.

128  {
129  return portalWindows;
130  }
Here is the caller graph for this function:

◆ getSelectedAttribute()

Object org.turro.zul.frame.Framework.getSelectedAttribute ( String  key)

Definition at line 86 of file Framework.java.

86  {
87  Tabpanel tp = container.getSelectedPanel();
88  return tp != null ? tp.getAttribute(key) : null;
89  }

◆ getStatusBar()

ElephantStatusBar org.turro.zul.frame.Framework.getStatusBar ( )

Definition at line 137 of file Framework.java.

137  {
138  return statusBar;
139  }

◆ invalidateSelected()

void org.turro.zul.frame.Framework.invalidateSelected ( )

Definition at line 95 of file Framework.java.

95  {
96  container.invalidateSelected();
97  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAttribute()

static void org.turro.zul.frame.Framework.setAttribute ( Object  object,
String  key,
Object  value 
)
static

Definition at line 216 of file Framework.java.

216  {
217  Executions.getCurrent().getDesktop().setAttribute(object.getClass().getSimpleName() + "_" + key, value);
218  }
Here is the caller graph for this function:

◆ setSelectedAttribute()

void org.turro.zul.frame.Framework.setSelectedAttribute ( String  key,
Object  value 
)

Definition at line 81 of file Framework.java.

81  {
82  Tabpanel tp = container.getSelectedPanel();
83  if(tp != null) tp.setAttribute(key, value);
84  }

◆ setSelectedLabel()

void org.turro.zul.frame.Framework.setSelectedLabel ( String  text)

Definition at line 103 of file Framework.java.

103  {
104  container.setSelectedLabel(text);
105  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedTooltiptext()

void org.turro.zul.frame.Framework.setSelectedTooltiptext ( String  text)

Definition at line 107 of file Framework.java.

107  {
108  container.setSelectedTooltiptext(text);
109  }
void setSelectedTooltiptext(String text)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

111  {
112  showModal(label, (Window) Executions.createComponents(src, null, arg), command);
113  }
void showModal(String label, String src, Map arg, Command command)
Definition: Framework.java:111
Here is the caller graph for this function:

◆ showModal() [2/2]

void org.turro.zul.frame.Framework.showModal ( String  label,
Window  window,
Command  command 
)

Definition at line 115 of file Framework.java.

115  {
116  window.setTitle(label);
117  window.setMode(Window.MODAL);
118  Modal.doModal(window, command);
119  }
Here is the call graph for this function:

◆ showPopup()

void org.turro.zul.frame.Framework.showPopup ( String  label,
String  src,
Map  arg 
)

Definition at line 121 of file Framework.java.

121  {
122  Window w = (Window) Executions.createComponents(src, null, arg);
123  w.setTitle(label);
124  w.setPosition("center");
125  w.doPopup();
126  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: