2 function SidebarBoxItem(domItem) {
3 this.node = createAppElement("div");
4 var br = createAppElement("br");
5 add_css_class(this.node, "sibebar_item");
6 this.node.appendChild(domItem);
7 this.node.appendChild(br);
10 SidebarBoxItem.prototype.getNode = function() {
14 /* --------------------------------------------------------- */
16 function SidebarBox(title) {
17 this.node = createAppElement("div");
18 this.contentNode = createAppElement("div");
19 this.titleNode = createAppElement("div");
21 add_css_class(this.node, "sidebar_box");
22 add_css_class(this.contentNode, "sidebar_content_box");
23 add_css_class(this.titleNode, "sidebar_title_box");
25 /* push the title in */
26 this.titleNode.appendChild(createAppTextNode(title));
27 this.titleNode.appendChild(createAppElement("br"));
29 this.node.appendChild(this.titleNode);
30 this.node.appendChild(this.contentNode);
33 SidebarBox.prototype.addItem = function(domItem) {
34 this.contentNode.appendChild(new SidebarBoxItem(domItem).getNode());
37 SidebarBox.prototype.getNode = function() {
42 /* --------------------------------------------------------- */
45 this.node = createAppElement("div");
46 add_css_class(this.node, "sidebar");
49 Sidebar.prototype.addItem = function(sidebarBox) {
50 this.node.appendChild(sidebarBox.getNode());
53 Sidebar.prototype.getNode = function() {