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

Public Member Functions

void load (Element root)
 
void save (Element root)
 
int compareTo (Object o)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 33 of file PortalContent.java.

Member Function Documentation

◆ afterCompose()

void org.turro.zul.portal.PortalContent.afterCompose ( )

Definition at line 117 of file PortalContent.java.

117  {
118  if(content instanceof AfterCompose) {
119  ((AfterCompose) content).afterCompose();
120  }
121  }

◆ compareTo()

int org.turro.zul.portal.PortalContent.compareTo ( Object  o)

Definition at line 77 of file PortalContent.java.

77  {
78  if(o != null && o instanceof PortalContent) {
79  return order.compareTo(((PortalContent) o).order);
80  }
81  return -1;
82  }

◆ load()

void org.turro.zul.portal.PortalContent.load ( Element  root)

Definition at line 38 of file PortalContent.java.

38  {
39  order = Integer.valueOf(root.getAttributeValue("order", "0"));
40  setTitle(root.getAttributeValue("title"));
41  setBorder(root.getAttributeValue("border", "normal"));
42  setHeight(root.getAttributeValue("height", "300px"));
43  setStyle(root.getAttributeValue("style", ""));
44  setCollapsible(Boolean.valueOf(root.getAttributeValue("collapsible", "true")));
45  setMaximizable(Boolean.valueOf(root.getAttributeValue("maximizable", "true")));
46  setMovable(Boolean.valueOf(root.getAttributeValue("movable", "true")));
47  setClosable(Boolean.valueOf(root.getAttributeValue("closable", "true")));
48  createInstance(root.getChild("content"));
49  if(content instanceof Component) {
50  Panelchildren children = new Panelchildren();
51  appendChild(children);
52  children.appendChild((Component) content);
53  }
54  }
Here is the caller graph for this function:

◆ save()

void org.turro.zul.portal.PortalContent.save ( Element  root)

Definition at line 56 of file PortalContent.java.

56  {
57  root.setAttribute("order", getPosition(order) + "");
58  root.setAttribute("title", getTitle());
59  root.setAttribute("border", getBorder());
60  root.setAttribute("height", getHeight());
61  if(getStyle() != null) {
62  root.setAttribute("style", getStyle());
63  }
64  root.setAttribute("collapsible", Boolean.toString(isCollapsible()));
65  root.setAttribute("maximizable", Boolean.toString(isMaximizable()));
66  root.setAttribute("movable", Boolean.toString(isMovable()));
67  root.setAttribute("closable", Boolean.toString(isClosable()));
68  if(content != null) {
69  Element el = new Element("content");
70  el.setAttribute("java-class", content.getClass().getName());
71  content.setConfiguration(el);
72  root.addContent(el);
73  }
74  }
void setConfiguration(Element root)
Here is the call graph for this function:

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