BrightSide Workbench Full Report + Source Code
org.turro.zul.portal.content.ElephantInclude Class Reference
Inheritance diagram for org.turro.zul.portal.content.ElephantInclude:
Collaboration diagram for org.turro.zul.portal.content.ElephantInclude:

Public Member Functions

void setConfiguration (Element root)
 
void getConfiguration (Element root)
 

Detailed Description

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

Definition at line 37 of file ElephantInclude.java.

Member Function Documentation

◆ getConfiguration()

void org.turro.zul.portal.content.ElephantInclude.getConfiguration ( Element  root)

Implements org.turro.zul.portal.IPortalContent.

Definition at line 48 of file ElephantInclude.java.

48  {
49  try {
50  path = root.getAttributeValue("path");
51  stopper = root.getAttributeValue("stopper", "true");
52  IConstructor constructor = Application.getApplication().getConstructor();
53  StringWriter sw = new StringWriter();
54  constructor.setOut(new PrintWriter(sw));
55  if(path.matches(".*\\.(htm|html|txt)")) {
56  constructor.includeContent(path);
57  } else {
58  constructor.renderContext(path, stopper);
59  }
60  setWidth("100%");
61  setHeight("100%");
62  setContent(sw.toString());
63  } catch (ServletException | IOException ex) {
64  Logger.getLogger(ElephantInclude.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
65  }
66  }
Here is the call graph for this function:

◆ setConfiguration()

void org.turro.zul.portal.content.ElephantInclude.setConfiguration ( Element  root)

Implements org.turro.zul.portal.IPortalContent.

Definition at line 42 of file ElephantInclude.java.

42  {
43  root.setAttribute("path", path);
44  root.setAttribute("stopper", stopper);
45  }

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